[CMake] Cray wrappers and Intel compilers

Lucas.Pettey at engilitycorp.com Lucas.Pettey at engilitycorp.com
Tue May 5 12:13:43 EDT 2015


Hello,

I have been trying to use Cmake 3.2.2 on a Cray XC30 with the Intel compilers loaded. I encounter the following error:

  /opt/cray/craype/2.2.0/bin/cc -o
  CMakeFiles/cmTryCompileExec2303156381.dir/testCCompiler.c.o -c
  /p/home/lpettey/adh/parmetis-4.0.3/build/Linux-x86_64/CMakeFiles/CMakeTmp/testCCompiler.c


  Linking C executable cmTryCompileExec2303156381

  /p/home/lpettey/cmake-3.2.2/install/bin/cmake -E cmake_link_script
  CMakeFiles/cmTryCompileExec2303156381.dir/link.txt --verbose=1

  /opt/cray/craype/2.2.0/bin/cc
  CMakeFiles/cmTryCompileExec2303156381.dir/testCCompiler.c.o -o
  cmTryCompileExec2303156381 -rdynamic

  ld: dynamic STT_GNU_IFUNC symbol `strcmp' with pointer equality in
  `/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../lib64/libc.a(strcmp.o)'
  can not be used when making an executable; recompile with -fPIE and relink
  with -pie

Is there any way to ask Cmake not to add the -rdynamic to the link line? I believe this is what is causing the error.

Thanks,

Lucas Pettey, PhD
HPCMP PETTT EQM CTA Lead
ERDC-DSRC OnSite
Vicksburg, MS
512-297-9833 Mobile (preferred)
601-634-2980 Office
lucas.pettey at engilitycorp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150505/ee058706/attachment.html>


More information about the CMake mailing list