From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: Re: MIPS bootstrap problem in core-updates Date: Mon, 08 Jun 2015 13:52:56 -0400 Message-ID: <87ioay1407.fsf@netris.org> References: <87zj4ahlc5.fsf@netris.org> <874mmiuwms.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z21EV-0005jQ-G1 for guix-devel@gnu.org; Mon, 08 Jun 2015 13:53:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z21EQ-00031W-L2 for guix-devel@gnu.org; Mon, 08 Jun 2015 13:53:11 -0400 In-Reply-To: <874mmiuwms.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 08 Jun 2015 16:01:47 +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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) writes: > This (lightly tested) patch may work: > > diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm > index ab16660..6dd4d55 100644 > --- a/gnu/packages/commencement.scm > +++ b/gnu/packages/commencement.scm > @@ -139,6 +139,19 @@ > (arguments > `(#:guile ,%bootstrap-guile > #:implicit-inputs? #f > + > + #:phases (alist-cons-after > + 'install 'add-gas-symlink > + (lambda* (#:key outputs #:allow-other-keys) > + ;; The cross-gcc invokes 'as', not the cross-'as', s= o add > + ;; an 'as' symlink. > + (let ((out (assoc-ref outputs "out"))) > + (with-directory-excursion (string-append out "/bin= ") > + (symlink (string-append ,(boot-triplet) "-as") > + "as") > + #t))) > + %standard-phases) > + > ,@(substitute-keyword-arguments (package-arguments binutils) > ((#:configure-flags cf) > `(cons ,(string-append "--target=3D" (boot-triplet)) > @@ -274,10 +287,7 @@ > ;; 2nd stage inputs. > `(("gcc" ,gcc-boot0) > ("binutils-cross" ,binutils-boot0) > - > - ;; Keep "binutils" here because the cross-gcc invokes `as', not the > - ;; cross-`as'. > - ,@%boot0-inputs)) > + ,@(alist-delete "binutils" %boot0-inputs))) >=20=20 > (define glibc-final-with-bootstrap-bash > ;; The final libc, "cross-built". If everything went well, the result= ing Sounds good. > Could you try it on MIPS, on top of =E2=80=98core-updates=E2=80=99? I tried this and it turned out that 'ld' was also needed. I added an 'ld' symlink and then discovered than 'ar' was needed as well. I'm now trying it with symlinks for _all_ of the programs in binutils' /bin directory. To be continued... Thanks, Mark