Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 168130 - USE=-threads emerge dev-lang/ruby fails with glibc-2.3
Summary: USE=-threads emerge dev-lang/ruby fails with glibc-2.3
Status: RESOLVED DUPLICATE of bug 161566
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: HPPA Linux
: High normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on: 168131
Blocks:
  Show dependency tree
 
Reported: 2007-02-23 13:49 UTC by Jeroen Roovers (RETIRED)
Modified: 2007-10-29 07:22 UTC (History)
1 user (show)

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 Jeroen Roovers (RETIRED) gentoo-dev 2007-02-23 13:49:45 UTC
Problem:   `USE=-threads emerge dev-lang/ruby` fails on any HPPA system (probably any system with sys-libs/glibc-2.3). See bug #161566 for a few examples, and attachment #111003 [details] for a build log of the exact failure.

14:31:36 @<GMsoft> [ebuild   R   ] dev-lang/ruby-1.8.5_p2  USE="ipv6 -cjk
                   -debug -doc -examples -socks5 -threads -tk" 0 kB
14:31:59 @<GMsoft> [ebuild   R   ] dev-ruby/rubygems-0.9.0-r2  0 kB

That is a PARISC system with glibc-2.5. No problem there, although it fails the same 4 tests that any x86 fails.

Solution I:   Set USE=threads.
Solution II:  Wait for glibc-2.5 to be ready for HPPA.
Comment 1 Xavier Neys (RETIRED) gentoo-dev 2007-02-23 14:22:28 UTC
(In reply to comment #0)
 
> Solution I:   Set USE=threads.
It compiles OK therefore it works, or maybe not.
Does that really solve the problem or does it bury it deeper?

> Solution II:  Wait for glibc-2.5 to be ready for HPPA.
And until then?

Solution III: p.mask autoconf-2.61 until >=glibc-2.4 is stable on hppa, just like hardened did.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2007-02-23 14:32:36 UTC
> Solution III: p.mask autoconf-2.61 until >=glibc-2.4 is stable on hppa, just
> like hardened did.

All HPPA users are autoconf-2.61 users, but not all HPPA users are ruby users, so there is no reason to have *all* HPPA users downgrade. Downgrading is evil.

HPPA users can easily get a (partly?) working ruby by setting USE=threads for dev-lang/ruby:

# echo "dev-lang/ruby threads" >> /etc/portage/package.use
Comment 3 Xavier Neys (RETIRED) gentoo-dev 2007-02-23 15:30:00 UTC
Downgrading is evil, but willingly leaving bugs is not. Go figure.
Quite fortunately, we run www.g.o on hardened/x86 and not hppa.
Good bye.

In case anyone who wonders why ruby does not build on a default config stable Gentoo/hppa box, finds this bug:

# echo =sys-devel/autoconf-2.61 >> /etc/portage/package.mask
# emerge autoconf ruby
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2007-05-15 21:55:39 UTC
glibc-2.5 is stable for HPPA. Same 4 tests as on x86 fail. Have a nice day. :)

(Reassigning bug properly in case more arches join.)
Comment 5 Eduardo Tongson 2007-09-06 10:32:01 UTC
Apparently Ruby is slower when built with pthreads support.
<http://groups.google.de/group/ruby-talk-google/msg/062070e6fa71d699>
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-10-29 07:22:44 UTC

*** This bug has been marked as a duplicate of bug 161566 ***