From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikita Karetnikov Subject: Re: Porting to mips64el Date: Mon, 28 Jan 2013 00:51:04 -0500 Message-ID: <87zjztdfdr.fsf@karetnikov.org> References: <8738yvnslh.fsf@karetnikov.org> <874ninz3m1.fsf@gnu.org> <87k3ritq0q.fsf@karetnikov.org> <87mwwexwxd.fsf@gnu.org> <87fw26tncy.fsf@karetnikov.org> <876232w1yg.fsf@gnu.org> <87txqmnkav.fsf@karetnikov.org> <87hamkst8o.fsf@gnu.org> <87y5fp2k37.fsf@karetnikov.org> <87k3r9ysl7.fsf@gnu.org> <87bockcnj8.fsf@karetnikov.org> <87bocjvs8m.fsf@gnu.org> <87libkygp3.fsf@karetnikov.org> <87libktruu.fsf@karetnikov.org> <877gn3zzcy.fsf@gnu.org> <87fw1rblhh.fsf@karetnikov.org> <87ham6o9rb.fsf@gnu.org> <87zjzwv9z9.fsf@karetnikov.org> <87fw1nd3s8.fsf@gnu.org> <87libf41oo.fsf@karetnikov.org> <877gmy2uqc.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]:36139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TzhcW-0001hA-Dg for bug-guix@gnu.org; Mon, 28 Jan 2013 00:51:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TzhcT-00007w-At for bug-guix@gnu.org; Mon, 28 Jan 2013 00:51:04 -0500 In-Reply-To: <877gmy2uqc.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 confirm that the log contains this line (literally): > `ARCH' set to `mips' > Can you please post the line with =E2=80=9Cstarting phase `build'=E2=80= =9D and the next > few lines? # ./pre-inst-env guix-build -K \ -e '(@ (gnu packages make-bootstrap) %bootstrap-tarballs)' \ --system=3Dmips64el-linux [...] `ARCH' set to `mips64el' Makefile:484: /tmp/nix-build-wka9dcpcj675k1v9ajvwplgj7398w3lf-linux-libre-h= eaders-3.3.8.drv-2/linux-3.3.8/arch/mips64el/Makefile: No such file or dire= ctory make: *** No rule to make target `/tmp/nix-build-wka9dcpcj675k1v9ajvwplgj73= 98w3lf-linux-libre-headers-3.3.8.drv-2/linux-3.3.8/arch/mips64el/Makefile'.= Stop. phase `build' failed after 2 seconds builder for `/nix/store/wka9dcpcj675k1v9ajvwplgj7398w3lf-linux-libre-header= s-3.3.8.drv' failed; keeping build directory `/tmp/nix-build-wka9dcpcj675k1= v9ajvwplgj7398w3lf-linux-libre-headers-3.3.8.drv-2' builder for `/nix/store/wka9dcpcj675k1v9ajvwplgj7398w3lf-linux-libre-header= s-3.3.8.drv' failed with exit code 1 @ build-failed /nix/store/wka9dcpcj675k1v9ajvwplgj7398w3lf-linux-libre-head= ers-3.3.8.drv /nix/store/3g9i41njf29pbhpf7cy4c7dhdn3qc2b4-linux-libre-heade= rs-3.3.8 1 builder for `/nix/store/wka9dcpcj675k1v9ajvwplgj7398w3lf-linux-l= ibre-headers-3.3.8.drv' failed with exit code 1 cannot build derivation `/nix/store/3956dgn5s315f2nkxw2mfab4vdk7bqr9-bootst= rap-tarballs-0.drv': 1 dependencies couldn't be built error: build failed: build of `/nix/store/3956dgn5s315f2nkxw2mfab4vdk7bqr9-= bootstrap-tarballs-0.drv' failed I've also attached 'linux.scm'. Nikita --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename=linux.scm Content-Transfer-Encoding: quoted-printable ;;; GNU Guix --- Functional package management for GNU ;;; Copyright =C2=A9 2012, 2013 Ludovic Court=C3=A8s ;;; Copyright =C2=A9 2012 Nikita Karetnikov ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (define-module (gnu packages linux) #:use-module (guix licenses) #:use-module (gnu packages) #:use-module ((gnu packages compression) #:renamer (symbol-prefix-proc 'guix:)) #:use-module (gnu packages flex) #:use-module (gnu packages libusb) #:use-module (gnu packages ncurses) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system gnu) #:use-module ((guix utils) #:select (%current-system))) (define-public linux-libre-headers (let* ((version* "3.3.8") (build-phase (lambda () `(lambda* (#:key system #:allow-other-keys) (let ((arch (car (string-split system #\-)))) (setenv "ARCH" (cond ((string=3D? arch "i686") "i386") ;; FIXME: The unquote below is just to ;; avoid triggering a rebuild. Remove me ;; on the next core-updates. ,@(if (string-prefix? "mips" (%current-system)) `(((string-prefix? arch "mips") "mips")) '()) (else arch))) (format #t "`ARCH' set to `~a'~%" (getenv "ARCH"))) (and (zero? (system* "make" "defconfig")) (zero? (system* "make" "mrproper" "headers_check")))))) (install-phase `(lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) (and (zero? (system* "make" (string-append "INSTALL_HDR_PATH=3D" ou= t) "headers_install")) (mkdir (string-append out "/include/config")) (call-with-output-file (string-append out "/include/config/kernel.release") (lambda (p) (format p "~a-default~%" ,version*)))))))) (package (name "linux-libre-headers") (version version*) (source (origin (method url-fetch) (uri (string-append "http://linux-libre.fsfla.org/pub/linux-libre/releases/3= .3.8-gnu/linux-libre-" version "-gnu.tar.xz")) (sha256 (base32 "0jkfh0z1s6izvdnc3njm39dhzp1cg8i06jv06izwqz9w9qsprvnl")))) (build-system gnu-build-system) (native-inputs `(("perl" ,perl))) (arguments `(#:modules ((guix build gnu-build-system) (guix build utils) (srfi srfi-1)) #:phases (alist-replace 'build ,(build-phase) (alist-replace 'install ,install-phase (alist-delete 'configure %standard-phases))) #:tests? #f)) (synopsis "GNU Linux-Libre kernel headers") (description "Headers of the Linux-Libre kernel.") (license "GPLv2") (home-page "http://www.gnu.org/software/linux-libre/")))) (define-public linux-pam (package (name "linux-pam") (version "1.1.6") (source (origin (method url-fetch) (uri (list (string-append "http://www.linux-pam.org/library/Linux-PAM= -" version ".tar.bz2") (string-append "mirror://kernel.org/linux/libs/pam/library= /Linux-PAM-" version ".tar.bz2"))) (sha256 (base32 "1hlz2kqvbjisvwyicdincq7nz897b9rrafyzccwzqiqg53b8gf5s")))) (build-system gnu-build-system) (inputs `(("flex" ,flex) ;; TODO: optional dependencies ;; ("libxcrypt" ,libxcrypt) ;; ("cracklib" ,cracklib) )) (arguments ;; XXX: Tests won't run in chroot, presumably because /etc/pam.d ;; isn't available. '(#:tests? #f)) (home-page "http://www.linux-pam.org/") (synopsis "Pluggable authentication modules for Linux") (description "A *Free* project to implement OSF's RFC 86.0. Pluggable authentication modules are small shared object files that can be used through the PAM API to perform tasks, like authenticating a user at login. Local and dynamic reconfiguration are its key features") (license bsd-3))) (define-public psmisc (package (name "psmisc") (version "22.20") (source (origin (method url-fetch) (uri (string-append "mirror://sourceforge/psmisc/psmisc/psmisc-" version ".tar.gz")) (sha256 (base32 "052mfraykmxnavpi8s78aljx8w87hyvpx8mvzsgpjsjz73i28wmi")))) (build-system gnu-build-system) (inputs `(("ncurses" ,ncurses))) (home-page "http://psmisc.sourceforge.net/") (synopsis "set of utilities that use the proc filesystem, such as fuser, killall= , and pstree") (description "This PSmisc package is a set of some small useful utilities that use the proc filesystem. We're not about changing the world, but providing the system administrator with some help in common tasks.") (license gpl2+))) (define-public util-linux (package (name "util-linux") (version "2.21") (source (origin (method url-fetch) (uri (string-append "mirror://kernel.org/linux/utils/" name "/v" version "/" name "-" version ".2" ".tar.xz")) (sha256 (base32 "1rpgghf7n0zx0cdy8hibr41wvkm2qp1yvd8ab1rxr193l1jmgcir")))) (build-system gnu-build-system) (arguments `(#:configure-flags '("--disable-use-tty-group") #:phases (alist-cons-after 'install 'patch-chkdupexe (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) (substitute* (string-append out "/bin/chkdupexe") ;; Allow 'patch-shebang' to do its work. (("@PERL@") "/bin/perl")))) %standard-phases))) (inputs `(("zlib" ,guix:zlib) ("ncurses" ,ncurses) ("perl" ,perl))) (home-page "https://www.kernel.org/pub/linux/utils/util-linux/") (synopsis "util-linux is a random collection of utilities for the Linux kernel") (description "util-linux is a random collection of utilities for the Linux kernel.") ;; Note that util-linux doesn't use the same license for all the ;; code. GPLv2+ is the default license for a code without an ;; explicitly defined license. (license (list gpl3+ gpl2+ gpl2 lgpl2.0+ bsd-4 public-domain)))) (define-public procps (package (name "procps") (version "3.2.8") (source (origin (method url-fetch) (uri (string-append "http://procps.sourceforge.net/procps-" version ".tar.gz")) (sha256 (base32 "0d8mki0q4yamnkk4533kx8mc0jd879573srxhg6r2fs3lkc6iv8i")))) (build-system gnu-build-system) (inputs `(("ncurses" ,ncurses) ("patch/make-3.82" ,(search-patch "procps-make-3.82.patch")))) (arguments '(#:patches (list (assoc-ref %build-inputs "patch/make-3.82")) #:phases (alist-replace 'configure (lambda* (#:key outputs #:allow-other-keys) ;; No `configure', just a single Makefile. (let ((out (assoc-ref outputs "out"))) (substitute* "Makefile" (("/usr/") "/") (("--(owner|group) 0") "") (("ldconfig") "true") (("^LDFLAGS[[:blank:]]*:=3D(.*)$" _ value) ;; Add libproc to the RPATH. (string-append "LDFLAGS :=3D -Wl,-rpath=3D" out "/lib" value)))) (setenv "CC" "gcc")) (alist-replace 'install (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) (and (zero? (system* "make" "install" (string-append "DESTDIR=3D" out))) ;; Sanity check. (zero? (system* (string-append out "/bin/ps") "--version"))))) %standard-phases)) ;; What did you expect? Tests? #:tests? #f)) (home-page "http://procps.sourceforge.net/") (synopsis "Utilities that give information about processes using the /proc files= ystem") (description "procps is the package that has a bunch of small useful utilities that give information about processes using the Linux /proc file system. The package includes the programs ps, top, vmstat, w, kill, free, slabtop, and skill.") (license gpl2))) (define-public usbutils (package (name "usbutils") (version "006") (source (origin (method url-fetch) (uri (string-append "mirror://kernel.org/linux/utils/usb/usbutils/" "usbutils-" version ".tar.xz")) (sha256 (base32 "03pd57vv8c6x0hgjqcbrxnzi14h8hcghmapg89p8k5zpwpkvbdfr")))) (build-system gnu-build-system) (inputs `(("libusb" ,libusb) ("pkg-config" ,pkg-config))) (home-page "http://www.linux-usb.org/") (synopsis "Tools for working with USB devices, such as lsusb") (description "Tools for working with USB devices, such as lsusb.") (license gpl2+))) --=-=-=-- --==-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJRBhHnAAoJEM+IQzI9IQ38r4UP/2CVplbrM68UY9BVpFqh/lDG x4nT3J9+/TmQDSDzOBTGeiLoCAKGv/tscyQw9o5/wWA0/ZtvJcFNrw5Eo9ApKpi/ /qI1j+cV7qbv8+pANr1Js1ADmJoLYMbHZa0ARoQr5igAt0ne3NRivypt81qI6i/6 JJAYgMyfKV37iuCFeV31mjNJT9VQbyIe85hdqU7vfJeMohxJl7vXxrOwFY3ZAQtX BHh5fU+TyBfxdXxzwdtkZHn0309SMPJhFt+3AIqcyT/vhan5bQ53ApDozXTNIniA wqUBkDmDHKtQpI2+1oxhn2ddTo8KP+MvMmsoWNlz43TNx0BaEV8ISVph9itRdJ0E aPUZ74fBzB1TF2DHRwQ5eex8ISq4igylhZrYLEDBgCcLKbXGBMSYRlMtMxTchHp/ ZV6Z01OdsfAa/sWatxhzwwK1w2zf4ge74o6jCSm0VI/sAj4z/SLVbRTzmlBMZN39 KplqiPcHXQK6SolaZGy5OaDULxuL3iDTu2I+58TEx5libIHOFudbToU1fJwl/kQQ r6cPU9rSmqn2cYvouZuL+JcvasXzUklEhpeXHOItbsePcFczZJzG1ZawVxjRcAw9 0z6C2CCuTmB4MMIqNiNQc5TEXhbAK6N7OHgVgEsOgK2NevXb9BoMateXyPHNF7nw hJhuSH3vbuUpbSvr0z7Q =+oPL -----END PGP SIGNATURE----- --==-=-=--