[CMake] Cmake and ParMETIS

Pettey . Lucas LPettey at drc.com
Mon Apr 7 12:10:58 EDT 2014


Hello,

I am trying to build ParMETIS on a Cray XE6 that only uses static libraries. Every attempt at "make config" and "ccmake" results in the error below, even if I try to set CMAKE_EXE_LINKER_FLAGS to "-pie" and CMAKE_C_FLAGS to "-fPIE". I can't seem to find anyway to get rid of the "-rdynamic" and only compile statically. Any help is appreciated. I am currently also trying the ParMETIS forums.

Thanks
Lucas

CMake Error at /u/lpettey/cmake-2.8.11.2/Modules/CMakeTestCCompiler.cmake:61 (message):
   The C compiler "/opt/cray/xt-asyncpe/5.21/bin/cc" is not able to compile a
   simple test program.

   It fails with the following output:

    Change Dir: /u/lpettey/parmetis-4.0.3/build/CMakeFiles/CMakeTmp



   Run Build Command:/usr/bin/gmake "cmTryCompileExec301267810/fast"

   /usr/bin/gmake -f CMakeFiles/cmTryCompileExec301267810.dir/build.make
   CMakeFiles/cmTryCompileExec301267810.dir/build

   gmake[1]: Entering directory
   `/lustre/home1/u/lpettey/parmetis-4.0.3/build/CMakeFiles/CMakeTmp'

   /u/lpettey/cmake-2.8.11.2/bin/cmake -E cmake_progress_report
   /u/lpettey/parmetis-4.0.3/build/CMakeFiles/CMakeTmp/CMakeFiles 1

   Building C object
   CMakeFiles/cmTryCompileExec301267810.dir/testCCompiler.c.o

   /opt/cray/xt-asyncpe/5.21/bin/cc -fPIE -o
   CMakeFiles/cmTryCompileExec301267810.dir/testCCompiler.c.o -c
   /u/lpettey/parmetis-4.0.3/build/CMakeFiles/CMakeTmp/testCCompiler.c

   Linking C executable cmTryCompileExec301267810

   /u/lpettey/cmake-2.8.11.2/bin/cmake -E cmake_link_script
   CMakeFiles/cmTryCompileExec301267810.dir/link.txt --verbose=1

   /opt/cray/xt-asyncpe/5.21/bin/cc -fPIE
   CMakeFiles/cmTryCompileExec301267810.dir/testCCompiler.c.o -o
   cmTryCompileExec301267810 -rdynamic

   ld: dynamic STT_GNU_IFUNC symbol `strcmp' with pointer equality in
   `/opt/cray/xe-sysroot/4.1.40/usr/lib64/libc.a(strcmp.o)' can not be used
   when making an executable; recompile with -fPIE and relink with -pie

   gmake[1]: *** [cmTryCompileExec301267810] Error 1

   gmake[1]: Leaving directory
   `/lustre/home1/u/lpettey/parmetis-4.0.3/build/CMakeFiles/CMakeTmp'

   gmake: *** [cmTryCompileExec301267810/fast] Error 2





   CMake will not be able to correctly generate this project.
 Call Stack (most recent call first):
   CMakeLists.txt:2 (project)
________________________________
This electronic message transmission and any attachments that accompany it contain information from DRC® (Dynamics Research Corporation) or its subsidiaries, or the intended recipient, which is privileged, proprietary, business confidential, or otherwise protected from disclosure and is the exclusive property of DRC and/or the intended recipient. The information in this email is solely intended for the use of the individual or entity that is the intended recipient. If you are not the intended recipient, any use, dissemination, distribution, retention, or copying of this communication, attachments, or substance is prohibited. If you have received this electronic transmission in error, please immediately reply to the author via email that you received the message by mistake and also promptly and permanently delete this message and all copies of this email and any attachments. We thank you for your assistance and apologize for any inconvenience.


More information about the CMake mailing list