[CMake] help on using mpicc with Cmake

Prakash Punnoor prakash at punnoor.de
Fri Mar 10 06:31:15 EST 2006


Am Freitag März 10 2006 12:01 schrieb Subir Singh Lamba:
> 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/l
>ibBISSolver.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

You are trying to link a static lib into a shared lib - not allowed unless 
mpich.a is compiled pic. Search the archive, I explained it a week ago.
-- 
(°=                 =°)
//\ Prakash Punnoor /\\
V_/                 \_V
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20060310/e10bb7d3/attachment.pgp


More information about the CMake mailing list