I recently had the same error while compiling emulators/hercules under some-current on a RPI zero with the same memory and was thinking of using later compilers etc. It turned out i was running out of swap, check your dmesg for ‘pid () killed...’. In my case i solved the problem by using
-O0
On sr.c only, but you may have to add only some swap.
Chavdar
/usr/pkgsrc/www/firefox52/work/build/dom/presentation/Unified_cpp_dom_presentation0.cpp
g++: internal compiler error: Killed (program cc1plus received signal 9)
# uname -a
NetBSD localhost 8.0_RC1 NetBSD 8.0_RC1 (GENERIC.201804191727Z) amd64
# which g++
/usr/bin/g++
# g++ --version
g++ (nb2 20180327) 5.5.0
Do not know whether it matters, but this is on a vultr instance with 512MB
RAM.
I am trying firefox52, because while www/firefox (59) builds fine, it's
behaving rather strangely. E.g. the "tab crashed" error comes often. Some
submit buttons don't have any effect etc. Besides many plugins are not
compatible with firefox 59.
If there are any known quirks to get firefox 59 work please do share.
Regarding above error, shall I be trying any alternative compiler from
pkgsrc?
Mayuresh
--