RE: Building with GCC on Ubuntu 18

From: Vermaas, Joshua (
Date: Thu Nov 08 2018 - 11:50:54 CST

The other option is to use dynamically loaded fftw and tcl. On ubuntu, I think the relevant packages are "fftw-dev" or "libfftw3-dev" and either "tcl8.5-dev" or "tcl8.6-dev", which put things where the default Makefile expects to find them.


On 2018-11-08 10:29:37-07:00 wrote:

Well look into it. Thanks for reporting that, Jerome.

On Nov 8, 2018, at 11:18 AM, Jrme Hnin <<>> wrote:

Dear all,
just an announcement to anyone who'd run into trouble building NAMD with GCC as shipped with recent Ubuntu distros. They enable PIE by default:>
which will break if you try to link NAMD with, say, a static FFTW that wasn't built with that option. Then you'll see errors like this:
> relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
This can be fixed by adding the option -no-pie to CXXOPTS in the relevant arch file (eg. Linux-x86_64-g++.arch).


This archive was generated by hypermail 2.1.6 : Mon Dec 31 2018 - 23:21:31 CST