On 06/11/2015 09:32:23 PM, Grant Edwards wrote: > I got curious and just did "emerge -av gnubg". It compiled and > installed fine, and it seems to work.
Many thanks, it turnt out to be a strange problem. When compiled with gcc-5.1.0 and -O2, gnubg goes into a tight loop within memset even before function main is entered. When compiled with gcc-5.1.0 and -O1, gnubg gets a segment fault from within memset even before function main is entered. When compiled with gcc-5.1.0 and -O0, it works just fine. Stepping back to gcc-4.9.2 it succeeds even when compiled with -O2. So, it looks like a compiler error of gcc-5.1.0 Helmut.

