[AMBER] Installation fails: libfftw3.a: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC

From: Pertschy, Florian via AMBER <amber.ambermd.org>
Date: Tue, 30 May 2023 10:21:25 +0000

Hello and good day!

I am trying to install Amber22 with AmberTools23 on our backup cluster where Amber20 is already installed and at 10% of the 'make install' process I get a bunch of errors like the following and the installation fails


>/opt/rh/gcc-toolset-9/root/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
>/opt/rh/gcc-toolset-9/root/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
>/opt/rh/gcc-toolset-9/root/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
>/opt/rh/gcc-toolset-9/root/usr/bin/ld: final link failed: nonrepresentable section on output
>collect2: error: ld returned 1 exit status
>make[2]: *** [AmberTools/src/cew/CMakeFiles/libcew.dir/build.make:114: AmberTools/src/cew/libcew.so] Error 1
>make[1]: *** [CMakeFiles/Makefile2:5000: AmberTools/src/cew/CMakeFiles/libcew.dir/all] Error 2
>make: *** [Makefile:156: all] Error 2

The system is running on Rocky Linux 8.7 (Green Obsidian)
Compilers:
C: GNU 9.2.1 (/opt/rh/gcc-toolset-9/root/usr/bin/gcc)
CXX: GNU 9.2.1 (/opt/rh/gcc-toolset-9/root/usr/bin/g++)
Fortran: GNU 9.2.1 (/opt/rh/gcc-toolset-9/root/usr/bin/gfortran)

All errors shown seem to be related to this libfftw3.a - I could send my cmake.log if needed

Please help us out

Best
Florian
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Tue May 30 2023 - 03:30:03 PDT
Custom Search