Bootstrap failure on x86: Can't compile cpplib
Chip Salzenberg
chip@valinux.com
Sat Feb 26 14:53:00 GMT 2000
Today's CVS sources won't bootstrap on the x86, specifically a PII.
Here's the error:
----------------------------------------------------------------------
stage1/xgcc -Bstage1/ -B/usr/local/egcs/i686-pc-linux-gnu/bin/ -c -DIN_GCC -pipe -g -O2 -DHAVE_CONFIG_H -I. -I../SRC/gcc -I../SRC/gcc/config -I../SRC/gcc/../include ../SRC/gcc/cpplib.c
../SRC/gcc/cpplib.c: In function `cpp_define':
../SRC/gcc/cpplib.c:237: Internal compiler error in `mark_jump_label', at jump.c:3876
----------------------------------------------------------------------
Here's the configuration:
----------------------------------------------------------------------
# This directory was configured as follows:
SRC/configure --with-gcc-version-trigger=/u/build/gcc/egcs/SRC/gcc/version.c --host=i686-pc-linux-gnu --prefix=/usr/local/egcs --enable-languages=objc,c++ --enable-threads=posix --enable-shared --enable-version-specific-runtime-libs --enable-namespaces --enable-long-long --norecursion
# using "mh-frag" and "mt-frag"
----------------------------------------------------------------------
Here's a backtrace:
----------------------------------------------------------------------
Script started on Sat Feb 26 14:45:33 2000
$ gdb stage1/cc1
GNU gdb 19990928
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
Breakpoint 1 at 0x8049138
Breakpoint 2 at 0x80a2efa: file ../SRC/gcc/rtl.c, line 1249.
.gdbinit:5: Error in sourced command file:
../SRC/gcc/.gdbinit:102: Error in sourced command file:
Function "abort" not defined.
(gdb) run -g -O2 cpplib.i
Starting program: /u/build/gcc/egcs/gcc/stage1/cc1 -g -O2 cpplib.i
Breakpoint 1 at 0x40036d25
vprintf getchar getc_unlocked getchar_unlocked putchar fputc_unlocked putc_unlocked putchar_unlocked feof_unlocked ferror_unlocked tolower toupper __strcpy_small __strcspn_c1 __strcspn_c2 __strcspn_c3 __strspn_c1 __strspn_c2 __strspn_c3 __strpbrk_c2 __strpbrk_c3 __strtok_r_1c __strsep_1c __strsep_2c __strsep_3c __strsep_g strtod strtol strtoul strtoq strtouq strtoll strtoull atof atoi atol atoll stat lstat fstat mknod quote_string cpp_grow_buffer cpp_define
Breakpoint 2, fancy_abort (file=0x81fb279 "../SRC/gcc/jump.c", line=3876,
function=0x81fb480 "mark_jump_label") at ../SRC/gcc/rtl.c:1249
1249 if (function == NULL)
(gdb) where
#0 fancy_abort (file=0x81fb279 "../SRC/gcc/jump.c", line=3876,
function=0x81fb480 "mark_jump_label") at ../SRC/gcc/rtl.c:1249
#1 0x80dd197 in mark_jump_label (x=0x402b6650, insn=0x402a3b40, cross_jump=0,
in_mem=0) at ../SRC/gcc/jump.c:3876
#2 0x80dd336 in mark_jump_label (x=0x402b6660, insn=0x402a3b40, cross_jump=0,
in_mem=0) at ../SRC/gcc/jump.c:3964
#3 0x80db688 in mark_all_labels (f=0x4029c800, cross_jump=0)
at ../SRC/gcc/jump.c:2243
#4 0x80d91d0 in jump_optimize_1 (f=0x4029c800, cross_jump=0, noop_moves=0,
after_regscan=0, mark_labels_only=0) at ../SRC/gcc/jump.c:211
#5 0x80d910c in jump_optimize (f=0x4029c800, cross_jump=0, noop_moves=0,
after_regscan=0) at ../SRC/gcc/jump.c:144
#6 0x804c705 in rest_of_compilation (decl=0x40264b00)
at ../SRC/gcc/toplev.c:3083
#7 0x81d74df in finish_function (nested=0) at ../SRC/gcc/c-decl.c:6460
#8 0x81c937a in yyparse () at c-parse.y:311
#9 0x804b7fd in compile_file (name=0x40104160 "cpplib.i")
at ../SRC/gcc/toplev.c:2432
#10 0x804efeb in main (argc=4, argv=0xbf7ffbd4) at ../SRC/gcc/toplev.c:4864
(gdb) up
#1 0x80dd197 in mark_jump_label (x=0x402b6650, insn=0x402a3b40, cross_jump=0,
in_mem=0) at ../SRC/gcc/jump.c:3876
3876 abort ();
(gdb) list
3871 rtx olabel = label;
3872 rtx note;
3873 rtx next;
3874
3875 if (GET_CODE (label) != CODE_LABEL)
3876 abort ();
3877
3878 /* Ignore references to labels of containing functions. */
3879 if (LABEL_REF_NONLOCAL_P (x))
3880 break;
(gdb) print label
$1 = 0x402a9fa0
(gdb) pt
<error_mark 0x402a9fa0>
(gdb) The program is running. Exit anyway? (y or n) y
Script done on Sat Feb 26 14:46:10 2000
----------------------------------------------------------------------
The source code (cpplib.i) is attached.
--
Chip Salzenberg - a.k.a. - <chip@valinux.com>
"I wanted to play hopscotch with the impenetrable mystery of existence,
but he stepped in a wormhole and had to go in early." // MST3K
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpplib.i.gz
Type: application/x-gzip
Size: 36418 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20000226/aec255dd/attachment.bin>
More information about the Gcc-bugs
mailing list