Error 2 installing plumed in ubuntu 18.03

223 views
Skip to first unread message

Ángel Piñeiro

unread,
Jul 10, 2021, 6:26:04 AM7/10/21
to PLUMED users
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?

Giovanni Bussi

unread,
Aug 27, 2021, 2:05:48 PM8/27/21
to plumed...@googlegroups.com
Hi,

sorry I saw this with some delay. You should make sure to install fftw *shared* libraries. Alternatively, tell plumed not to use fftw (--disable-fftw)

Giovanni

--
You received this message because you are subscribed to the Google Groups "PLUMED users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plumed-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plumed-users/4833cec7-f5ed-4744-b264-f25d65f4e9fan%40googlegroups.com.

Ángel Piñeiro

unread,
Sep 6, 2021, 2:34:54 PM9/6/21
to PLUMED users
I had missed your answer, thank you! it works perfectly well now
Reply all
Reply to author
Forward
0 new messages