From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikita Karetnikov Subject: Re: Porting to mips64el Date: Fri, 25 Jan 2013 23:33:36 -0500 Message-ID: <87zjzwv9z9.fsf@karetnikov.org> References: <8738yvnslh.fsf@karetnikov.org> <87y5g2kp8s.fsf@gnu.org> <87d2xc4azh.fsf@karetnikov.org> <87a9sfc0hq.fsf@gnu.org> <87r4lrpf0n.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> 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]:57253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyxSS-0001BF-HS for bug-guix@gnu.org; Fri, 25 Jan 2013 23:33:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TyxSQ-0007ho-3g for bug-guix@gnu.org; Fri, 25 Jan 2013 23:33:36 -0500 In-Reply-To: <87ham6o9rb.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 --=-=-= > "--disable-shared" "LDFLAGS=-static" Bash doesn't have '--disable-shared'. I used these commands: # export LDFLAGS=-static # ./configure --without-bash-malloc \ --disable-readline \ --disable-history \ --disable-help-builtin \ --disable-progcomp \ --disable-net-redirections \ --disable-nls There were some errors during 'make': ./builtins/libbuiltins.a(enable.o): In function `dyn_load_builtin': /home/bash/bash-4.2/builtins/./enable.def:307: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking ./lib/tilde/libtilde.a(tilde.o): In function `tilde_expand_word': /home/bash/bash-4.2/lib/tilde/tilde.c:374: warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking shell.o: In function `get_current_user_info': /home/bash/bash-4.2/shell.c:1641: warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /home/bash/bash-4.2/shell.c:1657: warning: Using 'endpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking I installed Bash and replaced '/bin/sh'. Then I adjusted '/usr/local/etc/nix/nix.conf': build-users-group = nixbld build-use-chroot = true build-chroot-dirs = /dev /proc /bin And ran the following command: # ./pre-inst-env guix-build -K \ -e '(@ (gnu packages make-bootstrap) %bootstrap-tarballs)' \ --system=mips64el-linux Unfortunately, it failed: starting phase `build' `ARCH' set to `mips64el' Makefile:484: /tmp/nix-build-xww122kbc08qcyaika8pf03x273rvph7-linux-libre-headers-3.3.8.drv-0/linux-3.3.8/arch/mips64el/Makefile: No such file or directory make: *** No rule to make target `/tmp/nix-build-xww122kbc08qcyaika8pf03x273rvph7-linux-libre-headers-3.3.8.drv-0/linux-3.3.8/arch/mips64el/Makefile'. Stop. phase `build' failed after 1 seconds builder for `/nix/store/xww122kbc08qcyaika8pf03x273rvph7-linux-libre-headers-3.3.8.drv' failed; keeping build directory `/tmp/nix-build-xww122kbc08qcyaika8pf03x273rvph7-linux-libre-headers-3.3.8.drv-0' builder for `/nix/store/xww122kbc08qcyaika8pf03x273rvph7-linux-libre-headers-3.3.8.drv' failed with exit code 1 @ build-failed /nix/store/xww122kbc08qcyaika8pf03x273rvph7-linux-libre-headers-3.3.8.drv /nix/store/nxi3p21h7vgkra3dbbisafph0dimzsva-linux-libre-headers-3.3.8 1 builder for `/nix/store/xww122kbc08qcyaika8pf03x273rvph7-linux-libre-headers-3.3.8.drv' failed with exit code 1 cannot build derivation `/nix/store/qsivfcrjlnsxrn5vs4xv3zsh4djbl9li-bootstrap-tarballs-0.drv': 1 dependencies couldn't be built error: build failed: build of `/nix/store/qsivfcrjlnsxrn5vs4xv3zsh4djbl9li-bootstrap-tarballs-0.drv' failed I guess that I should adjust the recipe like this: (setenv "ARCH" (cond ((string=? arch "i686") "i386") ((string=? arch "mips64el") "mips") (else arch))) (There is 'linux-3.3.8/arch/mips/Makefile'.) Will this work? By the way, my local repo is a bit outdated. Should I update it? Nikita --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJRA1y+AAoJEM+IQzI9IQ3888kP+QEjPAvIM2LzjvLozJSEW41v N4PTz81OrvEis0Hh5Jdyq6ckw03NErNlGaf6gq2otlP4bnsq4Z88KCKUrNFcv99o C64oucgr5lFnr2AxCEB9yEZ2l3xhhHVA/7obJnQX+JdUzHi607pqFcQoSGJju/yy X9gxtn3T2ITXMfOgZUhNud8HCOA3hqwquBaceUg4IaZVdEaAHu8wCmTdf2k10f8a Ejff+NMcusMsj80A4cEmzu27F2Vq0pGVy8tpjmZdBeue1h5LdzYdQPOrVShPQoI3 mPNaxG46bNH5K+oFPkTCPEtfsTgkb2JfE4anI3ynDhwY/UUBUkByccLg4SNeWCwW h3zvMzQz8dmqPX2ZmiiRf18MnH3Oae2ooP0WnyNQBq2WRDhBvdVw0hQWJnfBi2sg Oi+VuEaOsVvc48cCOinWbKLGpKV+fdQoypMM4onm9fBWZdArJMRvOa9bo+7u58Yr ub5oLmE+EGPjA//KB2jvWcEYepVNRmo6UmCmH/T5zK73pylKc8DqxvctqvlLGj+7 6FGohRSJy/aYt0Y3Iw8KD5aKBAZNqZq16FtLDRKMHDkrv5hi4xuocZKafPBjO/Ry uCfKlVyh+4uqcQqxjC6suSEyb6Q6rtbhdpQmJYhctpIIUgdfVibZ0Z0/twtaC035 AaHcDciSDdmILg5v4dOL =eqcf -----END PGP SIGNATURE----- --=-=-=--