all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pjotr Prins <pjotr.public12@thebird.nl>
To: Pierre Neidhardt <mail@ambrevar.xyz>
Cc: guix-devel@gnu.org
Subject: Re: gold linker and collect2: fatal error: cannot find 'ld'
Date: Sat, 25 May 2019 16:21:58 -0500	[thread overview]
Message-ID: <20190525212158.63acka5fuwp67qnj@thebird.nl> (raw)
In-Reply-To: <87imtyo5k6.fsf@ambrevar.xyz>

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/

      reply	other threads:[~2019-05-25 21:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-17 16:06 gold linker and collect2: fatal error: cannot find 'ld' Pjotr Prins
2019-03-18 15:28 ` Pjotr Prins
2019-03-19 15:24   ` Pjotr Prins
2019-03-27 17:15   ` Ludovic Courtès
2019-05-01  7:56     ` Pierre Neidhardt
2019-05-16  5:18       ` Pierre Neidhardt
2019-05-17 13:44         ` Pierre Neidhardt
2019-05-17 18:13           ` Pierre Neidhardt
2019-05-20 15:35             ` Ludovic Courtès
2019-05-20 16:06               ` Pierre Neidhardt
2019-05-25 16:35                 ` Pierre Neidhardt
2019-05-25 21:21                   ` Pjotr Prins [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190525212158.63acka5fuwp67qnj@thebird.nl \
    --to=pjotr.public12@thebird.nl \
    --cc=guix-devel@gnu.org \
    --cc=mail@ambrevar.xyz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.