comp.lang.ada
 help / color / mirror / Atom feed
* Link failure after upgrade from Linux Mint 17.3 to Linux Mint 18
@ 2016-10-07 19:08 Some Dude
  2016-10-07 19:22 ` Simon Wright
  2016-10-07 20:26 ` Some Dude
  0 siblings, 2 replies; 4+ messages in thread
From: Some Dude @ 2016-10-07 19:08 UTC (permalink / raw)


After having upgraded, I cleaned the source directory of a project that also uses AUnit, and now I get the following error:

/home/nemo/Applications/adagpl-2016/gnatgpl/gnat-gpl-2016-x86_64-linux-bin/bin/../libexec/gcc/x86_64-pc-linux-gnu/4.9.4/ld: /usr/lib/x86_64-linux-gnu/crti.o: unrecognized relocation (0x2a) in section `.init'
/home/nemo/Applications/adagpl-2016/gnatgpl/gnat-gpl-2016-x86_64-linux-bin/bin/../libexec/gcc/x86_64-pc-linux-gnu/4.9.4/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
gprbuild: link of bham_harness.adb failed
[2016-10-07 20:06:46] process exited with status 4, 100% (22/22), elapsed time: 02.33s


Does anybody know what causes it?


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

* Re: Link failure after upgrade from Linux Mint 17.3 to Linux Mint 18
  2016-10-07 19:08 Link failure after upgrade from Linux Mint 17.3 to Linux Mint 18 Some Dude
@ 2016-10-07 19:22 ` Simon Wright
  2016-10-07 20:26 ` Some Dude
  1 sibling, 0 replies; 4+ messages in thread
From: Simon Wright @ 2016-10-07 19:22 UTC (permalink / raw)


Some Dude <john@peppermind.com> writes:

> After having upgraded, I cleaned the source directory of a project
> that also uses AUnit, and now I get the following error:
>
> /home/nemo/Applications/adagpl-2016/gnatgpl/gnat-gpl-2016-x86_64-linux-bin/bin/../libexec/gcc/x86_64-pc-linux-gnu/4.9.4/ld:
> /usr/lib/x86_64-linux-gnu/crti.o: unrecognized relocation (0x2a) in
> section `.init'
> /home/nemo/Applications/adagpl-2016/gnatgpl/gnat-gpl-2016-x86_64-linux-bin/bin/../libexec/gcc/x86_64-pc-linux-gnu/4.9.4/ld:
> final link failed: Bad value
> collect2: error: ld returned 1 exit status
> gprbuild: link of bham_harness.adb failed
> [2016-10-07 20:06:46] process exited with status 4, 100% (22/22),
> elapsed time: 02.33s
>
> Does anybody know what causes it?

Not sure, but I'm pretty sure you haven't installed the compiler per the
instructions in the README. May not help, though.


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

* Re: Link failure after upgrade from Linux Mint 17.3 to Linux Mint 18
  2016-10-07 19:08 Link failure after upgrade from Linux Mint 17.3 to Linux Mint 18 Some Dude
  2016-10-07 19:22 ` Simon Wright
@ 2016-10-07 20:26 ` Some Dude
  2016-10-07 21:03   ` Some Dude
  1 sibling, 1 reply; 4+ messages in thread
From: Some Dude @ 2016-10-07 20:26 UTC (permalink / raw)


That's the weird thing, I'm using the compiler provided by Linux Mint 18's package manager, not the one from AdaCore, and have chosen it in GPS under Project>Properties...>Toolchain. It says native /usr/ 4.9.3 there.

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

* Re: Link failure after upgrade from Linux Mint 17.3 to Linux Mint 18
  2016-10-07 20:26 ` Some Dude
@ 2016-10-07 21:03   ` Some Dude
  0 siblings, 0 replies; 4+ messages in thread
From: Some Dude @ 2016-10-07 21:03 UTC (permalink / raw)


Nevermind, I resolved it. Like Simon suggested, I had to reinstall the GPL edition even when using the FSF compiler. (I use the GPS from AdaCore because the one provided as a package by Linux Mint/Ubuntu has never worked for me.)

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

end of thread, other threads:[~2016-10-07 21:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-07 19:08 Link failure after upgrade from Linux Mint 17.3 to Linux Mint 18 Some Dude
2016-10-07 19:22 ` Simon Wright
2016-10-07 20:26 ` Some Dude
2016-10-07 21:03   ` Some Dude

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