Compiler segfault when building 2.13 with GCC 8.x

From: fabricio (
Date: Wed May 15 2019 - 13:51:28 CDT

Hello there

I'm trying to build NAMD 2.13 with both GCC 8.2.0 and 8.3.0 and the same
error happens.
Thought I'd give a heads-up to the list.
/opt/ohpc/pub/compiler/gcc/8.3.0/bin/g++ -std=c++11
-DCMK_OPTIMIZE=1 -Isrc -Iinc -Iplugins/include -Icolvars/src
-O3 -fexpensive-optimizations -ffast-math -o obj/GoMolecule.o -c
during GIMPLE pass: recip
src/GoMolecule.C: In member function 'BigReal
Molecule::get_go_force2(BigReal, BigReal, BigReal, int, int, BigReal*,
BigReal*) const':
src/GoMolecule.C:1456:9: internal compiler error: Segmentation fault
  BigReal Molecule::get_go_force2(BigReal x,
Please submit a full bug report,
with preprocessed source if appropriate.
See <> for instructions.

I intend to submit a bug to GCC devs.
Is there a workaround while they work on a fix?

[ ]'s

This archive was generated by hypermail 2.1.6 : Thu Dec 31 2020 - 23:17:11 CST