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

--- Comment #1 from Luke A. Guest <laguest at archeia dot com> 2011-03-16 
14:30:36 UTC ---
Further debugging gives:

$ gdb --args /home/laguest/opt/tamp/bin/gnatmake --RTS=`pwd`/boards/beagle
-XBoard=beagle -Pgnat.gpr -cargs -###
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/laguest/opt/tamp/bin/gnatmake...done.
(gdb) catch exception
Catchpoint 1: all Ada exceptions
(gdb) r
Starting program: /home/laguest/opt/tamp/bin/gnatmake
--RTS=/home/laguest/src/mine/tamp/rts/boards/beagle -XBoard=beagle -Pgnat.gpr
-cargs -\#\#\#

Catchpoint 1, SYSTEM.ASSERTIONS.ASSERT_FAILURE at 0x00000000004050dd in
<__gnat_raise_nodefer_with_msg> (e=0x859c60) at ../rts/a-except.adb:858
858          Debug_Raise_Exception (E => SSL.Exception_Data_Ptr (E));
(gdb) bt
#0  <__gnat_debug_raise_exception> (e=0x859c60) at s-except.adb:43
#1  0x00000000004050dd in <__gnat_raise_nodefer_with_msg> (e=0x859c60) at
../rts/a-except.adb:858
#2  0x0000000000405148 in <__gnat_raise_exception> (e=0x859c60, message=Asked
for position 0 of stack, stack only has 0 elements on it.
) at ../rts/a-except.adb:898
#3  0x00000000005a613a in system.assertions.raise_assert_failure (msg=Asked for
position 0 of stack, stack only has 0 elements on it.
) at s-assert.adb:46
#4  0x00000000004c2f7c in namet.get_name_string (id=300000000) at
/home/laguest/src/mine/tamp/thirdparty/src/gcc-4_6-branch/gcc/ada/namet.adb:655
#5  0x00000000004c0e12 in mlib.utl.lib_directory () at
/home/laguest/src/mine/tamp/thirdparty/src/gcc-4_6-branch/gcc/ada/mlib-utl.adb:636
#6  0x00000000004ae1a6 in mlib.prj.build_library (in_tree=0xc07bb0,
gnatbind=..., gnatbind_path=..., gcc=..., gcc_path=..., link=true)
    at
/home/laguest/src/mine/tamp/thirdparty/src/gcc-4_6-branch/gcc/ada/mlib-prj.adb:1545
#7  0x0000000000484e7f in make.gnatmake () at
/home/laguest/src/mine/tamp/thirdparty/src/gcc-4_6-branch/gcc/ada/make.adb:5651
#8  0x000000000045dea5 in gnatmake () at
/home/laguest/src/mine/tamp/thirdparty/src/gcc-4_6-branch/gcc/ada/gnatmake.adb:38
(gdb)

Reply via email to