CVS Gnat can't x-compile s-auxdec.adb to hppa
Matthew Wilcox
willy@debian.org
Sun Apr 21 21:41:00 GMT 2002
I'm trying to cross-compile Gnat from an i386-debian-linux box to
hppa-linux in order to bootstrap Gnat on hppa-linux. Software involved:
native gcc version 2.95.4 (Debian version 1:2.95.4-7)
native gnat version 3.14p (20010503) (Debian version 3.14p-3)
cross-compiling gcc version 3.0.3
grabbed CVS head as of approx 11:30am MST today. Configured it thus:
../gcc/configure --target=hppa-linux --prefix=/opt/palinux --disable-shared \
--enable-languages=ada
(the cross toolchain is already installed in /opt/palinux, so it picks
up the appropriate binutils from there).
`make' is uneventful. Then,
cd gcc; make gnatlib_and_tools
(...)
../../xgcc -B../../ -c -g -O2 -g -O2 -W -Wall -gnatpg -I. -I/home/willy/gcc/gcc/gcc/ada s-auxdec.adb
+===========================GNAT BUG DETECTED==============================+
| 3.1 (20020212) (hppa-unknown-linux-gnu) GCC error: |
| internal error: Illegal instruction |
| No source file position information available |
| Please submit bug report by email to gcc-bugs@gcc.gnu.org. |
| Use a subject line meaningful to you and us to track the bug. |
| Include the entire contents of this bug box in the report. |
| Include the exact gcc or gnatmake command that you entered. |
| Also include sources listed below in gnatchop format |
| (concatenated together with no headers between files). |
| (use plain ASCII or MIME attachment). |
| See gnatinfo.txt for full info on procedure for submitting bugs. |
+==========================================================================+
Please include these source files with error report
xgcc: Internal error: Segmentation fault (program gnat1)
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
Running gnat1 under gdb gives me:
$ gdb ../../gnat1
(gdb) set args -I. -I/home/willy/gcc/gcc/gcc/ada -quiet -dumpbase s-auxdec.adb -g -g -gnatpg -O2 -O2 -W -Wall s-auxdec.adb -o /tmp/cc1ZRhN7.s
Program received signal SIGSEGV, Segmentation fault.
0xbffff37c in ?? ()
(gdb) bt
#0 0xbffff37c in ?? ()
#1 0x08149816 in sem__analyze (n=4372) at ../../../gcc/gcc/ada/sem.adb:400
#2 0x08173839 in sem_ch3__analyze_declarations (l=-99999669)
at ../../../gcc/gcc/ada/sem_ch3.adb:966
#3 0x0819578b in sem_ch7__analyze_package_specification (n=3983)
at ../../../gcc/gcc/ada/sem_ch7.adb:680
#4 0x081497f6 in sem__analyze (n=3983) at ../../../gcc/gcc/ada/sem.adb:394
#5 0x08195600 in sem_ch7__analyze_package_declaration (n=6831)
at ../../../gcc/gcc/ada/sem_ch7.adb:605
#6 0x081497c6 in sem__analyze (n=6831) at ../../../gcc/gcc/ada/sem.adb:385
#7 0x0815ab5f in sem_ch10__analyze_compilation_unit (n=3972)
at ../../../gcc/gcc/ada/sem_ch10.adb:417
#8 0x081492b6 in sem__analyze (n=3972) at ../../../gcc/gcc/ada/sem.adb:139
#9 0x0814a5ff in sem__semantics__do_analyze ()
at ../../../gcc/gcc/ada/sem.adb:1092
#10 0x0814a776 in sem__semantics (comp_unit=3972)
at ../../../gcc/gcc/ada/sem.adb:1137
#11 0x0815a864 in sem_ch10__analyze_compilation_unit (n=1363)
at ../../../gcc/gcc/ada/sem_ch10.adb:268
#12 0x081492b6 in sem__analyze (n=1363) at ../../../gcc/gcc/ada/sem.adb:139
#13 0x0814a5ff in sem__semantics__do_analyze ()
at ../../../gcc/gcc/ada/sem.adb:1092
#14 0x0814a776 in sem__semantics (comp_unit=1363)
at ../../../gcc/gcc/ada/sem.adb:1137
#15 0x08107dad in _ada_frontend () at ../../../gcc/gcc/ada/frontend.adb:264
#16 0x081fafeb in _ada_gnat1drv () at ../../../gcc/gcc/ada/gnat1drv.adb:214
#17 0x0805b59f in gnat_parse_file () at ../../../gcc/gcc/ada/misc.c:206
#18 0x082ee9dd in compile_file () at ../../gcc/gcc/toplev.c:2032
#19 0x082f3299 in do_compile () at ../../gcc/gcc/toplev.c:5099
#20 0x082f32f0 in toplev_main (argc=16, argv=0xbffffa44)
at ../../gcc/gcc/toplev.c:5131
#21 0x081fb8e4 in main (argc=16, argv=0xbffffa44) at ../../gcc/gcc/main.c:35
--
Revolutions do not require corporate support.
More information about the Gcc-bugs
mailing list