From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Porting to mips64el Date: Wed, 09 Jan 2013 22:42:11 +0100 Message-ID: <87y5g2kp8s.fsf@gnu.org> References: <8738yvnslh.fsf@karetnikov.org> <87y5gfa7t9.fsf@gnu.org> <87vcbjldp5.fsf@karetnikov.org> <87zk0v4e29.fsf@gnu.org> <87wqvzclyj.fsf@karetnikov.org> <87ehi71bl6.fsf@gnu.org> <87pq1rma9g.fsf@karetnikov.org> <87wqvyxvhv.fsf@gnu.org> <87lic3vm8s.fsf@karetnikov.org> <871udv6bny.fsf@gnu.org> <87d2xfk9qb.fsf@karetnikov.org> <87k3rnr61e.fsf@gnu.org> <871udvwna6.fsf@karetnikov.org> <876237bdqu.fsf@gnu.org> <87y5g2uzbj.fsf@karetnikov.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tt3Pc-0008NH-1O for bug-guix@gnu.org; Wed, 09 Jan 2013 16:42:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tt3Pa-0007wA-I6 for bug-guix@gnu.org; Wed, 09 Jan 2013 16:42:15 -0500 Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:1258) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tt3Pa-0007w6-BQ for bug-guix@gnu.org; Wed, 09 Jan 2013 16:42:14 -0500 In-Reply-To: <87y5g2uzbj.fsf@karetnikov.org> (Nikita Karetnikov's message of "Wed, 09 Jan 2013 10:54:08 -0500") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Nikita Karetnikov Cc: bug-guix@gnu.org Nikita Karetnikov skribis: >> Well, you could modify Nixpkgs for that. But note that only the headers >> are used, and they are bit-for-bit the same as those of the >> corresponding Linux-Libre. Furthermore, you will no longer need Nixpkgs >> once you=E2=80=99ve built the bootstrap binaries for Guix, so I would not >> bother. > > Anyway, I'd like to know how to do it because I often use 'nix-env' to > test things. You=E2=80=99d have to edit $NIXPKGS/pkgs/os-specific/linux/kernel-headers/*= .nix and change the URL in there. > 'glibc' failed again. [...] > make[2]: Leaving directory `/tmp/nix-build-qc2f73airw91j5hjq7dn7737wzbcyg= q9-glibc-2.13.drv-0/glibc-2.13/login' > building elf/others > make subdir=3Delf -C elf ..=3D../ others > make[1]: *** [elf/others] Killed Yes, I think you reported it earlier. This could be either a sign of not enough memory, or perhaps that the consequence of trying to run an invalid binary (such as a corrupt ELF executable.) I think Llu=C3=ADs said that something must be added to ~/.nixpkgs/config.n= ix to make sure the right platform setup is used, but again, I have no expertise in MIPS64 so I can=E2=80=99t really help. > Some snippets from 'config.log': Nothing to worry about here. >> An unrelated issue that just came to mind: MIPS code for libc is in >> glibc-ports, right? That means you=E2=80=99ll have to conditionally add= that to >> the inputs of glibc, in base.scm. > > Did it fail because of this? No no. Nixpkgs is fine (well, should be); I was talking to glibc in Guix itself (base.scm), which needs to be adjusted. You haven=E2=80=99t re= ached the point of building packages defined in Guix yet. > I don't understand how to add 'glibc-ports'. [...] > needsPortsNative =3D stdenv.isMips || stdenv.isArm; > needsPortsCross =3D cross.arch =3D=3D "mips" || cross.arch =3D=3D "arm"; > needsPorts =3D > if (stdenv ? cross) && stdenv.cross !=3D null && hurdHeaders =3D=3D n= ull then true else if cross =3D=3D null then needsPortsNative > else needsPortsCross; > > srcPorts =3D fetchurl { > url =3D "mirror://gnu/glibc/glibc-ports-2.13.tar.bz2"; > sha256 =3D "0npffql62m1xba15l1wkaqf2p0l2bvb33720gx28764jmq0la75i"; > }; glibc-ports is a glibc add-on, which adds architecture-specific code for some platforms (glibc itself comes with support for IA32, x86_64, and SPARC, IIRC, but support for other architectures is in the glibc-ports tarball.) Thanks, Ludo=E2=80=99.