all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Pierre Neidhardt <mail@ambrevar.xyz>
Cc: guix-devel@gnu.org
Subject: Re: gold linker and collect2: fatal error: cannot find 'ld'
Date: Mon, 20 May 2019 17:35:29 +0200	[thread overview]
Message-ID: <87k1elqgu6.fsf@gnu.org> (raw)
In-Reply-To: <871s0xvtim.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Fri, 17 May 2019 20:13:37 +0200")

Hi Pierre,

Pierre Neidhardt <mail@ambrevar.xyz> skribis:

> So it seems that the following change to make-ld-wrapper triggers a
> rebuild of the world on every "guix build".  Any idea why?  Ludo?

“Everything” depends on ‘ld-wrapper’ (see commencement.scm), so you have
to come up with changes that do not modify the default ‘ld-wrapper’.

>                              (ld  ,(if target
> -                                      `(string-append bin "/" ,target "-ld")
> -                                      '(string-append bin "/ld")))
> +                                      `(string-append bin "/" ,target "-" ,linker-name)
> +                                      `(string-append bin "/" ,linker-name)))

In these two cases, you’re changing the generated code from:

  (string-append bin "/" … "-ld")
  (string-append bin "/ld")

to:

  (string-append bin "/" … "-" "ld")
  (string-append bin "/" "ld")

To avoid a rebuild, you’ll have to special-case “ld” such that the
generated code is unchanged.

HTH!

Ludo’.

  reply	other threads:[~2019-05-20 15:35 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 [this message]
2019-05-20 16:06               ` Pierre Neidhardt
2019-05-25 16:35                 ` Pierre Neidhardt
2019-05-25 21:21                   ` Pjotr Prins

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=87k1elqgu6.fsf@gnu.org \
    --to=ludo@gnu.org \
    --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.