1 |
On Sat, Nov 10, 2007 at 02:57:09PM +0100, Niko wrote: |
2 |
> |
3 |
> Hi, |
4 |
> |
5 |
> I've successfully bootstrapped on Leopard but ruby compilation explodes. |
6 |
> |
7 |
> i686-apple-darwin9-ar rcu libruby18-static.a array.o bignum.o class.o |
8 |
> compar.o dir.o dln.o enum.o error.o eval.o file.o gc |
9 |
> .o hash.o inits.o io.o marshal.o math.o numeric.o object.o pack.o parse.o |
10 |
> process.o prec.o random.o range.o re.o regex.o r |
11 |
> uby.o signal.o sprintf.o st.o string.o struct.o time.o util.o variable.o |
12 |
> version.o dmyext.o |
13 |
> i686-apple-darwin9-gcc -march=prescott -O2 -pipe -fno-strict-aliasing |
14 |
> -fno-common -pipe -fno-common -DRUBY_EXPORT -L. |
15 |
> main.o dmydln.o libruby18-static.a -lpthread -ldl -lobjc -o miniruby |
16 |
> ruby: [BUG] Segmentation fault |
17 |
> ruby 1.8.6 (2007-09-24) [i686-darwin9] |
18 |
|
19 |
That's disturbing, since it works on my machine: |
20 |
|
21 |
% ruby --version |
22 |
ruby 1.8.6 (2007-09-24 patchlevel 111) [i686-darwin9] |
23 |
|
24 |
And I just compiled it again -- still works. |
25 |
|
26 |
|
27 |
what's the output of `emerge --info`? |
28 |
|
29 |
|
30 |
-- Elias |
31 |
|
32 |
PS: if you're on a core 2 duo mac, could you add the following to your |
33 |
make.conf and try again? |
34 |
|
35 |
CFLAGS="-O2 -march=nocona -fomit-frame-pointer -pipe" |
36 |
CXXFLAGS="${CFLAGS}" |
37 |
|
38 |
that's what I have. |