bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

'core-updates': FAIL: 'tests/builders.scm'


From: Nikita Karetnikov
Subject: 'core-updates': FAIL: 'tests/builders.scm'
Date: Wed, 10 Apr 2013 23:30:47 +0400

'tests/builders.scm' fails in the 'core-updates' branch.

"Most likely my search path commit broke something." [1]

So I tried:

# git pull && git reset --hard 5cfdb4bcac145abb4f6ce29aaf8fd46504e9e0a9
HEAD is now at 5cfdb4b build: Pass the appropriate flags when building 
`libstore.a'.

'make check' didn't return any errors.

Then:

# git pull && git reset --hard a18eda2747fa2eb962e3288066d2b1a679589ed3
HEAD is now at a18eda2 packages: Add `native-search-paths' field and honor it.

'make check' returned:

FAIL: tests/builders.scm

# ./pre-inst-env guile
scheme@(guile-user)> ,use (tests builders)

[...]

checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... configure: error: in 
`/tmp/nix-build-hello-2.8.drv-1/hello-2.8':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
phase `configure' failed after 2 seconds
builder for `/nix/store/mxylnlpghy5sg3qx0hg09z8qhxwglqw8-hello-2.8.drv' failed 
with exit code 1
@ build-failed /nix/store/mxylnlpghy5sg3qx0hg09z8qhxwglqw8-hello-2.8.drv 
/nix/store/px9bh5a8w027aagacprkqlmcgz4hsxay-hello-2.8 1 builder for 
`/nix/store/mxylnlpghy5sg3qx0hg09z8qhxwglqw8-hello-2.8.drv' failed with exit 
code 1

[...]

FAIL gnu-build
# of expected passes      2
# of unexpected failures  1

I tried to investigate.  Here is what I got with
5cfdb4bcac145abb4f6ce29aaf8fd46504e9e0a9:

scheme@(guile-user)> (define tarball
  (url-fetch %store url 'sha256 hash
                         #:guile %bootstrap-guile))

scheme@(guile-user)> tarball
$1 = "/nix/store/nvksdc1z4gcabwyv0zb497pdypryan1d-hello-2.8.tar.gz.drv"

(define build (gnu-build %store "hello-2.8" tarball
                                                 %bootstrap-inputs
                                                 #:implicit-inputs? #f
                                                 #:guile %bootstrap-guile))

scheme@(guile-user)> build
$2 = "/nix/store/1rahaszl67nk59h14ylninrxxnm024dm-hello-2.8.drv"

scheme@(guile-user)> (define out (derivation-path->output-path build))

scheme@(guile-user)> out
$3 = "/nix/store/04k5ns4nqb6vbaf721zk2q4ha0znzwr2-hello-2.8"

scheme@(guile-user)> (build-derivations %store (list (pk 'hello-drv build)))

[...]

$4 = #t

(valid-path? %store out)
$5 = #t

(file-exists? (string-append out "/bin/hello"))
$6 = #t

And with 068cdcd07c59ab8228c7c5580f6fd162069e3999:

scheme@(guile-user)> tarball
$2 = "/nix/store/4sarkvs3g23p3yhzlc3sy224mgm9m586-hello-2.8.tar.gz.drv"

scheme@(guile-user)> build
$3 = "/nix/store/kknswgrq8cp9npp4clh8vjix108plbsh-hello-2.8.drv"

scheme@(guile-user)> out
$5 = "/nix/store/px9bh5a8w027aagacprkqlmcgz4hsxay-hello-2.8"

Then:

(build-derivations %store (list (pk 'hello-drv build)))

[...]

checking whether we are cross compiling... configure: error: in 
`/tmp/nix-build-hello-2.8.drv-1/hello-2.8':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
phase `configure' failed after 1 seconds
builder for `/nix/store/kknswgrq8cp9npp4clh8vjix108plbsh-hello-2.8.drv' failed 
with exit code 1
guix/store.scm:616:0: In procedure build-derivations:
guix/store.scm:616:0: Throw to key `srfi-34' with args `(#<condition 
&nix-protocol-error [message: "build of 
`/nix/store/kknswgrq8cp9npp4clh8vjix108plbsh-hello-2.8.drv' failed" status: 
100] a2ad228>)'.

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user) [1]> 

scheme@(guile-user)> (valid-path? %store out)
$4 = #f

scheme@(guile-user)> (file-exists? (string-append out "/bin/hello"))
$6 = #f

Note that I was able to build 'hello' via 'guix build'.

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

Attachment: pgpfqdHMdgZkx.pgp
Description: PGP signature


reply via email to

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