Boris Samorodov - 2006-05-06

Hi!

I'm trying to compile gcc/ada at FreeBSD. Currently FreeBSD doesn't have any gcc/ada-enabled ports. Hence I try to use gpl/ada to bootstrap. I managed to reach stage-last compile, but then it fails.

So far there were two problems:

  1. Ada did not recognized by configure. I changed the script to use "gnatgcc" to compile conftest.adb.

  2. Makefile at gcc/ada uses $(CC) variables as commands to compile both C and Ada sources. I changed those variables dealing with .ads, .adb to "gnatgcc".

That helped me to reach stage-last when compiling gcc/ada. But then the process stop:

...
echo stage3_build > stage_last
...
gmake[8]: Entering directory /home/bsam/work/ada/port/work/build/gcc/ada/rts' ... gnatgcc -c -g -O2 -fPIC -pthread -W -Wall -gnatpg a-flteio.ads -o a-flteio.o a-flteio.ads:20:01: instantiation error at a-tiflio.adb:59 a-flteio.ads:20:01: run-time configuration error gmake[8]: *** [a-flteio.o] Ошибка 1 gmake[8]: Leaving directory/home/bsam/work/ada/port/work/build/gcc/ada/rts'
gmake[7]: [gnatlib] Ошибка 2
gmake[7]: Leaving directory /home/bsam/work/ada/port/work/build/gcc/ada' gmake[6]: *** [gnatlib-shared-default] Ошибка 2 gmake[6]: Leaving directory/home/bsam/work/ada/port/work/build/gcc/ada'
gmake[5]:
[gnatlib-shared-dual] Ошибка 2
gmake[5]: Leaving directory /home/bsam/work/ada/port/work/build/gcc/ada' gmake[4]: *** [gnatlib-shared] Ошибка 2 gmake[4]: Leaving directory/home/bsam/work/ada/port/work/build/gcc/ada'
gmake[3]: [gnatlib-shared] Ошибка 2
gmake[3]: Leaving directory /home/bsam/work/ada/port/work/build/i386-portbld-freebsd6.1/libada' gmake[2]: *** [all-target-libada] Ошибка 2 gmake[2]: Leaving directory/home/bsam/work/ada/port/work/build'
gmake[1]:
[all] Ошибка 2
gmake[1]: Leaving directory `/home/bsam/work/ada/port/work/build'
gmake: [bootstrap-lean] Ошибка 2
Error code 2
-----

Well, I understand that I did not do the right thing, i.e. hard-coding "gnatgcc". It should be used imho only at stage-1. Then the process should use it's own binaries.

Can somebody help me to do the right thing and get a working gcc/ada?

FreeBSD 6.1-RC, gpl/ada-2005.

--
bsam