1 |
At the end of my stage1 build, I get (sorry for gmail's linewraps) |
2 |
|
3 |
""" |
4 |
removing /space/catalyst/tmp/default/stage1-mips4_n32-20101114/tmp/chroot-functions.sh |
5 |
from the chroot |
6 |
--- Running action sequence: preclean |
7 |
copying stage1-preclean-chroot.sh to |
8 |
/space/catalyst/tmp/default/stage1-mips4_n32-20101114/tmp/stage1root/tmp/ |
9 |
copying chroot-functions.sh to |
10 |
/space/catalyst/tmp/default/stage1-mips4_n32-20101114/tmp/stage1root/tmp/ |
11 |
Running stage1-preclean-chroot.sh in chroot |
12 |
/space/catalyst/tmp/default/stage1-mips4_n32-20101114/tmp/stage1root |
13 |
chroot: failed to run command `/tmp/stage1-preclean-chroot.sh': No |
14 |
such file or directory |
15 |
|
16 |
!!! catalyst: preclean script failed. |
17 |
|
18 |
|
19 |
Traceback (most recent call last): |
20 |
File "modules/generic_stage_target.py", line 1167, in preclean |
21 |
" preclean","preclean script failed.",env=self.env) |
22 |
File "/usr/lib/catalyst/modules/catalyst_support.py", line 542, in cmd |
23 |
raise CatalystError,myexc |
24 |
CatalystError |
25 |
None |
26 |
|
27 |
!!! catalyst: Build failed, could not execute preclean |
28 |
|
29 |
Traceback (most recent call last): |
30 |
File "/usr/lib/catalyst/catalyst", line 209, in build_target |
31 |
mytarget.run() |
32 |
File "modules/generic_stage_target.py", line 1263, in run |
33 |
apply(getattr(self,x)) |
34 |
File "modules/generic_stage_target.py", line 1172, in preclean |
35 |
raise CatalystError, "Build failed, could not execute preclean" |
36 |
CatalystError |
37 |
!!! catalyst: Error encountered during run of target stage1 |
38 |
Catalyst aborting.... |
39 |
""" |
40 |
|
41 |
But the /tmp/stage1-preclean-chroot.sh _is_ there, with proper permissions, etc. |
42 |
|
43 |
bcm91250a-be space # ls -lh |
44 |
catalyst/tmp/default/stage1-mips4_n32-20101114/tmp/stage1root/tmp/stage1-preclean-chroot.sh |
45 |
-rwxr-xr-x 1 root root 435 Nov 4 09:23 |
46 |
catalyst/tmp/default/stage1-mips4_n32-20101114/tmp/stage1root/tmp/stage1-preclean-chroot.sh |
47 |
|
48 |
So I tried chrooting into the stage1root: |
49 |
|
50 |
bcm91250a-be space # chroot |
51 |
catalyst/tmp/default/stage1-mips4_n32-20101114/tmp/stage1root/ |
52 |
/bin/bash |
53 |
chroot: failed to run command `/bin/bash': No such file or directory |
54 |
|
55 |
But bash _is_ there, and does work. (=sys-apps/bash-4.1_p9) |
56 |
|
57 |
bcm91250a-be space # |
58 |
catalyst/tmp/default/stage1-mips4_n32-20101114/tmp/stage1root/bin/bash |
59 |
--version |
60 |
GNU bash, version 4.1.9(2)-release (mips64-unknown-linux-gnu) |
61 |
Copyright (C) 2009 Free Software Foundation, Inc. |
62 |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> |
63 |
|
64 |
This is free software; you are free to change and redistribute it. |
65 |
There is NO WARRANTY, to the extent permitted by law. |
66 |
|
67 |
glibc is (=sys-libs/glibc-2.11.2-r3): |
68 |
|
69 |
bcm91250a-be space # |
70 |
/space/catalyst/tmp/default/stage1-mips4_n32-20101114/tmp/stage1root/lib/libc.so.6 |
71 |
GNU C Library stable release version 2.11.2, by Roland McGrath et al. |
72 |
Copyright (C) 2009 Free Software Foundation, Inc. |
73 |
This is free software; see the source for copying conditions. |
74 |
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A |
75 |
PARTICULAR PURPOSE. |
76 |
Compiled by GNU CC version 4.5.1. |
77 |
Compiled on a Linux 2.6.35 system on 2010-11-14. |
78 |
Available extensions: |
79 |
C stubs add-on version 2.1.2 |
80 |
crypt add-on version 2.1 by Michael Glad and others |
81 |
Gentoo patchset 6 |
82 |
GNU Libidn by Simon Josefsson |
83 |
Native POSIX Threads Library by Ulrich Drepper et al |
84 |
Support for some architectures added on, not maintained in glibc core. |
85 |
BIND-8.2.3-T5B |
86 |
For bug reporting instructions, please see: |
87 |
<http://www.gnu.org/software/libc/bugs.html>. |
88 |
|
89 |
So there must be some strange problem with glibc and bash. How can I |
90 |
figure out what's causing this? |
91 |
|
92 |
Thanks, |
93 |
Matt |