Dear experts,

our problem is that cmake sets automatically linking libraries for C,C++ and 
with Intel compilers (Fortran,C,C++) we are getting these problems
( first observed here 
https://repo.ctcc.no/CDash/viewBuildError.php?buildid=5283 ) :
.
.
.
Linking Fortran executable dirac.x
/people/disk2/ilias/bin/cmake_install/bin/cmake -E cmake_link_script 
CMakeFiles/dirac.x.dir/link.txt --verbose=1
/people/disk2/magnus/intel/composerxe-2011.2.137/bin/intel64/ifort    -static 
-Wl,-E -w -assume byterecl -DVAR_IFORT -g -traceback -static-libgcc 
-static-intel -i8 -O0 CMakeFiles/dirac.x.dir/main/main.F90.o  -o dirac.x 
-i_dynamic lib/libdirac.a lib/libxcfun.a -ldecimal -lcilkrts -lstdc++ -lirc 
ld: cannot find -lcilkrts
make[3]: *** [dirac.x] Error 1
.

Manual linking without the "-lcilkrts" flag works:

[email protected]:~/QCH_Work/qch_progs/dirac_git/trunk/build_ompi_ifort_icc_ilp64_static/./people/disk2/magnus/intel/composerxe-2011.2.137/bin/intel64/ifort
    -static -Wl,-E -w -assume byterecl -DVAR_IFORT -g -traceback -static-libgcc 
-static-intel -i8 -O0 CMakeFiles/dirac.x.dir/main/main.F90.o  -o dirac.x 
-i_dynamic lib/libdirac.a lib/libxcfun.a -ldecimal  -lstdc++ -lirc 
[email protected]:~/QCH_Work/qch_progs/dirac_git/trunk/build_ompi_ifort_icc_ilp64_static/.

The problematic "cilkrts" library is set automatically within 
CMAKE_C_IMPLICIT_LINK_LIBRARIES & CMAKE_CXX_IMPLICIT_LINK_LIBRARIES variables, 
as found:

[email protected]:~/QCH_Work/qch_progs/dirac_git/trunk/build_ompi_ifort_icc_ilp64_static/.grep
 cilkrts *  */*
.
CMakeFiles/CMakeCCompiler.cmake:SET(CMAKE_C_IMPLICIT_LINK_LIBRARIES 
"imf;svml;m;ipgo;decimal;cilkrts;stdc++;irc;c;irc_s;dl;c")
CMakeFiles/CMakeCXXCompiler.cmake:SET(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES 
"imf;svml;m;ipgo;decimal;cilkrts;stdc++;irc;c;irc_s;dl;c")
.
.

Please how to remove  "cilkrts" or any other parameter from 
CMAKE_<LANG>_IMPLICIT_LINK_LIBRARIES, 
http://www.cmake.org/cmake/help/cmake-2-8-docs.html#variable:CMAKE_LANG_IMPLICIT_LINK_LIBRARIES
  ?

We have cmake version 2.8.4 and  Intel is Intel(R) 64, Version 12.0.2.137 Build 
20110112.

Yours, M.Ilias

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to