Problem while compiling using MPICH2 on parallel machine

Discussion about building and installing Elmer
Post Reply
ABasak
Posts: 9
Joined: 26 Oct 2010, 15:03

Problem while compiling using MPICH2 on parallel machine

Post by ABasak »

Hello,

I am trying to install ELMER on a parallel machine. However, I am getting the following error while compiling the FEM package:

/usr/bin/ld: /usr/local/mpich2/lib64/libmpich.a(recvf.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC

Any ideas? I am using the default compilers in my system (i.e. mpich2gcc, mpich2g++, mpich2ifort).

Abhishek
sampo
Posts: 6
Joined: 05 Dec 2011, 16:04
Antispam: Yes
Location: Espoo, Finland

Re: Problem while compiling using MPICH2 on parallel machine

Post by sampo »

Hi,

Could you post the compilation script you were using, when the error occurred? Also, some information about the architechture of your system would be useful.

-Sampo
Post Reply