Hi All,

I am experiencing a strange problem on Cray XT machines running CNL compute nodes with the PGI compiler.

It appears that something is adding the flags "-Bstatic -Bdynamic" (in that order) to the link line. It looks like the Linux.cmake platform module sets the the variable CMAKE_${type}_DYNAMIC_C_FLAGS to -Bdynamic. But that's the only reference to the flags that I can find anywhere in the project.

The cache does not contain the flags, my list files do not contain the flags, and as far as I can tell, none of the modules I am using add the flags (the only modules I call are a custom exodus find module, a custom netcdf find module, and the HDF5 find module I submitted earlier this week). Also, all of the libraries built by my projects and the libraries found by cmake with find_package are static.

The flags are causing problems because we use the Cray provided wrapper compilers, which add a few additional libraries to the link line, and the ordering of the flags causes the linker to use the dynamic version of some libraries, which is unsupported by the CNL compute nodes.

Has anyone seen something like this before, or does anyone have any suggestions on where else I should look to find the culprit?

Thanks,
--Will

--
Will Dicharry
Software Developer
Stellar Science Ltd Co

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
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