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: g2news2.google.com!postnews.google.com!y17g2000yqn.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Gnat says libraries are not supported. Date: Mon, 29 Jun 2009 03:15:14 -0700 (PDT) Organization: http://groups.google.com Message-ID: <26c8cdef-6a39-4953-98a9-be2732774304@y17g2000yqn.googlegroups.com> References: <7a4m6uF1toatnU1@mid.individual.net> <6sdmh6-g3f2.ln1@macpro.krischik.com> NNTP-Posting-Host: 153.98.68.197 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1246270514 27213 127.0.0.1 (29 Jun 2009 10:15:14 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 29 Jun 2009 10:15:14 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: y17g2000yqn.googlegroups.com; posting-host=153.98.68.197; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.6) Gecko/2009012111 Red Hat/3.0.6-1.el5 Firefox/3.0.6,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:6704 Date: 2009-06-29T03:15:14-07:00 List-Id: On Jun 29, 11:24=A0am, Martin Krischik wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Ludovic Brenta schrieb: > > > Bj=F6rn 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 "warnin= g: > >> 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 sup= port > >> for libraries? > > > This indicates that GCC was compiled with the wrong version of mlib- > > tgt.adb. =A0In GCC 4.4, the proper version was renamed from mlib-tgt- > > linux.adb to mlib-tgt-specific-linux.adb. =A0 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.