Summary: | Compiler fails to build - internal compiler error: in do_SUBST, at combine.c:462 | ||
---|---|---|---|
Product: | gcc | Reporter: | Hamish Moffatt <hamish> |
Component: | middle-end | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gcc-bugs, jens, kazu, luke.powell, tobutaz |
Priority: | P2 | Keywords: | build, ice-on-valid-code |
Version: | 4.0.1 | ||
Target Milestone: | 4.2.0 | ||
Host: | x86_64-linux-gnu | Target: | m68k-unknown-elf |
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | ||
Bug Depends on: | 22001 | ||
Bug Blocks: | |||
Attachments: | The preprocessed source file causing the error |
Description
Hamish Moffatt
2005-08-17 13:46:42 UTC
Another report is in PR 22001 for m68k-rtems but I don't know what host it is on. This might be a bug in the target files not understanding HWI as 64bits. This happens with *all* versions of m68k-elf-gcc I tried to build (3.3.6, 3.4.5, 3.4.6, 4.0.2, 4.0.3). Host gcc: gcc version 4.0.3 20060212 (prerelease) (Debian 4.0.2-9) Example: m68k-elf-gcc 3.4.6, configured with: ../../gcc-3.4.6/configure --target=m68k-elf --prefix=/opt/m68k --enable-languages=c Result: /home/jens/build/gcc/gcc/xgcc -B/home/jens/build/gcc/gcc/ -B/opt/m68k/m68k-elf/bin/ -B/opt/m68k/m68k-elf/lib/ -isystem /opt/m68k/m68k-elf/include -isystem /opt/m68k/m68k-elf/sys-include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../../gcc-3.4.6/gcc -I../../../gcc-3.4.6/gcc/. -I../../../gcc-3.4.6/gcc/../include -m68000 -DL_fixdfdi -c ../../../gcc-3.4.6/gcc/libgcc2.c -o libgcc/m68000/_fixdfdi.o ../../../gcc-3.4.6/gcc/libgcc2.c: In function `__fixdfdi': ../../../gcc-3.4.6/gcc/libgcc2.c:1277: internal compiler error: in do_SUBST, at combine.c:447 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. make[2]: *** [libgcc/m68000/_fixdfdi.o] Fehler 1 make[2]: Leaving directory `/home/jens/build/gcc/gcc' make[1]: *** [stmp-multilib] Fehler 2 make[1]: Leaving directory `/home/jens/build/gcc/gcc' make: *** [all-gcc] Fehler 2 The line numbers vary with gcc versions, but it's always an ICE of xgcc in do_SUBST (combine.c), trying to compile _fixdfdi (libgcc2.c) Created attachment 11085 [details]
The preprocessed source file causing the error
This is annoying, all of these fail: 3.4.5, 3.4.6, 4.0.3, 4.1.0 I've tried to build from i386-linux-gnu instead of x86_64-linux-gnu by passing --host=i386 --target=m68k-elf to the configure script, to no avail. Not reproducible. I built a m68k-elf toolchain on x86_64-pc-linux-gnu and compiled the testcase. No ICE was observed. (In reply to comment #5) > Not reproducible. > > I built a m68k-elf toolchain on x86_64-pc-linux-gnu and compiled the testcase. > No ICE was observed. > I am also seeing this bug with v4.1.1. My configure line was ../gcc-4.1.1/configure --target=m68k-elf --prefix=/home/lpowell/m68k-gcc --disable-shared --with-gnu-as --with-gnu-ld --with-newlib --without-headers --enable-languages=c --with-local-prefix=/home/lpowell/m68k-gcc/m68k-elf The final command and output was /home/lpowell/build-gcc/./gcc/xgcc -B/home/lpowell/build-gcc/./gcc/ -B/home/lpowell/m68k-gcc/m68k-elf/bin/ -B/home/lpowell/m68k-gcc/m68k-elf/lib/ -isystem /home/lpowell/m68k-gcc/m68k-elf/include -isystem /home/lpowell/m68k-gcc/m68k-elf/sys-include -O2 -O2 -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../gcc-4.1.1/gcc -I../../gcc-4.1.1/gcc/. -I../../gcc-4.1.1/gcc/../include -I../../gcc-4.1.1/gcc/../libcpp/include -m68000 -DL_fixdfdi -c ../../gcc-4.1.1/gcc/libgcc2.c -o libgcc/m68000/_fixdfdi.o ../../gcc-4.1.1/gcc/libgcc2.c: In function ‘__fixdfdi’: ../../gcc-4.1.1/gcc/libgcc2.c:1238: internal compiler error: in do_SUBST, at combine.c:470 My build gcc version is 4.1.1. I'm running on AMD x86-64, GNU/Linux 2.4.1. |