* 'core-updates': FAIL: 'tests/builders.scm'
@ 2013-04-10 19:30 Nikita Karetnikov
2013-04-11 20:57 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Nikita Karetnikov @ 2013-04-10 19:30 UTC (permalink / raw)
To: bug-guix
[-- Attachment #1: Type: text/plain, Size: 3773 bytes --]
'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 #2: Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 'core-updates': FAIL: 'tests/builders.scm'
2013-04-10 19:30 'core-updates': FAIL: 'tests/builders.scm' Nikita Karetnikov
@ 2013-04-11 20:57 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2013-04-11 20:57 UTC (permalink / raw)
To: Nikita Karetnikov; +Cc: bug-guix
Nikita Karetnikov <nikita@karetnikov.org> skribis:
> 'tests/builders.scm' fails in the 'core-updates' branch.
>
> "Most likely my search path commit broke something." [1]
Who wrote that? :-)
[...]
> 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
‘config.log’ says:
--8<---------------cut here---------------start------------->8---
configure:3908: gcc -o conftest conftest.c >&5
conftest.c:11:19: fatal error: stdio.h: No such file or directory
--8<---------------cut here---------------end--------------->8---
... which means ‘CPATH’ is not set.
Fixed in 7a88ad6, thanks!
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-04-11 20:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-10 19:30 'core-updates': FAIL: 'tests/builders.scm' Nikita Karetnikov
2013-04-11 20:57 ` Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).