From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: gold linker and collect2: fatal error: cannot find 'ld' Date: Mon, 20 May 2019 17:35:29 +0200 Message-ID: <87k1elqgu6.fsf@gnu.org> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:55040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSkKB-0003yh-Sp for guix-devel@gnu.org; Mon, 20 May 2019 11:35:40 -0400 In-Reply-To: <871s0xvtim.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Fri, 17 May 2019 20:13:37 +0200") 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 Hi Pierre, Pierre Neidhardt 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? =E2=80=9CEverything=E2=80=9D depends on =E2=80=98ld-wrapper=E2=80=99 (see c= ommencement.scm), so you have to come up with changes that do not modify the default =E2=80=98ld-wrapper= =E2=80=99. > (ld ,(if target > - `(string-append bin "/" ,target "-= ld") > - '(string-append bin "/ld"))) > + `(string-append bin "/" ,target "-= " ,linker-name) > + `(string-append bin "/" ,linker-na= me))) In these two cases, you=E2=80=99re changing the generated code from: (string-append bin "/" =E2=80=A6 "-ld") (string-append bin "/ld") to: (string-append bin "/" =E2=80=A6 "-" "ld") (string-append bin "/" "ld") To avoid a rebuild, you=E2=80=99ll have to special-case =E2=80=9Cld=E2=80= =9D such that the generated code is unchanged. HTH! Ludo=E2=80=99.