[CMake] help on using mpicc with Cmake

Subir Singh Lamba subirs at gmail.com
Fri Mar 10 06:01:17 EST 2006


Hi,
Somehow I have been able to compile my code using mpicc while using Cmake.
But after compilation it gives the following error. My project name is BIS.
----------------------------------------------------------------------------------------------------------------------
Building shared library
/users/math/fc/pravir/Subir/Sun/Clang/Sequential/Cfdcodes/testCluster/bin/libBISSolver.so...
/usr/bin/ld: /opt/mpichdefault-1.2.6//lib/libmpich.a(type_commit.o):
relocation R_X86_64_32 can not be used when making a shared object;
recompile with -fPIC
/opt/mpichdefault-1.2.6//lib/libmpich.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: ***
[/users/math/fc/pravir/Subir/Sun/Clang/Sequential/Cfdcodes/testCluster/bin/libBISSolver.so]
Error 1
make[1]: ***
[/users/math/fc/pravir/Subir/Sun/Clang/Sequential/Cfdcodes/testCluster/bin/libBISSolver.so]
Error 2
make: *** [default_target] Error 2
---------------------------------------------------------------------------------------------------------------------------------

What cud be the source of the problem? Any help will be greatly appreciated.

thanks,

Subir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20060310/f2b8721a/attachment.htm


More information about the CMake mailing list