comp.lang.ada
 help / color / mirror / Atom feed
From: Pascal Obry <pascal@obry.net>
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
Date: 2016-04-23T18:02:50+02:00	[thread overview]
Message-ID: <1461427370.28132.3.camel@obry.net> (raw)
In-Reply-To: 51e4ad52-3878-4e41-b7af-5e8991c241a4@googlegroups.com


Hi Pascal,

> I have just upgraded to Ubuntu 16.04 (x86_64) and now GNAT GPL 2015
> fails to link:
> 
> 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
> 
> 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

-- 
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B



  reply	other threads:[~2016-04-23 16:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-23 14:06 GNAT GPL 2015 and Ubuntu 16.04 => ld: /usr/lib/x86_64-linux-gnu/crti.o: unrecognized relocation pascal.malaise
2016-04-23 16:02 ` Pascal Obry [this message]
2016-08-18 11:52   ` paniaguaivan
2016-04-25  6:12 ` pascal.malaise
replies disabled

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