[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gold linker and collect2: fatal error: cannot find 'ld'
From: |
Pierre Neidhardt |
Subject: |
Re: gold linker and collect2: fatal error: cannot find 'ld' |
Date: |
Sat, 25 May 2019 18:35:37 +0200 |
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
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
https://ambrevar.xyz/
signature.asc
Description: PGP signature