On Mon, Dec 5, 2011 at 6:58 AM, Gong Ding <span dir="ltr">&lt;<a href="mailto:gdiso@ustc.edu">gdiso@ustc.edu</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><br>I do specify --with-cc --with-cxx --with-fc. Here is the configure options<br>configure --known-level1-dcache-size=32768 --known-level1-dcache-linesize=32 --known-level1-dcache-assoc=2 --known-memcmp-ok=1 --known-endian=big --known-sizeof-char=1 --known-sizeof-void-p=8 --known-sizeof-short=2 --known-sizeof-int=4 --known-sizeof-long=8 --known-sizeof-long-long=8 --known-sizeof-float=4 --known-sizeof-double=8 --known-sizeof-size_t=8 --known-bits-per-byte=8 --known-sizeof-MPI_Comm=4 --known-sizeof-MPI_Fint=4 --known-mpi-long-double=1 --download-f-blas-lapack=1 --download-mumps=1 --download-blacs=1 --download-metis=1  --download-parmetis=1 --download-scalapack=1 --download-superlu=1 --download-superlu_dist=1 --with-c2html=0  --with-debugging=0 --with-clanguage=cxx --with-cc=&quot;mpcc_r&quot; --with-fc=&quot;mpxlf_r&quot; --with-cxx=&quot;mpCC_r&quot; --CFLAGS=&quot;-q64 -O3 -qmaxmem=-1 -qstrict -qarch=auto -qtune=auto&quot; --CXXFLAGS=&quot;-q64 -O3 -qmaxmem=-1 -qipa -qstrict -qarch=auto -qtune=auto&quot; --FFLAGS=&quot;-q64 -O3 -qmaxmem=-1 -qarch=auto -qtune=auto&quot; --with-sowing=0  --with-batch=1 --with-shared-libraries=1 --known-mpi-shared-libraries=1 --with-x=0 --with-pic=1 <br>
<br>But cmake does not use given cxx. You see, cc=&quot;mpcc_r&quot; is passed to cmake, but no cxx.<br>Cmake tries to find cxx but failed.</div></blockquote><div><br></div><div>You can do make all-legacy until this is ficed.</div>
<div><br></div><div>  Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div> <br></div><div><div></div><div class="h5"><blockquote style="padding-left:5px;margin-left:5px;border-left:#a0c6e5 2px solid;margin-right:0px">
<br><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
I try to install petsc-dev on AIX/PPC cluster.<br>
I&#39;d like to use xlc, however, there is a dead gcc/g++ installed in /usr/bin.<br>
Since I am not the administrator, I can&#39;t do anything to remove/update it.<br></blockquote><div><br></div><div>Specify the compilers using --with-cc --with-cxx --with-fc. I suggest you specify the MPI</div><div>compiler wrappers for this machine.</div>

<div><br></div><div>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The cmake configure file for metis tries to find c++ compiler, and reported error with that g++.<br>
<br>
Error running configure on METIS: Could not execute &quot;cd /gpfs1/cogenda/cogenda/packages/petsc-dev/externalpackages/metis-5.0.2 &amp;&amp; make distclean &amp;&amp; make config prefix=/gpfs1/cogenda/cogenda/packages/petsc-dev/IBM-XLCPP cc=&quot;mpcc_r&quot; doubleprecision=1&quot;:<br>


rm -rf build/AIX-000092FAD400<br>
rm -rf build/AIX-000092FAD400<br>
mkdir -p build/AIX-000092FAD400<br>
cd build/AIX-000092FAD400 &amp;&amp; cmake /gpfs1/cogenda/cogenda/packages/petsc-dev/externalpackages/metis-5.0.2 -DCMAKE_VERBOSE_MAKEFILE=1 -DGKLIB_PATH= -DCMAKE_INSTALL_PREFIX=/gpfs1/cogenda/cogenda/packages/petsc-dev/IBM-XLCPP -DCMAKE_C_COMPILER=mpcc_r -DMETIS_USE_DOUBLEPRECISION=1<br>


-- The C compiler identification is XL<br>
-- The CXX compiler identification is unknown<br>
-- Check for working C compiler: /usr/bin/mpcc_r<br>
-- Check for working C compiler: /usr/bin/mpcc_r -- works<br>
-- Detecting C compiler ABI info<br>
-- Detecting C compiler ABI info - done<br>
-- Check for working CXX compiler: /usr/bin/g++<br>
-- Check for working CXX compiler: /usr/bin/g++ -- broken<br>
-- Configuring incomplete, errors occurred!<br>
<br>
I think the testing for c++ compiler can be removed here?<br>
<br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>

-- Norbert Wiener<br>
</blockquote><span></span></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>