[AMBER] installation error: /usr/bin/ld: final link failed: Nonrepresentable section on output

From: jinfeng liu <jinfengliu1119.gmail.com>
Date: Sun, 11 Jul 2021 17:30:14 +0800

Dear Amber developers,

I am trying to compile amber20 with cmake, and both gnu (versions 4.8.5 and
8.5.0) and intel compilers were tried. The run-cmake process seems normal.
However, I always came across a severe problem during
the installing process. The error message is in the following,

/usr/bin/ld: /usr/local/lib/libfftw3.a(direct-r2r.o): relocation
R_X86_64_32 against `.text' can not be used when making a shared object;
recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfftw3.a(direct2.o): relocation R_X86_64_32
against `.text' can not be used when making a shared object; recompile with
-fPIC
/usr/bin/ld: /usr/local/lib/libfftw3.a(hc2hc-direct.o): relocation
R_X86_64_32 against `.text' can not be used when making a shared object;
recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
make[2]: *** [AmberTools/src/sander/libsander.so] Error 1
make[1]: *** [AmberTools/src/sander/CMakeFiles/libsander.dir/all] Error 2
make: *** [all] Error 2

Could anyone help to solve this problem ? Thanks very much !

Jinfeng
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Sun Jul 11 2021 - 03:00:02 PDT
Custom Search