From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikita Karetnikov Subject: Re: mips64el: No such file or directory: "/nix/store/*-glibc-2.13.drv" Date: Sun, 30 Dec 2012 11:14:17 -0500 Message-ID: <87vcbjldp5.fsf@karetnikov.org> References: <8738yvnslh.fsf@karetnikov.org> <87y5gfa7t9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TpLWj-0001UY-Ua for bug-guix@gnu.org; Sun, 30 Dec 2012 11:14:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TpLWd-0002aa-CI for bug-guix@gnu.org; Sun, 30 Dec 2012 11:14:17 -0500 In-Reply-To: <87y5gfa7t9.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "(unknown date)") 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: bug-guix@gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > Can you replace occurrences of =E2=80=98nixpkgs-derivation*=E2=80=99 by There is no such function. (I've attached the diff.) Nikita --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=bootstrap.diff Content-Transfer-Encoding: quoted-printable =2D-- bootstrap.scm-orig 2012-12-30 15:50:33.274957192 +0000 +++ bootstrap.scm 2012-12-24 18:18:52.214043993 +0000 @@ -137,6 +137,7 @@ "Return the name of Glibc's dynamic linker for SYSTEM." (cond ((string=3D? system "x86_64-linux") "/lib/ld-linux-x86-64.so.2") ((string=3D? system "i686-linux") "/lib/ld-linux.so.2") + ((string=3D? system "mips64el-linux") "/lib/ld.so.1") (else (error "dynamic linker name not known for this system" system)))) =20 @@ -146,53 +147,56 @@ ;;; =20 (define %bootstrap-guile =2D ;; The Guile used to run the build scripts of the initial derivations. =2D ;; It is just unpacked from a tarball containing a pre-built binary. =2D ;; This is typically built using %GUILE-BOOTSTRAP-TARBALL below. =2D ;; =2D ;; XXX: Would need libc's `libnss_files2.so' for proper `getaddrinfo' =2D ;; support (for /etc/services). =2D (let ((raw (build-system =2D (name "raw") =2D (description "Raw build system with direct store access") =2D (build (lambda* (store name source inputs #:key outputs sy= stem) =2D (define (->store file) =2D (add-to-store store file #t #t "sha256" =2D (or (search-bootstrap-binary file =2D syst= em) =2D (error "bootstrap binary not = found" =2D file system)))) =2D =2D (let* ((tar (->store "tar")) =2D (xz (->store "xz")) =2D (mkdir (->store "mkdir")) =2D (bash (->store "bash")) =2D (guile (->store "guile-bootstrap-2.0.6.tar= .xz")) =2D (builder =2D (add-text-to-store store =2D "build-bootstrap-guile= .sh" =2D (format #f " =2Decho \"unpacking bootstrap Guile to '$out'...\" =2D~a $out =2Dcd $out =2D~a -dc < ~a | ~a xv =2D =2D# Sanity check. =2D$out/bin/guile --version~%" =2D mkdir xz guile= tar) =2D (list mkdir xz guile t= ar)))) =2D (derivation store name system =2D bash `(,builder) '() =2D `((,bash) (,builder))))))))) =2D (package =2D (name "guile-bootstrap") =2D (version "2.0") =2D (source #f) =2D (build-system raw) =2D (synopsis "Bootstrap Guile") =2D (description "Pre-built Guile for bootstrapping purposes.") =2D (home-page #f) =2D (license lgpl3+)))) + (nixpkgs-derivation "guile" "mips64el-linux")) + +;; (define %bootstrap-guile +;; ;; The Guile used to run the build scripts of the initial derivations. +;; ;; It is just unpacked from a tarball containing a pre-built binary. +;; ;; This is typically built using %GUILE-BOOTSTRAP-TARBALL below. +;; ;; +;; ;; XXX: Would need libc's `libnss_files2.so' for proper `getaddrinfo' +;; ;; support (for /etc/services). +;; (let ((raw (build-system +;; (name "raw") +;; (description "Raw build system with direct store access") +;; (build (lambda* (store name source inputs #:key outputs s= ystem) +;; (define (->store file) +;; (add-to-store store file #t #t "sha256" +;; (or (search-bootstrap-binary file +;; sys= tem) +;; (error "bootstrap binary not= found" +;; file system)))) + +;; (let* ((tar (->store "tar")) +;; (xz (->store "xz")) +;; (mkdir (->store "mkdir")) +;; (bash (->store "bash")) +;; (guile (->store "guile-bootstrap-2.0.6.ta= r.xz")) +;; (builder +;; (add-text-to-store store +;; "build-bootstrap-guil= e.sh" +;; (format #f " +;; echo \"unpacking bootstrap Guile to '$out'...\" +;; ~a $out +;; cd $out +;; ~a -dc < ~a | ~a xv + +;; # Sanity check. +;; $out/bin/guile --version~%" +;; mkdir xz guil= e tar) +;; (list mkdir xz guile = tar)))) +;; (derivation store name system +;; bash `(,builder) '() +;; `((,bash) (,builder))))))))) +;; (package +;; (name "guile-bootstrap") +;; (version "2.0") +;; (source #f) +;; (build-system raw) +;; (synopsis "Bootstrap Guile") +;; (description "Pre-built Guile for bootstrapping purposes.") +;; (home-page #f) +;; (license lgpl3+)))) =20 (define %bootstrap-base-url ;; This is where the initial binaries come from. @@ -362,11 +366,21 @@ (home-page #f))) =20 (define %bootstrap-inputs =2D ;; The initial, pre-built inputs. From now on, we can start building = our =2D ;; own packages. =2D `(("libc" ,%bootstrap-glibc) =2D ("gcc" ,%bootstrap-gcc) =2D ("binutils" ,%bootstrap-binutils) =2D ("coreutils&co" ,%bootstrap-coreutils&co))) + (compile-time-value + `(("libc" ,(nixpkgs-derivation "glibc" "mips64el-linux")) + ,@(map (lambda (name) + (list name (nixpkgs-derivation name "mips64el-linux"))) + '("gnutar" "gzip" "bzip2" "xz" "patch" + "coreutils" "gnused" "gnugrep" "bash" + "gawk" ; used by `config.stat= us' + "gcc" "binutils"))))) + +;; (define %bootstrap-inputs +;; ;; The initial, pre-built inputs. From now on, we can start building= our +;; ;; own packages. +;; `(("libc" ,%bootstrap-glibc) +;; ("gcc" ,%bootstrap-gcc) +;; ("binutils" ,%bootstrap-binutils) +;; ("coreutils&co" ,%bootstrap-coreutils&co))) =20 ;;; bootstrap.scm ends here --=-=-=-- --==-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJQ4GhtAAoJEM+IQzI9IQ38WyMQAIMegvh7VVD12AaU2ajdWUFS Te2IIH5q7qLx+KBv1tnzGz7OV/VxlFaxrXdwC51PLVqDQKT3YRt0GYAfDX20D7WM Ek7pD0bQM5LRXDw2D5ROe6jiJE+uj3aSyPT5qi3HdDgsv4Ss3CivrOQpgK/AroaI 2vHsczQmbrQnUAlpT/3hIO2XpdOHbloodxbngMayCoZ94MyEBF0IoQAYsC+MXBTN J3aMT54hp1oH9BH4S3+gG7odB+ieur0Dxj2JqrPA0AdC2Wo5WgKyYvLxKYPgAwWl rM2noxOUJ6l69vvg6qZoq0MuWexmOFvpyfTzCD/wIQFk4frevXy2N5Ylgnd6x8cM KCP7EBIUmkteH4T/1OiuL66dyWqphCXdHe+GLMBYvWaD584UggKp2gGyQOzGu0IH WwoMibXjn6yKCq6cxJ72+3GDw5i4Ojm9fwPynJSOAIZWoerzUF5P36ElwE15Phe9 3D8cjis6JQxXbJ05k0oSZOL/11r0qG3oXiuDlen06Y69IGbN/B1F7i8nnaCKC0yr vW64gUxthiRNfwNuWeo2C4nCpvGaPJvznBZEdLzooF0CDADM/EylBl1LZP4w3moB RBQVGaU4tCBcB9lQVSSV86f1HDJb1buqSjFtOwcbZiCC8Qmxo/yqgz2fdL21G1O1 EuQQ7X41uDHT2Wycxcve =nfRp -----END PGP SIGNATURE----- --==-=-=--