Hi
I am trying to install plumed 2.7.1 in ubuntu 18.03. The compilation seems to work fine with the following options:
./configure --prefix=/home/fangel/plumed271 --disable-external-blas --disable-external-lapack
I decided to disable external blas and lapack because I thought they could cause some problem but the error is the same without these options. The error comes when trying to "make":
.......................................................................
Building Plumed.cmake
Building Plumed.cmake, static version
Building Plumed.cmake, runtime-linking version
Building Plumed.cmake, shared version
../core/PlumedMain.o: In function `PLMD::PlumedMain::readInputLines(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
PlumedMain.cpp:(.text+0x5c5f): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/bin/ld: //usr/local/lib/libfftw3.a(apiplan.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: //usr/local/lib/libfftw3.a(mapflags.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
.............................................................................LOTS OF LINES WITH SIMILAR MESSAGES
/usr/bin/ld: //usr/local/lib/libfftw3.a(direct2.o): relocation R_X86_64_32 against `.text' can not be used when making a PIE 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 PIE object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Makefile:484: recipe for target 'plumed-static' failed
make[4]: *** [plumed-static] Error 1
make[4]: Leaving directory '/home/fangel/Downloads/plumed-2.7.1/src/lib'
Makefile:110: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/home/fangel/Downloads/plumed-2.7.1/src/lib'
Makefile:8: recipe for target 'lib' failed
make[2]: *** [lib] Error 2
make[2]: Leaving directory '/home/fangel/Downloads/plumed-2.7.1/src'
Makefile:32: recipe for target 'lib' failed
make[1]: *** [lib] Error 2
make[1]: Leaving directory '/home/fangel/Downloads/plumed-2.7.1'
Makefile:21: recipe for target 'all' failed
make: *** [all] Error 2
It seems some error with fftw. I reinstalled it but the error persists. Any help?