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