This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ada/16442] Crossbuilding the Ada RTS fails


------- Additional Comments From willy at debian dot org  2004-07-09 11:27 -------
I compiled a native 3.4.2 (CVS as of a day or two ago) for the host compiler.
This works even less well, dying during the 'make' portion of compiling the
cross-compiler:

mkdir -p ada/bldtools
cp -p /home/willy/gcc/gcc-3.4/gcc/ada/sinfo.ads
/home/willy/gcc/gcc-3.4/gcc/ada/nmake.adt
/home/willy/gcc/gcc-3.4/gcc/ada/xnmake.adb ada/bldtools
(cd ada/bldtools; gnatmake -q xnmake ; ./xnmake -b ../nmake.adb )
make[1]: *** [ada/nmake.adb] Error 139

$ gnatmake xnmake 
gnatmake: "xnmake" up to date.
$ ./xnmake -s ../nmake.ads 
Segmentation fault
$ gdb ./xnmake
GNU gdb 6.1-debian
(gdb) set args -s ../nmake.ads 
(gdb) run
Starting program: /home/willy/gcc/build-3.4/gcc/ada/bldtools/xnmake -s ../nmake.ads

Program received signal SIGSEGV, Segmentation fault.
gnat.spitbol.patterns.xmatch (subject=Unhandled dwarf expression opcode 0x93
) at g-spipat.adb:4055
4055                   if Subject (Cursor + 1) = Node.Char then
Current language:  auto; currently minimal
(gdb) bt
#0  gnat.spitbol.patterns.xmatch (subject=Unhandled dwarf expression opcode 0x93
) at g-spipat.adb:4055
#1  0x40000000000576c0 in gnat.spitbol.patterns.match (
    subject=@0x60000fffffff8c90, pat=@0x60000fffffff9490, replace=Unhandled
dwarf expression opcode 0x93
)
    at g-spipat.adb:2875
#2  0x400000000001c6b0 in _ada_xnmake ()
#3  0x4000000000002c10 in main ()

I double-checked that the gnatlink/gnatmake/gnatbind/gcc in my path are coming
from the new compiler:

gcc -v -c xnmake.adb 
Reading specs from /home/willy/ia64/lib/gcc/ia64-unknown-linux-gnu/3.4.2/specs
Configured with: ../gcc-3.4/configure --prefix=/home/willy/ia64
Thread model: posix
gcc version 3.4.2 20040706 (prerelease)
 /home/willy/ia64/libexec/gcc/ia64-unknown-linux-gnu/3.4.2/gnat1 -quiet
-dumpbase xnmake.adb xnmake.adb -o /var/tmp/cclDXTRC.s
 as -x -o xnmake.o /var/tmp/cclDXTRC.s

which gnatbind
/home/willy/ia64/bin/gnatbind


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16442


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]