Re: gold linker and collect2: fatal error: cannot find 'ld'

2019-05-25 Thread Pjotr Prins
The tests are looking for gold. That *is* the problem. You can build ldc with ld, but the ldc compiler is looking for gold. When you make gold available at test time it will work. Pj. On Sat, May 25, 2019 at 06:35:37PM +0200, Pierre Neidhardt wrote: > Alright, this works now. > > I'm using Pjotr

Re: gold linker and collect2: fatal error: cannot find 'ld'

2019-05-25 Thread Pierre Neidhardt
Alright, this works now. I'm using Pjotr's patch https://gitlab.com/genenetwork/guix/commits/ldc-1.14-20190222/gnu/packages/dlang.scm to build ldc 1.14, but I hit the opposite issue of what was initially described in this post: - It does not seem to build against gold, it seems to use the regular

Re: gold linker and collect2: fatal error: cannot find 'ld'

2019-05-20 Thread Ludovic Courtès
Hi Pierre, Pierre Neidhardt skribis: > So it seems that the following change to make-ld-wrapper triggers a > rebuild of the world on every "guix build". Any idea why? Ludo? “Everything” depends on ‘ld-wrapper’ (see commencement.scm), so you have to come up with changes that do not modify the

Re: gold linker and collect2: fatal error: cannot find 'ld'

2019-05-17 Thread Pierre Neidhardt
So it seems that the following change to make-ld-wrapper triggers a rebuild of the world on every "guix build". Any idea why? Ludo? --8<---cut here---start->8--- @@ -537,14 +537,15 @@ included.") binutils (

Re: gold linker and collect2: fatal error: cannot find 'ld'

2019-03-27 Thread Ludovic Courtès
Hi Pjotr, Pjotr Prins skribis: > On Sun, Mar 17, 2019 at 05:06:16PM +0100, Pjotr Prins wrote: >> Unfortunately the runtime of compiled software fails because the rpath is >> not updated either. So that requires adding in the RPATH explicitly on >> the ldc command line. When I set the RPATH the r

Re: gold linker and collect2: fatal error: cannot find 'ld'

2019-03-19 Thread Pjotr Prins
No one suggestions? Should we disable gold? On Mon, Mar 18, 2019 at 04:28:49PM +0100, Pjotr Prins wrote: > On Sun, Mar 17, 2019 at 05:06:16PM +0100, Pjotr Prins wrote: > > Unfortunately the runtime of compiled software fails because the rpath is > > not updated either. So that requires adding in t

Re: gold linker and collect2: fatal error: cannot find 'ld'

2019-03-18 Thread Pjotr Prins
On Sun, Mar 17, 2019 at 05:06:16PM +0100, Pjotr Prins wrote: > Unfortunately the runtime of compiled software fails because the rpath is > not updated either. So that requires adding in the RPATH explicitly on > the ldc command line. When I set the RPATH the runtime is fine. Reading up on the ld-