Emerging gcc fails. It stays compiling for a long time, but then shows the error shown in the following log. I suspect this might be a faulty installation, but I can't know how to check (other applications fail to compile, like qt). stage1/xgcc -Bstage1/ -B/usr/i586-pc-linux-gnu/bin/ -DIN_GCC -mcpu=i586 -pipe -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/gcc-3.2.3-r3/work/gcc-3.2.3/gcc -I/var/tmp/portage/gcc-3.2.3-r3/work/gcc-3.2.3/gcc/. -I/var/tmp/portage/gcc-3.2.3-r3/work/gcc-3.2.3/gcc/config -I/var/tmp/portage/gcc-3.2.3-r3/work/gcc-3.2.3/gcc/../include -c insn-peep.c \ -o insn-peep.o stage1/xgcc -Bstage1/ -B/usr/i586-pc-linux-gnu/bin/ -c -DIN_GCC -mcpu=i586 -pipe -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I/var/tmp/portage/gcc-3.2.3-r3/work/gcc-3.2.3/gcc -I/var/tmp/portage/gcc-3.2.3-r3/work/gcc-3.2.3/gcc/. -I/var/tmp/portage/gcc-3.2.3-r3/work/gcc-3.2.3/gcc/config -I/var/tmp/portage/gcc-3.2.3-r3/work/gcc-3.2.3/gcc/../include /var/tmp/portage/gcc-3.2.3-r3/work/gcc-3.2.3/gcc/genrecog.c -o genrecog.o stage1/xgcc -Bstage1/ -B/usr/i586-pc-linux-gnu/bin/ -DIN_GCC -mcpu=i586 -pipe -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -o genrecog \ genrecog.o rtl.o read-rtl.o bitmap.o ggc-none.o gensupport.o print-rtl.o errors.o ../libiberty/libiberty.a ./genrecog /var/tmp/portage/gcc-3.2.3-r3/work/gcc-3.2.3/gcc/config/i386/i386.md > tmp-recog.c /var/tmp/portage/gcc-3.2.3-r3/work/gcc-3.2.3/gcc/config/i386/i386.md:14010: warning: source missing a mode? /var/tmp/portage/gcc-3.2.3-r3/work/gcc-3.2.3/gcc/config/i386/i386.md:14080: warning: source missing a mode? /bin/sh /var/tmp/portage/gcc-3.2.3-r3/work/gcc-3.2.3/gcc/move-if-change tmp-recog.c insn-recog.c echo timestamp > s-recog stage1/xgcc -Bstage1/ -B/usr/i586-pc-linux-gnu/bin/ -DIN_GCC -mcpu=i586 -pipe -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/gcc-3.2.3-r3/work/gcc-3.2.3/gcc -I/var/tmp/portage/gcc-3.2.3-r3/work/gcc-3.2.3/gcc/. -I/var/tmp/portage/gcc-3.2.3-r3/work/gcc-3.2.3/gcc/config -I/var/tmp/portage/gcc-3.2.3-r3/work/gcc-3.2.3/gcc/../include -c insn-recog.c \ -o insn-recog.o xgcc: Internal error: Terminated (program cc1) Please submit a full bug report. See <URL:http://bugs.gentoo.org/> for instructions. {standard input}: Assembler messages: {standard input}:54771: Warning: end of file not at end of a line; newline inserted {standard input}:55132: Error: bad register name `%ec' make[2]: *** [insn-recog.o] Error 1 make[2]: Leaving directory `/tmp/portage/gcc-3.2.3-r3/work/build/gcc' make[1]: *** [stage2_build] Error 2 make[1]: Leaving directory `/tmp/portage/gcc-3.2.3-r3/work/build/gcc' make: *** [bootstrap-lean] Error 2 !!! ERROR: sys-devel/gcc-3.2.3-r3 failed. !!! Function src_compile, Line 411, Exitcode 2 !!! (no error message)
i need the hardware used, the output of 2 days memtest86 if intel, if other you can do memtesting at the openboot, the output of emerge info and if this happens to be a hardware (notable memory problem) also please try to test with a more recent version of gcc. thanks for your help, Alex
I'm sorry, I forgot to change the resolution of this bug. I found out that the problem was with the lack of memory while compiling. Virtual memory was turned off, so the 96 mb of the machine were not sufficient for the task. After virtual memory was turned on, everything compiled fine.