Created attachment 22132 [details] The preprocessed source causing the trouble. At the middle of building gnat 0.8.8 (with boost 1.44.0) g++ dies with an internal error related to a segmentation fault. I'm using gcc 4.5.1 with glibc 2.12.1 in a mips64-linux running n32 userland code, and binutils from a snapshot of the end of august (for the loongson2f fix). The gcc is built, as a special flag, with --with-arch=loongson2f. I attach the preprocessed file that triggers the error. Compile the file with the same flags the gnash build system decided: g++ -g -O2 -fvisibility-inlines-hidden -fPIC -c Removing only "-fPIC", the problem goes away. Using "-O0" instead, also makes the problem go away. Removing only "-fvisibility-inlines-hidden" also makes the problem go away. The system has 1GiB of RAM, and monitoring with 'top', I see g++ never goes beyond 300MiB.
CC-ing mips maintainers.