The BlueGeneL platform file does indeed add '-lnss_files -lnss_dns
-lresolv&#39; to the link line.  This should be removed on BlueGene/P.<br><br>If
you use the mpixlcxx wrapper then you don&#39;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:<br>
<br>-L/bgsys/drivers/ppcfloor/comm/lib<br><div id=":1es" class="ii gt">   -lmpich.cnk -ldcmfcoll.cnk -ldcmf.cnk<br>-L/bgsys/drivers/ppcfloor/runtime/SPI<br>   -lSPI.cna -lrt -lpthread<br><br>Pat<br></div><br><div class="gmail_quote">
<font color="#888888"><br><br></font><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
   I need to cross compile code on IBM Bluegene/P, while according to<br>
the wikipage on<br>
<br>
<a href="http://www.itk.org/Wiki/CMake_Cross_Compiling" target="_blank">http://www.itk.org/Wiki/CMake_Cross_Compiling</a><br>
<br>
I can not find BluegeneP.cmake, but BluegeneL.cmake instead. So I used<br>
it and found the following error.<br>
Is this nss_dns, nss_files and resolv a required lib ? mpixlcxx works<br>
for a simple hello world program without any library.<br>
<br>
<br>
<br>
/bgsys/drivers/ppcfloor/comm/bin/mpixlc -Wl,-relax -qthreaded<br>
  -qalias=noansi -qhalt=e CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o<br>
  -o cmTryCompileExec -Wl,-lc -lnss_files -lnss_dns -lresolv<br>
<br>
  /bgsys/drivers/ppcfloor/gnu-linux/powerpc-bgp-linux/bin/ld: cannot find<br>
  -lnss_files<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
<br>
<br></blockquote></div><br>