[CMake] Platform file for Bluegene/P ?
pat marion
pat.marion at kitware.com
Fri Apr 2 18:57:47 EDT 2010
The BlueGeneL platform file does indeed add '-lnss_files -lnss_dns -lresolv'
to the link line. This should be removed on BlueGene/P.
If you use the mpixlcxx wrapper then you don't need to add any extra
libraries to the link line. If you want to invoke xlc directly without
using the mpi wrapper script, then here is the link line you need to link
against mpi:
-L/bgsys/drivers/ppcfloor/comm/lib
-lmpich.cnk -ldcmfcoll.cnk -ldcmf.cnk
-L/bgsys/drivers/ppcfloor/runtime/SPI
-lSPI.cna -lrt -lpthread
Pat
Hi,
>
> I need to cross compile code on IBM Bluegene/P, while according to
> the wikipage on
>
> http://www.itk.org/Wiki/CMake_Cross_Compiling
>
> I can not find BluegeneP.cmake, but BluegeneL.cmake instead. So I used
> it and found the following error.
> Is this nss_dns, nss_files and resolv a required lib ? mpixlcxx works
> for a simple hello world program without any library.
>
>
>
> /bgsys/drivers/ppcfloor/comm/bin/mpixlc -Wl,-relax -qthreaded
> -qalias=noansi -qhalt=e CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o
> -o cmTryCompileExec -Wl,-lc -lnss_files -lnss_dns -lresolv
>
> /bgsys/drivers/ppcfloor/gnu-linux/powerpc-bgp-linux/bin/ld: cannot find
> -lnss_files
> _______________________________________________
> 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100402/9bce97c5/attachment.htm>
More information about the CMake
mailing list