bug-guix
[Top][All Lists]
Advanced

[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: Thu, 31 Jan 2013 14:32:45 -0500

> You should actually build a statically-linked Bash, and edit
> %bootstrap-inputs to use that instead of Nixpkgs’s dynamically-linked
> Bash.

Here's what I did:

(define %bootstrap-inputs
  `(("libc" ,(nixpkgs-derivation "glibc" "mips64el-linux"))
    ("bash" "/bin/sh")
    ,@(map (lambda (name)
             (list name (nixpkgs-derivation name "mips64el-linux")))
           '("gnutar" "gzip" "bzip2" "xz" "patch"
             "coreutils" "gnused" "gnugrep"
             "gawk"                                ; used by `config.status'
             "gcc" "binutils"))))

(I used the same [1] '/bin/sh'.  Should I build another one using
different flags?)

Build failed:

(Why was it trying to use the one from the store?)

starting phase `configure'
source directory: 
"/tmp/nix-build-f60xp1qw77kkyg9pmxx7wz6pp8ndy396-make-boot0-3.82.drv-0/make-3.82"
 (relative from build: ".")
build directory: 
"/tmp/nix-build-f60xp1qw77kkyg9pmxx7wz6pp8ndy396-make-boot0-3.82.drv-0/make-3.82"
configure flags: 
("CONFIG_SHELL=/nix/store/n6nrnh7lm39qk2v9b3ij6420nlqznhi5-sh/bin/bash" 
"SHELL=/nix/store/n6nrnh7lm39qk2v9b3ij6420nlqznhi5-sh/bin/bash" 
"--prefix=/nix/store/kw0g24rxmvxzyysx8sv5v56322n3vnym-make-boot0-3.82" 
"--enable-fast-install")
Backtrace:
In ice-9/boot-9.scm:
 157: 13 [catch #t #<catch-closure 101c8540> ...]
In unknown file:
   ?: 12 [apply-smob/1 #<catch-closure 101c8540>]
In ice-9/boot-9.scm:
  63: 11 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 414: 10 [eval # #]
In ice-9/boot-9.scm:
2131: 9 [save-module-excursion #<procedure 1018f180 at ice-9/boot-9.scm:3660:3 
()>]
3665: 8 [#<procedure 1018f180 at ice-9/boot-9.scm:3660:3 ()>]
1456: 7 [%start-stack load-stack ...]
1461: 6 [#<procedure 101e1678 ()>]
In unknown file:
   ?: 5 [primitive-load 
"/nix/store/a9kjzd71ipfzcd9f536p62p7gf2bpfhd-make-boot0-3.82-guile-builder"]
In ice-9/eval.scm:
 375: 4 [eval # ()]
In srfi/srfi-1.scm:
 830: 3 [every1 #<procedure 103cbba0 at 
/nix/store/sghsw1gqw9vb89py0h0nh4vjbarz3caa-module-import/guix/build/gnu-build-system.scm:297:9
 (expr)> ...]
In 
/nix/store/sghsw1gqw9vb89py0h0nh4vjbarz3caa-module-import/guix/build/gnu-build-system.scm:
 301: 2 [#<procedure 103cbba0 at 
/nix/store/sghsw1gqw9vb89py0h0nh4vjbarz3caa-module-import/guix/build/gnu-build-system.scm:297:9
 (expr)> #]
 183: 1 [configure #:inputs (# # # # ...) #:outputs ...]
In unknown file:
   ?: 0 [system* "/nix/store/n6nrnh7lm39qk2v9b3ij6420nlqznhi5-sh/bin/bash" ...]

ERROR: In procedure system*:
ERROR: In procedure system*: Not a directory
phase `configure' failed after 1 seconds
builder for `/nix/store/f60xp1qw77kkyg9pmxx7wz6pp8ndy396-make-boot0-3.82.drv' 
failed; keeping build directory 
`/tmp/nix-build-f60xp1qw77kkyg9pmxx7wz6pp8ndy396-make-boot0-3.82.drv-0'
builder for `/nix/store/f60xp1qw77kkyg9pmxx7wz6pp8ndy396-make-boot0-3.82.drv' 
failed with exit code 1
@ build-failed /nix/store/f60xp1qw77kkyg9pmxx7wz6pp8ndy396-make-boot0-3.82.drv 
/nix/store/kw0g24rxmvxzyysx8sv5v56322n3vnym-make-boot0-3.82 1 builder for 
`/nix/store/f60xp1qw77kkyg9pmxx7wz6pp8ndy396-make-boot0-3.82.drv' failed with 
exit code 1
cannot build derivation 
`/nix/store/4shd2mi6axq07v8gfbs28ma981mnzzws-glibc-2.17.drv': 1 dependencies 
couldn't be built
cannot build derivation 
`/nix/store/dbsy0hq0fcjhz06gcb6bf7sx9am2dwqj-grep-2.14.drv': 1 dependencies 
couldn't be built
cannot build derivation 
`/nix/store/1a1hl5q4w9z06hxrk8aqxgxk9nkn2rff-linux-libre-headers-3.3.8.drv': 1 
dependencies couldn't be built
cannot build derivation 
`/nix/store/0yxsgqf4llsgnxzis2vcfy7np7q8hqdr-bootstrap-tarballs-0.drv': 1 
dependencies couldn't be built
error: build failed: build of 
`/nix/store/0yxsgqf4llsgnxzis2vcfy7np7q8hqdr-bootstrap-tarballs-0.drv' failed

Nikita

[1] https://lists.gnu.org/archive/html/bug-guix/2013-01/msg00350.html

Attachment: pgphjUkLebEbT.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]