From: Nikita Karetnikov <nikita.karetnikov@gmail.com>
To: bug-guix@gnu.org
Subject: Re: 'build-use-chroot = true' leads to 'ERROR: In procedure system*: No such file or directory'
Date: Sun, 16 Dec 2012 18:08:16 +0300 [thread overview]
Message-ID: <CAD15K4vJmbhB4DPQabCUNqMYwRezKZ0hoCEekX8cZjX-gMScMQ@mail.gmail.com> (raw)
In-Reply-To: <87wqwn8kfc.fsf@gnu.org>
Hi,
I'm getting the same error with the following command:
# ./pre-inst-env guix-daemon --build-users-group=nixbld -C 0
> Is /bin/sh a symlink? If it is, its target has to be in one of the
> directories listed in ‘build-chroot-dirs’.
Yes. It points to bash, which is in '/bin'.
> An option is to replace /bin/sh by the statically-linked Bash that’s in
> distro/packages/bootstrap/*-linux/bash
Same error.
> Another one, which I think we’ll do, is to change gnu-build-system.scm
> to either run (system* "/path/to/our/bash" "./configure" ...), or call
> ‘patch-shebangs’ on ‘configure’.
I don't know how to change the former, but I've tried the latter.
gnu-build-system.scm:
(phases set-paths unpack patch patch-shebangs configure build check
install strip)
AFAICT, it changed the build order, but the same error appeared
anyway.
> But more importantly, /bin/sh is likely to be a dynamically-linked
> executable, linked against stuff from /lib, which is not in
> ‘build-chroot-dirs’. Thus, it won’t run in the chroot.
The following works.
nix.conf:
build-users-group = nixbld
build-use-chroot = true
build-chroot-dirs = /dev /proc /bin /lib
Does it make sense? Will it help to catch impurities?
'attr' failed with the following backtrace, but 'hello' and 'wget' succeeded.
make[1]: Leaving directory
`/tmp/nix-build-jihisz016g3yjdrfgls0zn718cz0rzxm-attr-2.4.46.drv-0/attr-2.4.46'
starting phase `check'
Backtrace:
In ice-9/boot-9.scm:
157: 12 [catch #t #<catch-closure 97f5d20> ...]
In unknown file:
?: 11 [apply-smob/1 #<catch-closure 97f5d20>]
In ice-9/boot-9.scm:
63: 10 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
414: 9 [eval # #]
In ice-9/boot-9.scm:
2131: 8 [save-module-excursion #<procedure 9799180 at
ice-9/boot-9.scm:3660:3 ()>]
3665: 7 [#<procedure 9799180 at ice-9/boot-9.scm:3660:3 ()>]
1456: 6 [%start-stack load-stack ...]
1461: 5 [#<procedure 980d8a0 ()>]
In unknown file:
?: 4 [primitive-load
"/nix/store/bkcw55gxkccqcc1kj4d56n4nhd2g3572-attr-2.4.46-guile-builder"]
In ice-9/eval.scm:
375: 3 [eval # ()]
In srfi/srfi-1.scm:
830: 2 [every1 #<procedure 998b4b0 at
/nix/store/lwfq1dnscczk8h06kyfw60svsnhf0cid-module-import/guix/build/gnu-build-system.scm:238:9
(expr)> ...]
In ice-9/eval.scm:
375: 1 [eval # #]
In unknown file:
?: 0 [system* "test/run"]
ERROR: In procedure system*:
ERROR: In procedure system*: No such file or directory
note: keeping build directory
`/tmp/nix-build-jihisz016g3yjdrfgls0zn718cz0rzxm-attr-2.4.46.drv-0'
builder for `/nix/store/jihisz016g3yjdrfgls0zn718cz0rzxm-attr-2.4.46.drv'
failed with exit code 1
@ build-failed /nix/store/jihisz016g3yjdrfgls0zn718cz0rzxm-attr-2.4.46.drv
/nix/store/zpzl9z209wnrfi4f90rq7k0lzz7q7ixy-attr-2.4.46 1 builder for
`/nix/store/jihisz016g3yjdrfgls0zn718cz0rzxm-attr-2.4.46.drv' failed
with exit code 1
error: build failed: build of
`/nix/store/jihisz016g3yjdrfgls0zn718cz0rzxm-attr-2.4.46.drv' failed
Is this a different issue?
('attr' builds fine on x86_64. [1])
Nikita
[1] http://hydra.nixos.org/job/gnu/guix-distro-master/attr-2.4.46
next prev parent reply other threads:[~2012-12-16 15:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-12 4:52 'build-use-chroot = true' leads to 'ERROR: In procedure system*: No such file or directory' Nikita Karetnikov
2012-12-12 13:33 ` Ludovic Courtès
2012-12-16 15:08 ` Nikita Karetnikov [this message]
2012-12-16 16:46 ` Ludovic Courtès
2012-12-16 19:09 ` Nikita Karetnikov
2012-12-16 21:56 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAD15K4vJmbhB4DPQabCUNqMYwRezKZ0hoCEekX8cZjX-gMScMQ@mail.gmail.com \
--to=nikita.karetnikov@gmail.com \
--cc=bug-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).