[PATCH] Fix Ada bootstrap

Jakub Jelinek jakub@redhat.com
Mon Aug 29 22:02:00 GMT 2011


Hi!

One of the Ada changes committed today, most likely
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=178176
(couldn't find it posted on gcc-patches) broke x86_64-linux
bootstrap, with errors like:
ctrl_c.c:34:21: fatal error: tsystem.h: No such file or directory
compilation terminated.
make[9]: *** [ctrl_c.o] Error 1
exit.c:42:21: fatal error: tsystem.h: No such file or directory
compilation terminated.
make[9]: *** [exit.o] Error 1
make[9]: Leaving directory `/usr/src/gcc/obj790/gcc/ada/rts_32'
make[8]: *** [gnatlib] Error 2

The following patch fixed the bootstrap for me, will commit it
as obvious once also regtesting finishes.

2011-08-29  Jakub Jelinek  <jakub@redhat.com>

	* gcc-interface/Makefile.in (../stamp-gnatlib1-$(RTSDIR)): Copy
	tsystem.h into $(RTSDIR) instead of rts.

--- gcc/ada/gcc-interface/Makefile.in.jj	2011-08-29 19:26:21.000000000 +0200
+++ gcc/ada/gcc-interface/Makefile.in	2011-08-29 21:17:42.227402089 +0200
@@ -2467,7 +2467,7 @@ install-gnatlib: ../stamp-gnatlib-$(RTSD
 	          $(LN_S) $(fsrcpfx)ada/$(word 2,$(subst <, ,$(PAIR))) \
 	                $(RTSDIR)/$(word 1,$(subst <, ,$(PAIR)));)
 # Copy tsystem.h
-	$(CP) $(srcdir)/tsystem.h rts
+	$(CP) $(srcdir)/tsystem.h $(RTSDIR)
 # Copy generated target dependent sources
 	$(RM) $(RTSDIR)/s-oscons.ads
 	(cd $(RTSDIR); $(LN_S) ../s-oscons.ads s-oscons.ads)


	Jakub



More information about the Gcc-patches mailing list