comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: Gnat says libraries are not supported.
Date: Mon, 29 Jun 2009 03:15:14 -0700 (PDT)
Date: 2009-06-29T03:15:14-07:00	[thread overview]
Message-ID: <26c8cdef-6a39-4953-98a9-be2732774304@y17g2000yqn.googlegroups.com> (raw)
In-Reply-To: 6sdmh6-g3f2.ln1@macpro.krischik.com

On Jun 29, 11:24 am, Martin Krischik <krisc...@me.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Ludovic Brenta schrieb:
>
> > Björn Persson wrote:
> >> I have a problem with Gnat of GCC 4.4.0 on Fedora 11. When Gnatmake
> >> encounters a Library_Name attribute in a project file, it says "warning:
> >> libraries are not supported on this platform", and I can't get it to
> >> generate any shared libraries.
>
> >> Does anyone know what that warning means? That Fedora wouldn't support
> >> libraries is just plain wrong. Has Gnat somehow been built without support
> >> for libraries?
>
> > This indicates that GCC was compiled with the wrong version of mlib-
> > tgt.adb.  In GCC 4.4, the proper version was renamed from mlib-tgt-
> > linux.adb to mlib-tgt-specific-linux.adb.   I know because I had to
> > fix this problem for the Debian package, which is now in the NEW queue
> > awaiting inspection by an FTP master.
>
> So, how did you fix it?

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.

--
Ludovic Brenta.



  reply	other threads:[~2009-06-29 10:15 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 [this message]
2009-07-25 18:23       ` Björn Persson
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