From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: gold linker and collect2: fatal error: cannot find 'ld' Date: Fri, 17 May 2019 20:13:37 +0200 Message-ID: <871s0xvtim.fsf@ambrevar.xyz> 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> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:54590) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRhYK-0006iS-Iw for guix-devel@gnu.org; Fri, 17 May 2019 14:25:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRhMZ-0006kS-62 for guix-devel@gnu.org; Fri, 17 May 2019 14:13:48 -0400 In-Reply-To: <87o941w5zf.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: Ludovic =?utf-8?Q?Court=C3=A8s?= , Pjotr Prins Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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? =2D-8<---------------cut here---------------start------------->8--- @@ -537,14 +537,15 @@ included.") binutils (guile (canonical-package guile-2.2)) (bash (canonical-package bash)) =2D (guile-for-build guile)) =2D "Return a package called NAME that contains a wrapper for the 'ld' pro= gram =2Dof BINUTILS, which adds '-rpath' flags to the actual 'ld' command line. = The =2Dwrapper uses GUILE and BASH. + (guile-for-build guile) + (linker-name "ld")) + "Return a package called NAME that contains a wrapper for the linker pro= gram, +('ld' of BINUTILS by default), which adds '-rpath' flags to the actual lin= ker +command line. The wrapper uses GUILE and BASH. =20 TARGET must be a one-argument procedure that, given a system type, returns= a cross-compilation target triplet or #f. When the result is not #f, make a =2Dwrapper for the cross-linker for that target, called 'TARGET-ld'." +wrapper for the cross-linker for that target, called 'TARGET-LINKER-NAME'." ;; Note: #:system->target-triplet is a procedure so that the evaluation = of ;; its result can be delayed until the 'arguments' field is evaluated, t= hus ;; in a context where '%current-system' is accurate. @@ -569,8 +570,8 @@ wrapper for the cross-linker for that target, called 'T= ARGET-ld'." (let* ((out (assoc-ref %outputs "out")) (bin (string-append out "/bin")) (ld ,(if target =2D `(string-append bin "/" ,target "-= ld") =2D '(string-append bin "/ld"))) + `(string-append bin "/" ,target "-" = ,linker-name) + `(string-append bin "/" ,linker-name= ))) (go (string-append ld ".go"))) =20 (setvbuf (current-output-port) _IOLBF) @@ -593,8 +594,8 @@ wrapper for the cross-linker for that target, called 'T= ARGET-ld'." (string-append (assoc-ref %build-inputs "binutil= s") ,(if target (string-append "/bin/" =2D target "-ld= ") =2D "/bin/ld")))) + target "-" li= nker-name) + (string-append "/bin/" linke= r-name))))) (chmod ld #o555) (compile-file ld #:output-file go) #t))))) =2D-8<---------------cut here---------------end--------------->8--- =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlze+dEACgkQm9z0l6S7 zH/4VQf/WBPWFMLnZJRR2GRW5XW4mepxFfCh0a4TYCH6FGf6KhUQePdhcmWvuKUT 6ca0QP+oqnvgAi/z5s+tb+MIhdWvhA9oWCR1JXpGyRYbVBIbO4uNNNIUi+6iNuP8 Pua83JTYTkGU1B/tJuOkio+FkqdZlBi0+H1su7oiy3vWOAPmpf1VVaqO7cfiRugL f3Y65DL9FggFEaT+iLtKdDumZNjy9tZLPjt980hpzA19EFhFY8cKUCr28f9Sa/9c g2YJzCNndfdjisCCzJbG+epTWyqja/vpFWnFB+CisWN5fYb9wxmAupxzU4DDKSId NhUjZ2LmWn+3mC905tgfoP4Lf5o9sQ== =UOo0 -----END PGP SIGNATURE----- --=-=-=--