Compile LIGGGHTS on Ubuntu 16.04 - cfdemCompLIG

Submitted by alichem67hb on Mon, 11/27/2017 - 18:21

I would like to install CFDEM (the latest version dated 27/11/2017) on Ubuntu 16.04 but when I use "cfdemCompLIG" command to compile LIGGGHTS, I get an error. I have installed OpenFOAM-3.0.1 (32 bit). I would appreciate any comments to resolve this issue. Please find below the error message I get:

-L/usr/lib/x86_64-linux-gnu/
/usr/bin/ld: /usr/local/lib/libmpichcxx.a(initcxx.o): relocation R_X86_64_32S against `_ZTVN3MPI8DatatypeE' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libmpichcxx.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:917: recipe for target 'shlib' failed
make[1]: *** [shlib] Error 1
make[1]: Leaving directory '/home/ali/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_auto'
Makefile.shlib:43: recipe for target 'auto' failed
make: *** [auto] Error 2

Please note that I follow the official installation instructions in the documentation of CFDEM project website.

ljmutue | Wed, 06/27/2018 - 20:17

Hi alichem67hb,

I met the same problem as yours. Have you solved it? Thanks!

my error info is:
/usr/bin/ld: fix_fiber_spring_simple.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
fix_fiber_spring_simple.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:104: recipe for target 'shlib' failed
make[1]: *** [shlib] Error 1
make[1]: Leaving directory '/home/lmu/LIGGGHTS-PUBLIC/src/Obj_ubuntuVTK'
Makefile.shlib:62: recipe for target 'ubuntuVTK' failed
make: *** [ubuntuVTK] Error 2