From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pjotr Prins Subject: Re: gold linker and collect2: fatal error: cannot find 'ld' Date: Sat, 25 May 2019 16:21:58 -0500 Message-ID: <20190525212158.63acka5fuwp67qnj@thebird.nl> References: <20190317160616.cyv5z7lbsrvbajur@thebird.nl> <20190318152849.n3jzwrbyfd7fd3db@thebird.nl> <87lg109r2p.fsf@gnu.org> <87a7g6hakd.fsf@ambrevar.xyz> <87bm03x9is.fsf@ambrevar.xyz> <87o941w5zf.fsf@ambrevar.xyz> <871s0xvtim.fsf@ambrevar.xyz> <87k1elqgu6.fsf@gnu.org> <87y3312jro.fsf@ambrevar.xyz> <87imtyo5k6.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([209.51.188.92]:52728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUeEp-0006WY-N4 for guix-devel@gnu.org; Sat, 25 May 2019 17:30:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hUeEo-00054l-F4 for guix-devel@gnu.org; Sat, 25 May 2019 17:29:59 -0400 Content-Disposition: inline In-Reply-To: <87imtyo5k6.fsf@ambrevar.xyz> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Pierre Neidhardt Cc: guix-devel@gnu.org 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'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/