[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Porting to mips64el
From: |
Nikita Karetnikov |
Subject: |
Re: Porting to mips64el |
Date: |
Fri, 25 Jan 2013 23:33:36 -0500 |
> "--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
pgp2YV2tXPiQP.pgp
Description: PGP signature
- Re: Porting to mips64el, (continued)
- Re: Porting to mips64el, Ludovic Courtès, 2013/01/13
- Re: Porting to mips64el, Nikita Karetnikov, 2013/01/19
- Re: Porting to mips64el, Ludovic Courtès, 2013/01/19
- Re: Porting to mips64el, Nikita Karetnikov, 2013/01/20
- Re: Porting to mips64el, Ludovic Courtès, 2013/01/20
- Re: Porting to mips64el, Nikita Karetnikov, 2013/01/22
- Re: Porting to mips64el, Nikita Karetnikov, 2013/01/23
- Re: Porting to mips64el, Ludovic Courtès, 2013/01/23
- Re: Porting to mips64el, Nikita Karetnikov, 2013/01/23
- Re: Porting to mips64el, Ludovic Courtès, 2013/01/24
- Re: Porting to mips64el,
Nikita Karetnikov <=
- Re: Porting to mips64el, Ludovic Courtès, 2013/01/26
- Re: Porting to mips64el, Nikita Karetnikov, 2013/01/27
- Re: Porting to mips64el, Ludovic Courtès, 2013/01/27
- Re: Porting to mips64el, Nikita Karetnikov, 2013/01/28
- Re: Porting to mips64el, Ludovic Courtès, 2013/01/28
- Re: Porting to mips64el, Nikita Karetnikov, 2013/01/29
- Re: Porting to mips64el, Ludovic Courtès, 2013/01/29
- Re: Porting to mips64el, Nikita Karetnikov, 2013/01/29
- Re: Porting to mips64el, Ludovic Courtès, 2013/01/29
- Re: Porting to mips64el, Nikita Karetnikov, 2013/01/29