Gentoo Archives: gentoo-catalyst

From: Matt Turner <mattst88@g.o>
To: gentoo-catalyst@l.g.o
Cc: mips@g.o
Subject: Re: [gentoo-catalyst] chroot: failed to run command `/tmp/stage1-preclean-chroot.sh': No such file or directory
Date: Mon, 15 Nov 2010 17:09:17
Message-Id: AANLkTin=ZPt2p7_ERsKvmPpU6VSPVe9oDq+dQ+UnpkY4@mail.gmail.com
In Reply to: Re: [gentoo-catalyst] chroot: failed to run command `/tmp/stage1-preclean-chroot.sh': No such file or directory by Peter Stuge
1 On Mon, Nov 15, 2010 at 11:39 AM, Peter Stuge <peter@×××××.se> wrote:
2 > Matt Turner wrote:
3 >> >> chroot: failed to run command `/tmp/stage1-preclean-chroot.sh': No such file or directory
4 >> >
5 >> > Can you check with strace which file it is that is actually missing?
6 >>
7 >> Yes, good idea.
8 >>
9 >> bcm91250a-be space # strace -o output.strace chroot
10 >> /space/catalyst/tmp/default/stage1-mips4_n32-20101114/tmp/stage1root/
11 >> /bin/bash
12 >> chroot: failed to run command `/bin/bash': No such file or directory
13 >>
14 >> It actually reports
15 >> execve("/bin/bash", ["/bin/bash"], [/* 27 vars */]) = -1 ENOENT (No
16 >> such file or directory)
17 >>
18 >> But what the heck?
19 >
20 > ldd /space/catalyst/tmp/default/stage1-mips4_n32-20101114/tmp/stage1root/bin/bash
21 >
22 > ?
23 > //Peter
24
25 bcm91250a-be space # ldd
26 /space/catalyst/tmp/default/stage1-mips4_n32-20101114/tmp/stage1root/bin/bash
27 libncurses.so.5 => /lib/libncurses.so.5 (0x2b5da000)
28 libdl.so.2 => /lib/libdl.so.2 (0x2b630000)
29 libc.so.6 => /lib/libc.so.6 (0x2b644000)
30 /lib32/ld.so.1 (0x2b5aa000)
31
32 All these files exist and appear valid except /lib32/ld.so.1. /lib32
33 is supposed to be a symlink to /lib, but for whatever reason it wasn't
34 in my seed stage. I think this is definitely the problem. I'll report
35 back with confirmation.
36
37 Thanks Peter!
38
39 Matt

Replies