comp.lang.ada
 help / color / mirror / Atom feed
From: "Björn Persson" <bjorn@xn--rombobjrn-67a.se>
Subject: Re: Gnat says libraries are not supported.
Date: Sat, 25 Jul 2009 20:23:13 +0200
Date: 2009-07-25T20:23:13+02:00	[thread overview]
Message-ID: <7d10snF2a3u87U1@mid.individual.net> (raw)
In-Reply-To: 26c8cdef-6a39-4953-98a9-be2732774304@y17g2000yqn.googlegroups.com

Ludovic Brenta wrote:

> By adjusting the TOOLS_TARGET_PAIRS in src/gcc/ada/gcc-interface/
> Makefile.in where mlib-tgt{,-specific} appears.  In Debian, this is
> actually part of a much larger and invasive patch that builds
> libgnatprj, the project manager library used by all GNAT tools and by
> GPS, so the TOOLS_TARGET_PAIRS are now in src/libgnatprj/Makefile.in.
> (Note that the value of TOOLS_TARGET_PAIRS depends on the target
> triplet).
> 
> Since the pristine version of src/gcc/ada/gcc-interface/Makefile.in
> seems fine, I think the problem on Fedora 11 was triggered by a patch
> that was not adjusted for the change from mlib-tgt to mlib-tgt-
> specific.

I've finally found the error. It's in gnattools/Makefile.in. It makes 
symbolic links pointing to the wrong directory. This is the patch I applied:

--- gnattools/Makefile.in~	2009-04-14 16:25:44.000000000 +0200
+++ gnattools/Makefile.in	2009-07-25 04:31:38.000000000 +0200
@@ -164,7 +164,7 @@
 	-(cd $(GCC_DIR)/ada/tools; $(LN_S) ../sdefault.adb .)
 	-$(foreach PAIR,$(TOOLS_TARGET_PAIRS), \
 	          rm -f $(GCC_DIR)/ada/tools/$(word 1,$(subst <, ,$(PAIR)));\
-	          $(LN_S) $(fsrcdir)/$(word 2,$(subst <, ,$(PAIR))) \
+	          $(LN_S) $(fsrcdir)/ada/$(word 2,$(subst <, ,$(PAIR))) \
 	                $(GCC_DIR)/ada/tools/$(word 1,$(subst <, ,$(PAIR)));)
 	touch $(GCC_DIR)/stamp-tools
 

It wasn't caused by a Fedora patch. The error is present in the GCC 4.4.0 
release, but it's been fixed in 4.4.1.

I can't see that TOOLS_TARGET_PAIRS in gcc/ada/gcc-interface/Makefile.in is 
used for anything. The value of TOOLS_TARGET_PAIRS in gnattools/Makefile.in 
most likely comes from gnattools/configure. But the GCC build system is deep 
magic to me so I may have missed something.

-- 
Bj�rn Persson
PGP key A88682FD




  reply	other threads:[~2009-07-25 18:23 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-20 17:56 Gnat says libraries are not supported Björn Persson
2009-06-20 21:41 ` Ludovic Brenta
2009-06-21 14:20   ` Björn Persson
2009-06-22  7:35     ` Ludovic Brenta
2009-06-22  9:25       ` Tomek Wałkuski
2009-06-29  9:24   ` Martin Krischik
2009-06-29 10:15     ` Ludovic Brenta
2009-07-25 18:23       ` Björn Persson [this message]
2009-07-25 19:22         ` Tomek Wałkuski
2009-07-26 12:35           ` Björn Persson
2009-08-21  6:59             ` Tomek Wałkuski
2009-08-21  9:35               ` Björn Persson
2009-07-26 10:13         ` Ludovic Brenta
2009-06-22 16:14 ` Martin Krischik
2009-06-22 16:33   ` Tero Koskinen
2009-06-22 17:31   ` John B. Matthews
2009-06-22 20:03   ` sjw
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox