From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,2bf29147cdba9fd8 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: =?ISO-8859-1?Q?Bj=F6rn?= Persson Newsgroups: comp.lang.ada Subject: Re: Gnat says libraries are not supported. Followup-To: comp.lang.ada Date: Sat, 25 Jul 2009 20:23:13 +0200 Message-ID: <7d10snF2a3u87U1@mid.individual.net> References: <7a4m6uF1toatnU1@mid.individual.net> <6sdmh6-g3f2.ln1@macpro.krischik.com> <26c8cdef-6a39-4953-98a9-be2732774304@y17g2000yqn.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8Bit X-Trace: individual.net M5nBXJ5Fw2IHhugGCODcGAy5OCESF7yOjEZ5Kt10+jnfdCtH// Cancel-Lock: sha1:T0XjQQG80Ekmxn8Tln6737Xfwo0= User-Agent: KNode/0.99.01 Xref: g2news1.google.com comp.lang.ada:6381 Date: 2009-07-25T20:23:13+02:00 List-Id: 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