Gentoo Archives: gentoo-alt

From: Nils Ohlmeier <nils@×××××××.net>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] Installation workaround for findutils on Mac OS X
Date: Mon, 31 Mar 2008 17:42:18
Message-Id: 47F1226D.4040901@rfc3261.net
In Reply to: Re: [gentoo-alt] Installation workaround for findutils on Mac OS X by Fabian Groffen
1 Fabian Groffen schrieb:
2 > On 30-03-2008 18:31:20 +0200, Nils Ohlmeier wrote:
3 >> Hello,
4 >>
5 >> I just wanted to share my installation experience of Gentoo Prefix on Mac
6 >> OS X 10.5.2 (with iPod SDK installed - not sure if that makes a
7 >> difference).
8 >
9 > Can you run /usr/bin/gcc --version and post the output, please?
10
11 $ /usr/bin/gcc --version
12 i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5478)
13
14 Alternatively I have also a gcc-4.2 available:
15 i686-apple-darwin9-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5555)
16
17 But compiler produced exactly the same error. No wonder as the linker
18 had the issue ;-)
19
20 >> I followed this instructions
21 >> http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-macos.xml
22 >>
23 >> I had no issue with the step './bootstrap-prefix.sh $EPREFIX/tmp findutils'
24 >> but later on the linking failed at the 'emerge --oneshot findutils' step.
25 >> The linker bailed out a signal 10 (bus error) and complained about missing
26 >> symbol '_strrchr'.
27 >> I looked around and it turned out that all current versions in the portage
28 >> tree from 4.2.32 to 4.3.13 had the same issue. Further digging showed that
29 >> the problem was actually the gnulib contained in the findutils.
30 >> Particularly fts.c and progname.c are the only files which contain a call
31 >> to strrchr().
32 >> It turned out that I only could successfully bootstrap the findutils in the
33 >> first step, because that step fetches findutils 4.2.31. And this old
34 >> version of the findutils contains an old version of the gnulib which does
35 >> not contain fts.c or progname.c.
36 >> Thus I created an ebuild for findutils-4.2.31 by hand and emerge that with
37 >> 'emerge --oneshot =findutils-4.2.31'. After that I was able to finish the
38 >> Gentoo Prefix bootstrap. And after the 'emerge --sync' the upgrade to
39 >> findutils-4.4.0 went smooth.
40 >
41 > Looks like the compiler/linker installed by prefix is less buggy than
42 > what's on your system now. At least that's a good thing ;)
43
44 At least the installed macport was not the problem (that did not made
45 any difference) ;-)
46
47 Greetings
48 Nils
49 --
50 gentoo-alt@l.g.o mailing list