NAMD compiling problem

From: Faramarz Joodaki (fjoodaki_at_my.uri.edu)
Date: Thu Dec 06 2018 - 10:59:17 CST

Hi Everyone!
I always install NAMD easily on my computer. But recently when I switched
to Ubuntu 18.04, I could not compile it, and I received the blow error
during compiling.

/usr/bin/ld: .rootdir/fftw/lib/libsrfftw.a(rfftwnd.o): relocation
R_X86_64_32 against `.rodata.str1.32' can not be used when making a PIE
object; recompile with -fPIC
/usr/bin/ld: .rootdir/fftw/lib/libsrfftw.a(rplanner.o): relocation
R_X86_64_32 against symbol `rfftw_config' can not be used when making a PIE
object; recompile with -fPIC
/usr/bin/ld: .rootdir/fftw/lib/libsrfftw.a(rexec.o): relocation R_X86_64_32
against `.rodata.str1.32' can not be used when making a PIE object;
recompile with -fPIC
/usr/bin/ld: .rootdir/fftw/lib/libsfftw.a(planner.o): relocation
R_X86_64_32 against symbol `fftw_config' can not be used when making a PIE
object; recompile with -fPIC
/usr/bin/ld: .rootdir/fftw/lib/libsfftw.a(executor.o): relocation
R_X86_64_32 against `.rodata.str1.32' can not be used when making a PIE
object; recompile with -fPIC
/usr/bin/ld: .rootdir/fftw/lib/libsfftw.a(fftwnd.o): relocation R_X86_64_32
against `.rodata.str1.32' can not be used when making a PIE object;
recompile with -fPIC
/usr/bin/ld: .rootdir/fftw/lib/libsfftw.a(malloc.o): relocation R_X86_64_32
against `.rodata.str1.1' can not be used when making a PIE object;
recompile with -fPIC
/usr/bin/ld: .rootdir/fftw/lib/libsfftw.a(wisdom.o): relocation R_X86_64_32
against `.rodata.str1.1' can not be used when making a PIE object;
recompile with -fPIC
/usr/bin/ld: .rootdir/fftw/lib/libsfftw.a(wisdomio.o): relocation
R_X86_64_32 against `.text' can not be used when making a PIE object;
recompile with -fPIC
/usr/bin/ld: .rootdir/fftw/lib/libsfftw.a(putils.o): relocation
R_X86_64_32S against `.rodata' can not be used when making a PIE object;
recompile with -fPIC
/usr/bin/ld: .rootdir/fftw/lib/libsfftw.a(rader.o): relocation R_X86_64_32
against symbol `fftw_twiddle_rader' can not be used when making a PIE
object; recompile with -fPIC
/usr/bin/ld: .rootdir/fftw/lib/libsfftw.a(twiddle.o): relocation
R_X86_64_32 against `.bss' can not be used when making a PIE object;
recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Fatal Error by charmc in directory
/home/faramarz/Software/NAMD/NAMD_2.11_Source/Linux-x86_64-g++

I searched a lot about this problem but I could not figure it out the
problem. I reinstalled fftw, g++, and gcc but it did not help!

I would be so grateful if you could tell me your idea about this issue?

Best Regards,

Faramarz

This archive was generated by hypermail 2.1.6 : Tue Dec 31 2019 - 23:20:22 CST