/test/gnu/gcc/objdir/./prev-gcc/xgcc -B/test/gnu/gcc/objdir/./prev-gcc/ -B/opt/g nu/gcc/gcc-4.3.0/hppa2.0w-hp-hpux11.11/bin/ -c -g -O2 -mdisable-indexing -gn atpg -gnata -nostdinc -I- -I. -Iada -I../../gcc/gcc/ada ../../gcc/gcc/ada/ada.ad s -o ada/ada.o xgcc: Internal error: Segmentation fault (program gnat1) Please submit a full bug report. See <http://gcc.gnu.org/bugs.html> for instructions. make[3]: *** [ada/ada.o] Error 1
This occurs in stage2 with -bash-3.2$ ./xgcc -B./ -v Reading specs from ./specs Target: hppa2.0w-hp-hpux11.11 Configured with: ../gcc/configure --with-gnu-as --with-as=/opt/gnu/bin/as --enable-shared --disable-nls --with-local-prefix=/opt/gnu --prefix=/opt/gnu/gcc/gcc-4.3.0 --enable-debug=no --enable-threads=posix --with-mpfr=/opt/gnu/gcc/gcc-4.3.0 --with-gmp=/opt/gnu/gcc/gcc-4.3.0 --disable-libmudflap --enable-languages=c,c++,objc,obj-c++,fortran,java,ada Thread model: posix gcc version 4.3.0 20071114 (experimental) [trunk revision 130173] (GCC) # gdb /test/gnu/gcc/objdir/./prev-gcc/gnat1 GNU gdb 6.6 Copyright (C) 2006 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 "hppa2.0w-hp-hpux11.11"... Breakpoint 1 at 0x571448: file ../../gcc/gcc/diagnostic.c, line 660. Breakpoint 2 at 0x5712b4: file ../../gcc/gcc/diagnostic.c, line 604. Breakpoint 3 at 0xf2fa54: file ../../gcc/libiberty/obstack.c, line 402. Breakpoint 4 at 0xf2dac0: file ../../gcc/libiberty/hashtab.c, line 446. (gdb) set args -I- -I. -Iada -I../../gcc/gcc/ada -quiet -nostdinc -dumpbase ada.ads -O2 -g -mdisable-indexing -gnatpg -gnata -gnatO ada/ada.o ../../gcc/gcc/ada/ada.ads -o xxx.s (gdb) r Starting program: /test/gnu/gcc/objdir/prev-gcc/gnat1 -I- -I. -Iada -I../../gcc/gcc/ada -quiet -nostdinc -dumpbase ada.ads -O2 -g -mdisable-indexing -gnatpg -gnata -gnatO ada/ada.o ../../gcc/gcc/ada/ada.ads -o xxx.s warning: The shared libraries were not privately mapped; setting a breakpoint in a shared library will not work until you rerun the program. Breakpoint 3 at 0xc002b618 Breakpoint 3 at 0x7af827fc Breakpoint 4 at 0x7afe6688 Program received signal SIGSEGV, Segmentation fault. 0x00ef2ee0 in linemap_lookup (set=0x7aedc000, line=2) at ../../gcc/libcpp/line-map.c:282 282 if (line >= cached->start_location) (gdb) bt #0 0x00ef2ee0 in linemap_lookup (set=0x7aedc000, line=2) at ../../gcc/libcpp/line-map.c:282 #1 0x0088f9ac in expand_location (loc=2) at ../../gcc/gcc/tree.c:3406 #2 0x0055d008 in dbxout_finish_complex_stabs (sym=0x7adf60d0, code=N_LSYM, addr=0x0, label=0x0, number=0) at ../../gcc/gcc/dbxout.c:848 Backtrace stopped: frame did not save the PC (gdb) p cached $1 = (const struct line_map *) 0x0 -- Summary: xgcc: Internal error: Segmentation fault (program gnat1) Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: preprocessor AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: danglin at gcc dot gnu dot org GCC build triplet: hppa2.0w-hp-hpux11.11 GCC host triplet: hppa2.0w-hp-hpux11.11 GCC target triplet: hppa2.0w-hp-hpux11.11 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34098