From: ludo@gnu.org (Ludovic Courtès)
To: Nikita Karetnikov <nikita@karetnikov.org>
Cc: bug-guix@gnu.org
Subject: Re: 'linux-libre-headers': No such file or directory
Date: Tue, 25 Jun 2013 14:10:00 +0200 [thread overview]
Message-ID: <87k3lipf1j.fsf@gnu.org> (raw)
In-Reply-To: <87hagm6epx.fsf@karetnikov.org> (Nikita Karetnikov's message of "Tue, 25 Jun 2013 07:39:38 +0400")
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’.
prev parent reply other threads:[~2013-06-25 12:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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=87k3lipf1j.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=bug-guix@gnu.org \
--cc=nikita@karetnikov.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).