I could build ghdl 0.29 perfectly with the gcc core 4.3.4, using gcc-ada 4.3.4. It also works well using gcc-ada 4.4.3.
2010/3/4 Tristan Gingold <[email protected]>: >> Hi there! >> >> I am trying to compile ghdl 0.29 for centos 5.4. >> I downloaded gcc core 4.3.4. > > Hi, > > I usually compile ghdl with GNAT GPL (available from libre.adacore.com). It > is in > a much better shape than compilers provided by distributors. > > >> The ghdl vhdl directory is copied to gcc/vhdl >> configure is run with --no-bootstrap --enable-languages=vhdl >> >> I have this version of gnat: >> ================= >> GNAT 4.1.2 20080704 (Red Hat 4.1.2-46) >> Copyright 1996-2005, Free Software Foundation, Inc. >> ================= >> It compiles the ada test program in the ghdl distribution and the >> executable runs. >> >> I have the following issues: >> >> 1. As supplied ada files that include grt-signals.ads fail to compile >> with a >> message like this >> ================= >> gcc -c -I./ -I../../.././gcc/vhdl/grt >> -gnatec../../.././gcc/vhdl/grt/grt.adc -O -g -I- >> /root/gcc-4.3.4/gcc/vhdl/grt/grt-main.adb >> grt-signals.ads:23:01: "limited" "with" is an Ada 2005 extension >> grt-signals.ads:23:01: unit must be compiled with -gnat05 switch >> gnatmake: "/root/gcc-4.3.4/gcc/vhdl/grt/grt-main.adb" compilation >> error >> ================= >> I fixed this by adding -gnat05 to the ADAFLAGS in the Make*.in and >> reconfiguring. > > This is OK. > >> 2. Most of the grt files have lines like this in them: >> ================= >> with System.Storage_Elements; -- Work around GNAT bug. >> pragma Unreferenced (System.Storage_Elements); >> ================= >> This fails to compile with a message like: >> ================= >> gcc -c -I./ -I../../.././gcc/vhdl/grt >> -gnatec../../.././gcc/vhdl/grt/grt.adc -Wall -gnata -gnat05 -O -g -I- >> /root/gcc-4.3.4/gcc/vhdl/grt/grt-disp.adb >> grt-disp.adb:19:28: pragma "Unreferenced" argument must be in same >> declarative part >> gnatmake: "/root/gcc-4.3.4/gcc/vhdl/grt/grt-disp.adb" compilation >> error >> ================= >> I fixed this by commenting out the pragmas. > > This is unexpected but should be safe. > >> 3. The compilation of grt-processes.adb provokes this compiler bug: > > Much more difficult to work-around... > > >> Is it usually this hard to compile ghdl? > > Not with GNAT GPL! > >> How do I work round the compiler bug? > > If you don't want to use GNAT GPL, you can try to change compile flag (ie no > optimization), > or try to narrow down the bug. Not very easy. > > Tristan. > > _______________________________________________ > Ghdl-discuss mailing list > [email protected] > https://mail.gna.org/listinfo/ghdl-discuss > _______________________________________________ Ghdl-discuss mailing list [email protected] https://mail.gna.org/listinfo/ghdl-discuss
