Building with GCC on Ubuntu 18

From: Jérôme Hénin (jerome.henin_at_ibpc.fr)
Date: Thu Nov 08 2018 - 11:18:05 CST

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:
https://wiki.ubuntu.com/SecurityTeam/PIE
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).

Jerome

This archive was generated by hypermail 2.1.6 : Sun Dec 08 2019 - 23:20:15 CST