guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gold linker and collect2: fatal error: cannot find 'ld'


From: Ludovic Courtès
Subject: Re: gold linker and collect2: fatal error: cannot find 'ld'
Date: Mon, 20 May 2019 17:35:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)

Hi Pierre,

Pierre Neidhardt <address@hidden> 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 via email to

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