Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 35043

Summary: GCC 3.2.3-r3 fails to compile with bad register name `%ec'
Product: Gentoo Linux Reporter: Gualter Barbas Baptista <gualter>
Component: [OLD] GCC PortingAssignee: Please assign to toolchain <gcc-porting>
Status: RESOLVED INVALID    
Severity: blocker CC: pappy
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Gualter Barbas Baptista 2003-12-04 03:28:50 UTC
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)
Comment 1 Alexander Gabert (RETIRED) gentoo-dev 2004-03-04 05:29:50 UTC
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
Comment 2 Gualter Barbas Baptista 2004-03-04 17:24:25 UTC
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.