comp.lang.ada
 help / color / mirror / Atom feed
* GNAT GPL 2015 and Ubuntu 16.04 => ld: /usr/lib/x86_64-linux-gnu/crti.o: unrecognized relocation
@ 2016-04-23 14:06 pascal.malaise
  2016-04-23 16:02 ` Pascal Obry
  2016-04-25  6:12 ` pascal.malaise
  0 siblings, 2 replies; 4+ messages in thread
From: pascal.malaise @ 2016-04-23 14:06 UTC (permalink / raw)


Hi,

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.

Thank you for any explanation or clue.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: GNAT GPL 2015 and Ubuntu 16.04 => ld: /usr/lib/x86_64-linux-gnu/crti.o: unrecognized relocation
  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
  2016-08-18 11:52   ` paniaguaivan
  2016-04-25  6:12 ` pascal.malaise
  1 sibling, 1 reply; 4+ messages in thread
From: Pascal Obry @ 2016-04-23 16:02 UTC (permalink / raw)



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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: GNAT GPL 2015 and Ubuntu 16.04 => ld: /usr/lib/x86_64-linux-gnu/crti.o: unrecognized relocation
  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
@ 2016-04-25  6:12 ` pascal.malaise
  1 sibling, 0 replies; 4+ messages in thread
From: pascal.malaise @ 2016-04-25  6:12 UTC (permalink / raw)


Indeed this solves the issue.
Thank you Pascal


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: GNAT GPL 2015 and Ubuntu 16.04 => ld: /usr/lib/x86_64-linux-gnu/crti.o: unrecognized relocation
  2016-04-23 16:02 ` Pascal Obry
@ 2016-08-18 11:52   ` paniaguaivan
  0 siblings, 0 replies; 4+ messages in thread
From: paniaguaivan @ 2016-08-18 11:52 UTC (permalink / raw)



This resolves the problem in my case too.

Thank you very much Pascal.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-08-18 11:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2016-08-18 11:52   ` paniaguaivan
2016-04-25  6:12 ` pascal.malaise

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