guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Pjotr Prins
Subject: Re: gold linker and collect2: fatal error: cannot find 'ld'
Date: Tue, 19 Mar 2019 16:24:08 +0100
User-agent: NeoMutt/20170113 (1.7.2)

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 the RPATH explicitly on
> > the ldc command line. When I set the RPATH the runtime is fine. 
> 
> Reading up on the ld-wrapper code - that is exactly what happens. A
> gold-wrapper can do same.
> 
> I think, like with rustc, I need to wrap the ldc compiler build with
> ld-wrapper and the ldc tests with gold-wrapper (yet to be written).
> 
> gold does not honour LIBRARY_PATH so that means we'll have to use
> LD_LIBRARY_PATH or pass the lib path(s) on the command line. 
> 
> Does this make sense? If it does we can make an attempt.
> 
> Pj.
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]