This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Bootstrapping Ada with gnatgcc


Hello together,

To bootstrap the latest Ada compiler from GCC 3.1 CVS branch, I have 
installed gnat-3.13p-i686-pc-linux-gnu-bin, renaming the "gcc" executable 
from there to "gnatgcc" because I don't want to bootstrap the rest of the 
compiler with this 2.8.1-based compiler.

I passed ADAC=gnatgcc to configure and make, which worked quite fine, until 
the bootstrap tried to call gnatmake - which seems to try to call "gcc", 
unless otherwise specified by --GCC. The following patch fixed my build 
problems. Is anything wrong with this? Can it be included, or do I miss some 
point there?

Index: gcc/ada/Makefile.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/ada/Makefile.in,v
retrieving revision 1.4
diff -u -r1.4 Makefile.in
--- Makefile.in 2001/10/09 10:16:08     1.4
+++ Makefile.in 2001/10/11 17:04:39
@@ -114,6 +114,7 @@
 MAKEINFO = makeinfo
 TEXI2DVI = texi2dvi
 GNATBIND = $(STAGE_PREFIX)gnatbind -C
+GNATMAKE = gnatmake --GCC="$(ADAC)" --GNATLINK="gnatlink --GCC=$(ADAC)"
 ADA_CFLAGS =
 ADAFLAGS = -W -Wall -gnatpg -gnata
 SOME_ADAFLAGS =-gnata
@@ -2420,27 +2421,27 @@
 treeprs.ads : treeprs.adt sinfo.ads xtreeprs.adb
        -$(MKDIR) bldtools
        $(CP) $^ bldtools
-       (cd bldtools; gnatmake -q xtreeprs ; ./xtreeprs ../treeprs.ads )
+       (cd bldtools; $(GNATMAKE) -q xtreeprs ; ./xtreeprs ../treeprs.ads )

 einfo.h : einfo.ads einfo.adb xeinfo.adb
        -$(MKDIR) bldtools
        $(CP) $^ bldtools
-       (cd bldtools; gnatmake -q xeinfo ; ./xeinfo ../einfo.h )
+       (cd bldtools; $(GNATMAKE) -q xeinfo ; ./xeinfo ../einfo.h )
 
 sinfo.h : sinfo.ads xsinfo.adb
        -$(MKDIR) bldtools
        $(CP) $^ bldtools
-       (cd bldtools; gnatmake -q xsinfo ; ./xsinfo ../sinfo.h )
+       (cd bldtools; $(GNATMAKE) -q xsinfo ; ./xsinfo ../sinfo.h )
 
 nmake.adb : sinfo.ads nmake.adt xnmake.adb
        -$(MKDIR) bldtools
        $(CP) $^ bldtools
-       (cd bldtools; gnatmake -q xnmake ; ./xnmake -b ../nmake.adb )
+       (cd bldtools; $(GNATMAKE) -q xnmake ; ./xnmake -b ../nmake.adb )
 
 nmake.ads :  sinfo.ads nmake.adt xnmake.adb
        -$(MKDIR) bldtools
        $(CP) $^ bldtools
-       (cd bldtools; gnatmake -q xnmake ; ./xnmake -s ../nmake.ads )
+       (cd bldtools; $(GNATMAKE) -q xnmake ; ./xnmake -s ../nmake.ads )
 
 ADA_INCLUDE_DIR = $(libsubdir)/adainclude
 ADA_RTL_OBJ_DIR = $(libsubdir)/adalib


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]