[CMake] Unknown origin of compiler flag on Cray
Will Dicharry
wdicharry at stellarscience.com
Thu Aug 27 13:58:46 EDT 2009
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3344 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090827/c3d6f575/attachment.bin>
More information about the CMake
mailing list