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
_______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
