1 |
I am curious to know if anyone has had any odd issues with using Gentoo's |
2 |
releng tool, catalyst, to build Uclibc-based stages before. |
3 |
|
4 |
I was attempting to resurrect MIPS-III, big-endian stages once more using an |
5 |
old ~2012 mips3 seed stage that Anthony Basile put together a while back. I |
6 |
started by manually updating the seed to be current (sans ncurses-6.x), and |
7 |
that all worked out fine. I then fed that seed stage into Catalyst to build a |
8 |
new stage1, and that also worked fine. |
9 |
|
10 |
But when I went to run the stage2 spec, it failed due to bash generating a |
11 |
segfault via an attempted NULL pointer dereference. So I manually tested by |
12 |
attempting to chroot into the /tmp/stage1root directly, and that's also |
13 |
segfaulting. I can run other executables within the stage1root via chroot |
14 |
directly, but it appears that anything linked to ncurses is triggering a segfault. |
15 |
|
16 |
The original stages were built with gcc-5.3, so I fell back to gcc-4.8.5, but |
17 |
the segfaults are still happening. I forced the stage1root to upgrade to |
18 |
ncurses-6.0, but that isn't working either. I manually remerged bash by |
19 |
setting ROOT="/tmp/stage1root", but it's linking against /lib/libncurses.so.5 |
20 |
from the seed root instead of /lib/libncurses.so.6 in the stage1root. |
21 |
|
22 |
Not sure how to work around this. Everything in the seed root works fine. If |
23 |
I manually merge select packages into a different $ROOT (uclibc, ncurses, bash, |
24 |
readline, libiconv), then copy libgcc_s.so into $ROOT/lib manually, I can |
25 |
execute bash there just fine. So part of the problem may also be in how |
26 |
catalyst's stage1 script is merging the packages into $ROOT. |
27 |
|
28 |
Thoughts? |
29 |
|
30 |
-- |
31 |
Joshua Kinard |
32 |
Gentoo/MIPS |
33 |
kumba@g.o |
34 |
6144R/F5C6C943 2015-04-27 |
35 |
177C 1972 1FB8 F254 BAD0 3E72 5C63 F4E3 F5C6 C943 |
36 |
|
37 |
"The past tempts us, the present confuses us, the future frightens us. And our |
38 |
lives slip away, moment by moment, lost in that vast, terrible in-between." |
39 |
|
40 |
--Emperor Turhan, Centauri Republic |