$ LANG="en_US.UTF-8" make
[ 40%] Built target core_static
Scanning dependencies of target parse_static
[ 41%] Building CXX object CMakeFiles/parse_static.dir/parse/EffectParser.cpp.o
c++: Internal error: Segmentation fault (program cc1plus)
Please submit a full bug report.
See <http://bugs.gentoo.org/> for instructions.
make[2]: *** [CMakeFiles/parse_static.dir/parse/EffectParser.cpp.o] Error 1
make[1]: *** [CMakeFiles/parse_static.dir/all] Error 2
make: *** [all] Error 2
gcc 4.5.3
boost 1.48.0
GG and freeorion from trunk [rev 5153]en_US.UTF-8
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm
Geoff the Medio wrote:How much RAM do you have? The parsers use a bunch of Boost templates and tend to use quite a lot of memory to compile.
I also build (on Windows) against Boost 1.47, so there might be an issue specific to 1.48.
I've 6 GB RAM and 6 GB swap but I'm not sure that compiler get all memory.
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm
I can confirm GCC (in my case: 4.6.2) segfaults on compiling here for 0.4.1. I have compiled on two different Linux machines, both x86_64. One had 4GB RAM (4 threads), the other 12 GB (8 threads).
Edit: I forgot to mention that I'm using boost 1.49.0 headers.
Do any of the other parser cpp files crash the compiler if compiled individually? For that matter, does EffectParser.cpp crash if compiled on its own, rather than as part of a whole-project build?
If it's just that file and it always crashes, I can try splitting it up similar to the Condition parsers.
It looks like EffectsParser.cpp also caused a compiler segfault in freeorion 0.4.0 about 50% of the time. I just looked at the packaging logs when building the RPMs for openSUSE and it frequently failed on that file with a GCC segfault (OOM). It only succeeded a few times when server loads was low and it could use loads of memory.
Thanks. Freeorion successfully compiled. But it crashes if I use rus_stringtable.txt and shows artifacts around text: viewtopic.php?f=9&t=6165
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm