Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8025 - ruby compilation segfaults
Summary: ruby compilation segfaults
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Low trivial (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-17 07:35 UTC by Christian Loitsch
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Loitsch 2002-09-17 07:35:00 UTC
I don't know if this counts as bug, but as everything else compiled without
problems (and I read about removing too agressif flags) here it is:

when using the following C(XX)FLAGS ruby won't compile:
CFLAGS="-march=pentium-mmx -mcpu=pentium-mmx -O3 -pipe -fforce-addr
-fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt
-falign-functions=4"

I had problems installing ruby afterwords, but I think that the problem was the
existing /var/tmp/portage/ruby* tree.

Can't really remember everything I tried, but I finally was able to compile it,
after deleting /var/tmp/portage/ruby* and setting C(XX)FLAGS to:
"-march=pentium-mmx -mcpu=pentium-mmx -O3 -pipe"

system ist 1.3 (1.4?)

sys-devel/gcc
      Latest version available: 3.2-r1
      Latest version installed: 3.2-r1
Comment 1 Brad Cowan (RETIRED) gentoo-dev 2002-09-17 07:48:28 UTC
You will probably run into problems with other packages later in your gentoo
experience with such aggressive flags :)
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-09-26 10:58:05 UTC
Your flags are too aggressive. We cannot start filtering out all flags that may
cause the ruby ebuild to fail at this stage.

We may end up later doing a more formal, structured optimisation flag testing of
all packages, but that's still a long way off. 

In the interim, be advised that aggressive optimisation flags may be hazardous
to your health and no warranty is implied, etc, etc ;P