Hi folks, I'm the Debian maintainer for GHDL, and I'm trying to build with gnat-4.3. For reference, it works fine with gnat-4.2, but gnat-4.3 is giving me a lot of trouble, i.e.:
... gcc-4.3 -c -I./ -I../../../gcc/vhdl/grt -gnatec../../../gcc/vhdl/grt/grt.adc -O -g -I- /home/wjl/work/apps/ghdl/trunk/ghdl-0.26/vhdl/grt/grt-images.adb grt-images.ads:23:29: warning: "Ghdl_Image_B2.Val" is an 8-bit Ada Boolean, use char in C gcc-4.3 -c -I./ -I../../../gcc/vhdl/grt -gnatec../../../gcc/vhdl/grt/grt.adc -O -g -I- /home/wjl/work/apps/ghdl/trunk/ghdl-0.26/vhdl/grt/grt-lib.adb gcc-4.3 -c -I./ -I../../../gcc/vhdl/grt -gnatec../../../gcc/vhdl/grt/grt.adc -O -g -I- /home/wjl/work/apps/ghdl/trunk/ghdl-0.26/vhdl/grt/grt-modules.adb grt-vcd.ads:24:09: tagged types not allowed in no run time mode gnatmake: "/home/wjl/work/apps/ghdl/trunk/ghdl-0.26/vhdl/grt/grt-modules.adb" compilation error make[4]: *** [run-bind.adb] Error 4 I can work around this (sort of) with this patch, which turns off the pragma's in grt.adc (which includes "no run time" mode) and then adding -lgnat-4.3 to grt.lst, which is a bit undesirable, but would be okay if it worked: diff -ur ghdl-0.26.orig/vhdl/Makefile.in ghdl-0.26/vhdl/Makefile.in --- ghdl-0.26.orig/vhdl/Makefile.in 2007-04-08 10:46:39.000000000 -0600 +++ ghdl-0.26/vhdl/Makefile.in 2008-04-30 16:15:16.000000000 -0600 @@ -493,7 +493,7 @@ GRT_ARCH?=None # Configuration pragmas. -GRT_PRAGMA_FLAG=-gnatec$(GRTSRCDIR)/grt.adc +GRT_PRAGMA_FLAG= # Rule to compile an Ada file. GRT_ADACOMPILE=$(ADAC) -c $(GRT_FLAGS) $(GRT_PRAGMA_FLAG) -o $@ $< Unfortunately, this does in fact build, but then trying to use the resulting tool gets me stuff like this when I try to use it: $ ghdl -m tb_blowfish analyze BlowfishPiROM.vhdl analyze BlowfishPArray.vhdl analyze BlowfishSBox.vhdl analyze BlowfishRound.vhdl analyze BlowfishCipher.vhdl analyze Blowfish.vhdl analyze tb_Blowfish.vhdl elaborate tb_blowfish $ ./tb_blowfish /usr/lib/ghdl/lib/gcc/i486-linux-gnu/4.1.2/vhdl/src/ieee/numeric_std-body.v93:2098:7:@20ns: (assertion warning): ./tb_blowfish:error: invalid memory access (dangling accesses or stack size too small) ./tb_blowfish:error: simulation failed $ Any ideas/thoughts? Shortly, gnat-4.2 is being removed from Debian, and if I can't resolve this, the GHDL package will probably have to do something somewhat obnoxious like bundle it's own copy of gnat. -- Wesley J. Landaker <[EMAIL PROTECTED]> <xmpp:[EMAIL PROTECTED]> OpenPGP FP: 4135 2A3B 4726 ACC5 9094 0097 F0A9 8A4C 4CD6 E3D2
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Ghdl-discuss mailing list [email protected] https://mail.gna.org/listinfo/ghdl-discuss
