This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
bootstrap error on m68k-linux with CVS HEAD 20020127
- From: Matthias Klose <doko at cs dot tu-berlin dot de>
- To: gcc-bugs at gcc dot gnu dot org
- Cc: Roman Zippel <zippel at linux-m68k dot org>, gcc at gnu dot org
- Date: Mon, 28 Jan 2002 13:02:41 +0100
- Subject: bootstrap error on m68k-linux with CVS HEAD 20020127
stage1/xgcc -Bstage1/ -B/usr/lib/gcc-snapshot/m68k-linux/bin/ -DIN_GCC -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I../../src/gcc -I../../src/gcc/. -I../../src/gcc/config -I../../src/gcc/../include -c ../../src/gcc/c-parse.c -o c-parse.o
/usr/share/bison/bison.simple:237: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
adding -save-temps lets the compilation succeed.
$ gdb stage1/cc1
GNU gdb 5.1
Copyright 2001 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 "m68k-linux"...
(gdb) set args -lang-c -v -I. -I. -I../../src/gcc -I../../src/gcc/. -I../../src/gcc/config -I../../src/gcc/../include -iprefix stage1/../lib/gcc-lib/m68k-linux/3.1/ -isystem include -isystem stage1/include -isystem /usr/lib/gcc-snapshot/m68k-linux/bin/include -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dmc68000 -Dmc68020 -Dlinux -D__ELF__ -D__unix__ -D__mc68000__ -D__mc68020__ -D__linux__ -D__unix -D__mc68000 -D__mc68020 -D__linux -Asystem=unix -Asystem=posix -Acpu=m68k -Amachine=m68k -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -Wno-long-long -pedantic -D__HAVE_68881__ -DIN_GCC -DHAVE_CONFIG_H ../../src/gcc/c-parse.c -quiet -dumpbase c-parse.c -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -Wno-long-long -pedantic -version -o c-parse.s
(gdb) run
Starting program: /usr/src/packages/snap/gcc-snapshot-20020127/build/gcc/stage1/cc1 -lang-c -v -I. -I. -I../../src/gcc -I../../src/gcc/. -I../../src/gcc/config -I../../src/gcc/../include -iprefix stage1/../lib/gcc-lib/m68k-linux/3.1/ -isystem include -isystem stage1/include -isystem /usr/lib/gcc-snapshot/m68k-linux/bin/include -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dmc68000 -Dmc68020 -Dlinux -D__ELF__ -D__unix__ -D__mc68000__ -D__mc68020__ -D__linux__ -D__unix -D__mc68000 -D__mc68020 -D__linux -Asystem=unix -Asystem=posix -Acpu=m68k -Amachine=m68k -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -Wno-long-long -pedantic -D__HAVE_68881__ -DIN_GCC -DHAVE_CONFIG_H ../../src/gcc/c-parse.c -quiet -dumpbase c-parse.c -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -Wno-long-long -pedantic -version -o c-parse.s
ignoring nonexistent directory "stage1/include"
ignoring nonexistent directory "/usr/lib/gcc-snapshot/m68k-linux/bin/include"
GNU CPP version 3.1 20020127 (experimental) (cpplib) (68k GNU/Linux with ELF)
GNU C version 3.1 20020127 (experimental) (m68k-linux)
compiled by GNU C version 2.95.4 20020102 (Debian prerelease).
ignoring nonexistent directory "lib/gcc-lib/m68k-linux/3.1/include"
ignoring nonexistent directory "lib/gcc-lib/m68k-linux/3.1/../../../../m68k-linux/include"
ignoring nonexistent directory "/usr/lib/gcc-snapshot/include"
ignoring nonexistent directory "/usr/lib/gcc-snapshot/lib/gcc-lib/m68k-linux/3.1/include"
ignoring nonexistent directory "/usr/lib/gcc-snapshot/lib/gcc-lib/m68k-linux/3.1/../../../../m68k-linux/include"
ignoring duplicate directory "."
ignoring duplicate directory "../../src/gcc"
#include "..." search starts here:
#include <...> search starts here:
.
../../src/gcc
../../src/gcc/config
../../src/include
include
/usr/local/include
/usr/include
End of search list.
Program received signal SIGSEGV, Segmentation fault.
0x8000a53e in pushdecl (x=0xc012fc78) at ../../src/gcc/c-decl.c:2311
2311 if (decl && ! comptypes (TREE_TYPE (x), TREE_TYPE (decl))
(gdb) p x
$1 = 0xc012fc78
(gdb) p decl
$2 = 0xc01b
(gdb) ptc x
Cannot access memory at address 0xc01b
(gdb) p x
$3 = 0xc012fc78
(gdb) ptc x
VAR_DECL
(gdb) ptn
Cannot access memory at address 0x2e
(gdb) p x
$4 = 0xc012fc78
(gdb) ptc x
VAR_DECL
(gdb) p x
$5 = 0xc012fc78
(gdb) ptn x
Cannot access memory at address 0x2e
(gdb) pt x
<var_decl 0xc012fc78 yydebug
type <integer_type 0xc012c31e int SI
size <integer_cst 0xc0128ae0 constant 32>
unit size <integer_cst 0xc0128b80 constant 4>
align 16 symtab 0 alias set 3 precision 32 min <integer_cst 0xc0128b40 -2147483648> max <integer_cst 0xc0128b60 2147483647>
pointer_to_this <pointer_type 0xc0131558>>
public static common SI file /usr/share/bison/bison.simple line 237 size <integer_cst 0xc0128ae0 32> unit size <integer_cst 0xc0128b80 4>
align 16>
(gdb) p decl
$6 = 0xc01b
(gdb) pt decl
Program received signal SIGSEGV, Segmentation fault.
0x800bed30 in print_node (file=0xc0101abc, prefix=0x80191cf4 "", node=0xc01b,
indent=0) at ../../src/gcc/print-tree.c:190
190 class = TREE_CODE_CLASS (TREE_CODE (node));
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on"
Evaluation of the expression containing the function (debug_tree) will be abandoned.
(gdb) p *decl
Cannot access memory at address 0xc01b
(gdb)