2011/12/5 Gong Ding <span dir="ltr"><<a href="mailto:gdiso@ustc.edu">gdiso@ustc.edu</a>></span><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>