Hi,
I'm the fedora packager, I'm using the following patch:
--- vhdl/grt/grt.adc.noruntime 2005-11-08 21:01:08.000000000 +0100
+++ vhdl/grt/grt.adc 2008-01-06 17:17:53.000000000 +0100
@@ -27,11 +27,11 @@
--
-- This files is *not* names gnat.adc, in order to ease the possibility of
-- not using it.
-pragma Restrictions (No_Exception_Handlers);
-pragma restrictions (No_Exceptions);
+-- pragma Restrictions (No_Exception_Handlers);
+-- pragma restrictions (No_Exceptions);
pragma Restrictions (No_Secondary_Stack);
--pragma Restrictions (No_Elaboration_Code);
pragma Restrictions (No_Io);
pragma Restrictions (Max_Tasks => 0);
pragma Restrictions (No_Implicit_Heap_Allocations);
-pragma No_Run_Time;
+-- pragma No_Run_Time;
It works for some simple testbenches, but fails for more complex ones, an
example backtrace:
#0 0x00110416 in __kernel_vsyscall ()
#1 0x009a2660 in raise (sig=<value optimized out>)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2 0x009a4028 in abort () at abort.c:88
#3 0x080d04fd in __gnat_last_chance_handler ()
#4 0x00215e09 in ada.exceptions.exception_traces.unhandled_exception_terminate
()
at a-exextr.adb:175
#5 0x00215bad in ada.exceptions.exception_propagation.propagate_exception
(e=0x400200,
from_signal_handler=false) at a-exexpr.adb:612
#6 0x00216962 in <__gnat_raise_nodefer_with_msg> (e=0x400200) at
a-except.adb:831
#7 0x00216dbc in ada.exceptions.raise_with_location_and_msg (e=0x400200,
f=(system.address) 0x8105f95, l=66, m=(system.address) 0x37c8dc) at
a-except.adb:995
#8 0x00216924 in <__gnat_raise_constraint_error_msg> (file=(system.address)
0x8105f95,
line=66, msg=(system.address) 0x37c8dc) at a-except.adb:795
#9 0x00217085 in <__gnat_rcheck_12> (file=(system.address) 0x8105f95, line=66)
at a-except.adb:1083
#10 0x080c0035 in grt__lib__do_report ()
#11 0x080c0081 in __ghdl_assert_failed ()
#12 0x080bd9c7 in ax5031__analog_ppf__ARCH__analogmodel__vga1setting__PROC (
INSTANCE=0x9bfeeb0) at ../vhdl/analogppf.vhd:60
#13 0x080ca9c8 in grt__processes__run_processes ()
#14 0x080cb005 in grt__processes__initialization_phase ()
#15 0x080d0173 in __ghdl_run_through_longjump ()
#16 0x080ca3d1 in grt__processes__simulation ()
#17 0x080d5698 in grt__main__run ()
#18 0x080d3cdd in ghdl_main ()
#19 0x080d0542 in main ()
Tom
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss