Continuing Problems trying to Compile Ada

John David Anglin dave@hiauly1.hia.nrc.ca
Thu Nov 15 00:48:00 GMT 2001


> RH PowerTools CD, viz
>         gnat-3.12p-6.i386.rpm
> 	gnat-devel-3.12p-6.i386.rpm
> 
> gnatgcc -c -g    -W -Wall -gnatpg -gnata -I- -I. -I../../../GNU/GCC/gcc/gcc/ada ../../../GNU/GCC/gcc/gcc/ada/ada.ads
> fatal error: run-time library configuration error
> cannot locate "Zero_Cost_Exceptions" in file "system.ads" (entity not in package)

You need to "update" or get binaries for gnat-3.13p to build 3.1.  The
update is not without its own problems.  I found that the C compiler was
seriously broken on hppa1.1-hp-hpux and couldn't build the current mainline.
Compilation errors would occur building libgcc in stage1.  I was loath to
try to fix 2.8.1.  So, I did the gcc-2.8.1 update at '-O0'.  Then, for
stage1 of the gcc-3.1 bootstrap, I compiled all C files with gcc-3.0.2
and the ada files with gnat-3.13p.

I also did this bootstrap at -O0 with this patch:

<http://gcc.gnu.org/ml/gcc/2001-11/msg01083.html>.

I wasn't having much luck at -O2 and I suspect the loop optimization
bug reported by Cory Minyard also affects the PA.

Finally, there is a problem doing "make gnatlib_and_tools".  When ar tries
to build libgnat.a, the following error occurs:

ar: rts/a-charac.o: No such file or directory

The file is actually in the ada directory.  My hack was to install
links to the files in the ada directory:

#!/bin/sh
DIR=`pwd`
for i in $*; do
  if [ ! -f rts/$i -a ! -h rts/$i ]; then
    ln $DIR/$i rts/$i;
  fi
done

I really think we need to get some working 3.1 binaries with gnat installed at
gcc.gnu.org.  It's just too difficult to start at 3.12p.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)



More information about the Gcc-bugs mailing list