Hi there!

I am  trying to compile ghdl 0.29 for centos 5.4.
I downloaded gcc core  4.3.4.
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.
=================
diff -r ../ghdl-0.29/vhdl/Makefile.in gcc/vhdl/Makefile.in
105c105
< GHDL_ADAFLAGS = -Wall -gnata
---
> GHDL_ADAFLAGS = -Wall -gnata -gnat05
448a449
> GRT_ADAFLAGS = -Wall -gnata -gnat05
diff -r ../ghdl-0.29/vhdl/Make-lang.in gcc/vhdl/Make-lang.in
43c43
< GHDL_ADAFLAGS= -Wall -gnata
---
> GHDL_ADAFLAGS= -Wall -gnata -gnat05
=================


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.

3. The compilation of grt-processes.adb provokes this compiler bug:
=================
+===========================GNAT BUG DETECTED==============================+
| 4.1.2 20080704 (Red Hat 4.1.2-46) (x86_64-redhat-linux-gnu)              |
| Assert_Failure atree.adb:812                                             |
| Error detected at grt-processes.adb:416:22                               |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.            |
| Use a subject line meaningful to you and us to track the bug.            |
| Include the entire contents of this bug box in the report.               |
| Include the exact gcc or gnatmake command that you entered.              |
| Also include sources listed below in gnatchop format                     |
| (concatenated together with no headers between files).                   |
+==========================================================================+

Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.

/root/gcc-4.3.4/gcc/vhdl/grt/grt-processes.adb
../../.././gcc/vhdl/grt/grt-processes.ads
../../.././gcc/vhdl/grt/grt.ads
../../.././gcc/vhdl/grt/grt-stack2.ads
../../.././gcc/vhdl/grt/grt-types.ads
../../.././gcc/vhdl/grt/grt-signals.ads
../../.././gcc/vhdl/grt/grt-table.ads
../../.././gcc/vhdl/grt/grt-rtis.ads
../../.././gcc/vhdl/grt/grt-stacks.ads
../../.././gcc/vhdl/grt/grt-rtis_addr.ads
../../.././gcc/vhdl/grt/grt-stdio.ads
../../.././gcc/vhdl/grt/grt-c.ads
../../.././gcc/vhdl/grt/grt-disp.ads
../../.././gcc/vhdl/grt/grt-astdio.ads
../../.././gcc/vhdl/grt/grt-errors.ads
../../.././gcc/vhdl/grt/grt-options.ads
../../.././gcc/vhdl/grt/grt-lib.ads
../../.././gcc/vhdl/grt/grt-rtis_utils.ads
../../.././gcc/vhdl/grt/grt-vstrings.ads
../../.././gcc/vhdl/grt/grt-hooks.ads
../../.././gcc/vhdl/grt/grt-disp_signals.ads
../../.././gcc/vhdl/grt/grt-stats.ads
../../.././gcc/vhdl/grt/grt-threads.ads
../../.././gcc/vhdl/grt/grt-unithread.ads
../../.././gcc/vhdl/grt/grt-hooks.adb
list may be incomplete
grt-processes.adb:385:10: construct not allowed in no run time mode
grt-processes.adb:389:13: construct not allowed in no run time mode
compilation abandoned
gnatmake: "/root/gcc-4.3.4/gcc/vhdl/grt/grt-processes.adb" compilation error
=================


Is it usually this hard to compile ghdl?

How do I work round the compiler bug?

Thanks for any suggestions.

Regards

M.



_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to