[Trilinos-Users] CentOS 5.5/Intel MPI build error

Doug Reeder dlr1 at cox.net
Thu Dec 9 16:18:43 MST 2010


Wade,

Sometimes this will appear if different compilers are used for the compile and link steps, or if the link step explicitly uses ld, when one step is creating 64 bit output and the other step is trying to create 32 bit output (-m32 and -m64 flags). I don't know if that is what is causing your problem but it should be easy to check.

Doug Reeder
On Dec 9, 2010, at 2:55 PM, Dave Wade-Stein wrote:

> Still trying to build Trilinos 10.2.0 on CentOS 5.5 system, using Intel MPI and getting " The C++ compiler "/opt/intel/impi/3.2.0.011/bin64/mpicxx" is not able to
>  compile a simple test program."
> 
> My CMake command is
> 
> cmake -DCMAKE_INSTALL_PREFIX:PATH=/scratch/contrib/trilinos-10.2.0-par -DCMAKE_BUILD_TYPE:STRING=RELEASE -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE -DTPL_ENABLE_MPI:BOOL=ON -DCMAKE_C_COMPILER:FILEPATH='mpicc' -DCMAKE_CXX_COMPILER:FILEPATH='mpicxx' -DCMAKE_Fortran_COMPILER:FILEPATH='mpif77' -DCMAKE_C_FLAGS:STRING='-fPIC' -DCMAKE_CXX_FLAGS:STRING='-fPIC' -DCMAKE_Fortran_FLAGS:STRING='-fPIC' -DTrilinos_ENABLE_Amesos:BOOL=ON -DTrilinos_ENABLE_ML:BOOL=ON -DTrilinos_ENABLE_AztecOO:BOOL=ON -DTrilinos_ENABLE_EpetraExt:BOOL=ON -DTrilinos_ENABLE_Epetra:BOOL=ON -DTrilinos_ENABLE_Triutils:BOOL=ON -DTrilinos_ENABLE_Teuchos:BOOL=ON -DTrilinos_ENABLE_Ifpack:BOOL=ON -DTrilinos_ENABLE_Galeri:BOOL=ON -DDART_TESTING_TIMEOUT:STRING=600  -DBUILD_SHARED_LIBS:BOOL=ON -DLAPACK_LIBRARY_DIRS:PATH='/scratch/contrib/atlas-3.8.3-ser/lib' -DLAPACK_LIBRARY_NAMES:STRING='lapack' -DBLAS_LIBRARY_DIRS:PATH='/scratch/contrib/atlas-3.8.3-ser/lib' -DBLAS_LIBRARY_NAMES:STRING='cblas;atlas' /scratch/xuser/extdws/vpall-4.2/builds/trilinos-10.2.0  
> 
> My previous attempt at the command had 
> 
> -DTrilinos_EXTRA_LINK_FLAGS:STRING='-L/usr/lib/gcc/x86_64-redhat-linux/4.1.1 -Wl,-rpath,/usr/lib/gcc/x86_64-redhat-linux/4.1.1' 
> 
> which I removed as per a suggestion on this list. But it doesn't seem to change the output (see below). Any help would be appreciated!
> 
> Dave 
> 
> ...
> Final set of enabled packages:  Teuchos ThreadPool Kokkos Epetra Zoltan Triutils Tpetra EpetraExt Isorropia AztecOO Galeri Amesos Ifpack ML 14
> ...
> 
> Probing the environment ...
> 
> -- CMAKE_BUILD_TYPE='RELEASE'
> -- MPI_USE_COMPILER_WRAPPERS='ON'
> -- Leaving current CMAKE_C_COMPILER=mpicc since it is already set!
> -- Leaving current CMAKE_CXX_COMPILER=mpicxx since it is already set!
> -- Leaving current CMAKE_Fortran_COMPILER=mpif77 since it is already set!
> -- MPI_EXEC='/opt/intel/impi/3.2.0.011/bin64/mpiexec'
> -- MPI_EXEC='/opt/intel/impi/3.2.0.011/bin64/mpiexec'
> -- CMAKE_C_COMPILER_ID='Intel'
> -- The CXX compiler identification is Intel
> -- Check for working CXX compiler: /opt/intel/impi/3.2.0.011/bin64/mpicxx
> -- Check for working CXX compiler: /opt/intel/impi/3.2.0.011/bin64/mpicxx -- broken
> CMake Error at /scratch/contrib/cmake-2.8.2-ser/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:45 (MESSAGE):
>  The C++ compiler "/opt/intel/impi/3.2.0.011/bin64/mpicxx" is not able to
>  compile a simple test program.
> 
>  It fails with the following output:
> 
>   Change Dir: /HOME01/XUSER/extdws/scratch/vpall-4.2/builds/trilinos-10.2.0/par/CMakeFiles/CMakeTmp
> 
> 
> 
>  Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"
> 
>  /usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make
>  CMakeFiles/cmTryCompileExec.dir/build
> 
>  gmake[1]: Entering directory
>  `/scratch/xuser/extdws/vpall-4.2/builds/trilinos-10.2.0/par/CMakeFiles/CMakeTmp'
> 
> 
>  /scratch/contrib/cmake-2.8.2-ser/bin/cmake -E cmake_progress_report
>  /HOME01/XUSER/extdws/scratch/vpall-4.2/builds/trilinos-10.2.0/par/CMakeFiles/CMakeTmp/CMakeFiles
>  1
> 
>  Building CXX object CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o
> 
>  /opt/intel/impi/3.2.0.011/bin64/mpicxx -fPIC -o
>  CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -c
>  /HOME01/XUSER/extdws/scratch/vpall-4.2/builds/trilinos-10.2.0/par/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
> 
> 
>  Linking CXX executable cmTryCompileExec
> 
>  /scratch/contrib/cmake-2.8.2-ser/bin/cmake -E cmake_link_script
>  CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
> 
>  /opt/intel/impi/3.2.0.011/bin64/mpicxx -fPIC
>  CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -o cmTryCompileExec
>  -rdynamic
> 
> 
>  CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o:(.gnu.linkonce.d.DW.ref.__gxx_personality_v0+0x0):
>  undefined reference to `__gxx_personality_v0'
> 
>  /opt/intel/impi/3.2.0.011/lib64/libmpiic4.so: undefined reference to
>  `operator delete[](void*)'
> 
>  /opt/intel/impi/3.2.0.011/lib64/libmpiic4.so: undefined reference to
>  `operator new(unsigned long)'
> 
>  /opt/intel/impi/3.2.0.011/lib64/libmpiic4.so: undefined reference to
>  `operator delete(void*)'
> 
>  /opt/intel/impi/3.2.0.011/lib64/libmpiic4.so: undefined reference to
>  `operator new[](unsigned long)'
> 
>  /opt/intel/impi/3.2.0.011/lib64/libmpiic4.so: undefined reference to
>  `__cxa_pure_virtual'
> 
>  /opt/intel/impi/3.2.0.011/lib64/libmpiic4.so: undefined reference to
>  `__cxa_allocate_exception'
> 
>  /opt/intel/impi/3.2.0.011/lib64/libmpiic4.so: undefined reference to
>  `__cxa_throw'
> 
>  /opt/intel/impi/3.2.0.011/lib64/libmpiic4.so: undefined reference to
>  `vtable for __cxxabiv1::__class_type_info'
> 
>  /opt/intel/impi/3.2.0.011/lib64/libmpiic4.so: undefined reference to
>  `vtable for __cxxabiv1::__si_class_type_info'
> 
>  gmake[1]: *** [cmTryCompileExec] Error 1
> 
>  gmake[1]: Leaving directory
>  `/scratch/xuser/extdws/vpall-4.2/builds/trilinos-10.2.0/par/CMakeFiles/CMakeTmp'
> 
> 
>  gmake: *** [cmTryCompileExec/fast] Error 2
> 
> 
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20101209/9d12e865/attachment-0001.html 


More information about the Trilinos-Users mailing list