[Top][All Lists]

[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: Sat, 25 May 2019 16:21:58 -0500
User-agent: NeoMutt/20170113 (1.7.2)

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.


On Sat, May 25, 2019 at 06:35:37PM +0200, Pierre Neidhardt wrote:
> Alright, this works now.
> I'm using Pjotr's patch
> 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
>   binutils.
> - Tests fail because they can't find 'ld'.
> The first failing test is:
> --8<---------------cut here---------------start------------->8---
>          1552/1587 Test #1552: druntime-test-aa 
> ...................................................................***Failed  
>   0.49 sec
>          make[1]: Entering directory 
> '/tmp/guix-build-ldc-1.14.0.drv-0/ldc-1.14.0/runtime/druntime/test/aa'
>          /tmp/guix-build-ldc-1.14.0.drv-0/build/bin/ldmd2   -w -I../../src 
> -I../../import -Isrc -defaultlib= -debuglib= -dip1000 
> -L/tmp/guix-build-ldc-1.14.0.drv-0/build/lib/libdruntime-ldc.a -O -release 
> -of/tmp/guix-build-ldc-1.14.0.drv-0/build/runtime/druntime-test-aa/test_aa 
> src/test_aa.d
>          collect2: fatal error: cannot find 'ld'
>          compilation terminated.
> --8<---------------cut here---------------end--------------->8---
> I don't really understand how it can fail to find 'ld' considering it's
> supposed to be building with binutils.
> Am I missing something?  Pjotr?
> -- 
> Pierre Neidhardt

reply via email to

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