[petsc-users] METIS without C++ compiler

Tabrez Ali tabrezali at gmail.com
Mon Jan 11 09:41:42 CST 2016


Hello

I just wanted to point that configure fails when "--with-metis=1 
--download-metis=1" options are used and a C++ compiler is not installed.

After changing "project(METIS)" to "project(METIS C)" in 
petsc-3.6.3/arch-linux2-c-opt/externalpackages/metis-5.1.0-p1/CMakeLists.txt 
it works alright.

Not sure if there is another way to suppress the check.

Regards,

Tabrez

*******************************************************************************
          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log 
for details):
-------------------------------------------------------------------------------
Error configuring METIS with cmake Could not execute "cd 
/home/ubuntu/petsc-3.6.3/arch-linux2-c-opt/externalpackages/metis-5.1.0-p1/build 
&& /usr/bin/cmake .. 
-DCMAKE_INSTALL_PREFIX=/home/ubuntu/petsc-3.6.3/arch-linux2-c-opt 
-DCMAKE_VERBOSE_MAKEFILE=1 
-DCMAKE_C_COMPILER="/home/ubuntu/petsc-3.6.3/arch-linux2-c-opt/bin/mpicc" -DCMAKE_AR=/usr/bin/ar 
-DCMAKE_RANLIB=/usr/bin/ranlib -DCMAKE_C_FLAGS:STRING="-fPIC -O" 
-DCMAKE_Fortran_COMPILER="/home/ubuntu/petsc-3.6.3/arch-linux2-c-opt/bin/mpif90" 
-DCMAKE_Fortran_FLAGS:STRING="-fPIC -ffree-line-length-0 -O" 
-DGKLIB_PATH=../GKlib -DSHARED=1 -DMETIS_USE_DOUBLEPRECISION=1":
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is unknown
-- Check for working C compiler: 
/home/ubuntu/petsc-3.6.3/arch-linux2-c-opt/bin/mpicc
-- Check for working C compiler: 
/home/ubuntu/petsc-3.6.3/arch-linux2-c-opt/bin/mpicc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Looking for getline
-- Looking for getline - found
-- Performing Test HAVE__thread
-- Performing Test HAVE__thread - Success
-- checking for __thread thread-local storage - found
-- Configuring incomplete, errors occurred!
See also 
"/home/ubuntu/petsc-3.6.3/arch-linux2-c-opt/externalpackages/metis-5.1.0-p1/build/CMakeFiles/CMakeOutput.log".
See also 
"/home/ubuntu/petsc-3.6.3/arch-linux2-c-opt/externalpackages/metis-5.1.0-p1/build/CMakeFiles/CMakeError.log".CMake 
Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   
Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
*******************************************************************************



More information about the petsc-users mailing list