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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: Pascal Obry Newsgroups: comp.lang.ada Subject: Re: GNAT GPL 2015 and Ubuntu 16.04 => ld: /usr/lib/x86_64-linux-gnu/crti.o: unrecognized relocation Date: Sat, 23 Apr 2016 18:02:50 +0200 Organization: Home - http://www.obry.net Message-ID: <1461427370.28132.3.camel@obry.net> References: <51e4ad52-3878-4e41-b7af-5e8991c241a4@googlegroups.com> Reply-To: pascal@obry.net NNTP-Posting-Host: 2Fr73o33QfMRjR+Xmg2TUA.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Complaints-To: abuse@aioe.org X-Mailer: Evolution 3.18.5.1-1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:30260 Date: 2016-04-23T18:02:50+02:00 List-Id: Hi Pascal, > I have just upgraded to Ubuntu 16.04 (x86_64) and now GNAT GPL 2015 > fails to link: >=20 > Example from the ./configure of gtkada: > /usr/local/gnat_releases/gnat_2015/bin/../libexec/gcc/x86_64-pc- > linux-gnu/4.9.3/ld: /usr/lib/x86_64-linux-gnu/crti.o: unrecognized > relocation (0x2a) in section `.init' > /usr/local/gnat_releases/gnat_2015/bin/../libexec/gcc/x86_64-pc- > linux-gnu/4.9.3/ld: final link failed: Bad value >=20 > Same error when linking Ada programs. I think this is an ABI error. Ubuntu 16.10 come with GCC 5.3 which is not binary compatible. I'm not using Ubuntu, but on a GNU/Debian machine I had a similar issue and just renaming the GNAT GPL 2015 linker could fix the issue. $ sudo mv /usr/local/gnat_releases/gnat_2015/bin/../libexec/gcc/x86_64- pc-linux-gnu/4.9.3/ld /usr/local/gnat_releases/gnat_2015/bin/../libexec/gcc/x86_64-pc-linux- gnu/4.9.3/ld-orig --=20 =C2=A0 Pascal Obry /=C2=A0=C2=A0Magny Les Hameaux (78) =C2=A0 The best way to travel is by means of imagination =C2=A0=C2=A0http://www.obry.net =C2=A0 gpg --keyserver keys.gnupg.net --recv-key F949BD3B