<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>You can set the CXX environment variable, CMake should always pick those up.<br><br>Tim<br><br><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Gong Ding" <gdiso@ustc.edu><br><b>To: </b>"PETSc users list" <petsc-users@mcs.anl.gov><br><b>Sent: </b>Monday, December 5, 2011 7:58:29 AM<br><b>Subject: </b>Re: [petsc-users] cmake METIS problem<br><br><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="mpcc_r" --with-fc="mpxlf_r" --with-cxx="mpCC_r" --CFLAGS="-q64 -O3 -qmaxmem=-1 -qstrict -qarch=auto -qtune=auto" --CXXFLAGS="-q64 -O3 -qmaxmem=-1 -qipa -qstrict -qarch=auto -qtune=auto" --FFLAGS="-q64 -O3 -qmaxmem=-1 -qarch=auto -qtune=auto" --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="mpcc_r" is passed to cmake, but no cxx.<br>Cmake tries to find cxx but failed.<br> <br></div><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'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'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 "cd /gpfs1/cogenda/cogenda/packages/petsc-dev/externalpackages/metis-5.0.2 && make distclean && make config prefix=/gpfs1/cogenda/cogenda/packages/petsc-dev/IBM-XLCPP cc="mpcc_r" doubleprecision=1":<br>
rm -rf build/AIX-000092FAD400<br>
rm -rf build/AIX-000092FAD400<br>
mkdir -p build/AIX-000092FAD400<br>
cd build/AIX-000092FAD400 && 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><br></div></body></html>