all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 'linux-libre-headers': No such file or directory
@ 2013-06-25  3:39 Nikita Karetnikov
  2013-06-25  3:57 ` Nikita Karetnikov
  2013-06-25 12:10 ` Ludovic Courtès
  0 siblings, 2 replies; 4+ messages in thread
From: Nikita Karetnikov @ 2013-06-25  3:39 UTC (permalink / raw)
  To: bug-guix

[-- Attachment #1: Type: text/plain, Size: 1975 bytes --]

Can anyone reproduce the following?

starting phase `build'
`ARCH' set to `i386'
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
*** Default configuration is based on 'i386_defconfig'
#
# configuration written to .config
#
  CLEAN   scripts/basic
  CLEAN   scripts/kconfig
  CLEAN   include/config
  CLEAN   .config
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  HOSTCC  scripts/basic/fixdep
  SYSHDR  arch/x86/syscalls/../include/generated/asm/unistd_32.h
  SYSHDR  arch/x86/syscalls/../include/generated/asm/unistd_64.h
  SYSTBL  arch/x86/syscalls/../include/generated/asm/syscalls_32.h
  HOSTCC  arch/x86/tools/relocs
  HOSTCC  scripts/unifdef
  INSTALL include/asm-generic (34 files)
Can't exec "/bin/sh": No such file or directory at scripts/headers_install.pl line 48.
/tmp/nix-build-linux-libre-headers-3.3.8.drv-0/linux-3.3.8/usr/include/asm-generic/auxvec.h.tmp: No such file or directory
make[2]: *** [/tmp/nix-build-linux-libre-headers-3.3.8.drv-0/linux-3.3.8/usr/include/asm-generic/.install] Error 2
make[1]: *** [asm-generic] Error 2
make: *** [headers_install] Error 2
phase `build' failed after 9 seconds
note: keeping build directory `/tmp/nix-build-linux-libre-headers-3.3.8.drv-0'
builder for `/nix/store/w6h33rb3zm7sfivjq7w0mpfijzixc5hi-linux-libre-headers-3.3.8.drv' failed with exit code 1
@ build-failed /nix/store/w6h33rb3zm7sfivjq7w0mpfijzixc5hi-linux-libre-headers-3.3.8.drv - 1 builder for `/nix/store/w6h33rb3zm7sfivjq7w0mpfijzixc5hi-linux-libre-headers-3.3.8.drv' failed with exit code 1
cannot build derivation `/nix/store/2ga8blz57yc032mswjj2fpzp5hflkyda-ghc-bin-7.0.1.drv': 1 dependencies couldn't be built
guix build: error: build failed: build of `/nix/store/2ga8blz57yc032mswjj2fpzp5hflkyda-ghc-bin-7.0.1.drv' failed

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 'linux-libre-headers': No such file or directory
  2013-06-25  3:39 'linux-libre-headers': No such file or directory Nikita Karetnikov
@ 2013-06-25  3:57 ` Nikita Karetnikov
  2013-06-25 11:42   ` Ludovic Courtès
  2013-06-25 12:10 ` Ludovic Courtès
  1 sibling, 1 reply; 4+ messages in thread
From: Nikita Karetnikov @ 2013-06-25  3:57 UTC (permalink / raw)
  To: bug-guix

[-- Attachment #1: Type: text/plain, Size: 286 bytes --]

> Can anyone reproduce the following?

Interesting. I replaced 'guix-daemon --build-users-group=nixbld' with
'nix-worker --daemon' and was able to build 'linux-libre-headers' as
well as 'coreutils' [1].  Any ideas?

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

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 'linux-libre-headers': No such file or directory
  2013-06-25  3:57 ` Nikita Karetnikov
@ 2013-06-25 11:42   ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2013-06-25 11:42 UTC (permalink / raw)
  To: Nikita Karetnikov; +Cc: bug-guix

Nikita Karetnikov <nikita@karetnikov.org> skribis:

>> Can anyone reproduce the following?
>
> Interesting. I replaced 'guix-daemon --build-users-group=nixbld' with
> 'nix-worker --daemon' and was able to build 'linux-libre-headers' as
> well as 'coreutils' [1].  Any ideas?

It may be that nix-worker has /bin in its chroot, or doesn’t even use a
chroot (the default).

Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 'linux-libre-headers': No such file or directory
  2013-06-25  3:39 'linux-libre-headers': No such file or directory Nikita Karetnikov
  2013-06-25  3:57 ` Nikita Karetnikov
@ 2013-06-25 12:10 ` Ludovic Courtès
  1 sibling, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2013-06-25 12:10 UTC (permalink / raw)
  To: Nikita Karetnikov; +Cc: bug-guix

Nikita Karetnikov <nikita@karetnikov.org> skribis:

> Can anyone reproduce the following?

No (on x86_64).

>   INSTALL include/asm-generic (34 files)
> Can't exec "/bin/sh": No such file or directory at scripts/headers_install.pl line 48.

The line in question is:

	system $unifdef . " $tmpfile > $installdir/$file";

It could be that:

  1. Perl’s ‘system’ function uses /bin/sh;
  2. Perl’s ‘system’ uses libc’s ‘system’, which uses /bin/sh.

In both cases, all architectures would be affected.

To test these hypotheses, I tried this:

  echo 'system("ls > foo");' | \
  strace -f -e execve /nix/store/lmpna53jc7mf9i4xjy9i45x6c8qznw94-perl-5.16.1/bin/perl

This shows that Perl invokes the shell produced by
(@ (gnu packages base) bash-final):

  [pid 30223] execve("/nix/store/zch43a56qdchdw0xm3lwpr8ydg8ksx25-bash-4.2/bin/sh", ["sh", "-c", "ls > foo"], [/* 72 vars */]) = 0
  Process 30224 attached
  [pid 30224] execve("/home/ludo/.guix-profile/bin/ls", ["ls"], [/* 70 vars */]) = 0

So I’m really clueless.


In the build log of linux-libre-headers, you should see something like:

  patch-shebang: ./scripts/headers_install.pl: changing `/usr/bin/perl' to `/nix/store/9nbvnlhr0glvwrg7bllz965g24snmgmn-perl-5.16.1/bin/perl'

Is it the case?

Any idea what changed in your setup lately (you used to build things
fine, IIUC)?

If you have Nix around, you can also try ‘nix-store --verify’ to check
if the store has been tampered with (which could easily happen if you
run everything as root).

HTH,
Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-06-25 12:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-25  3:39 'linux-libre-headers': No such file or directory Nikita Karetnikov
2013-06-25  3:57 ` Nikita Karetnikov
2013-06-25 11:42   ` Ludovic Courtès
2013-06-25 12:10 ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.