Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77171 - Could there be a NPTL-enabled emul-linux-x86-glibc package ?
Summary: Could there be a NPTL-enabled emul-linux-x86-glibc package ?
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High enhancement (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-08 14:38 UTC by jack_mort
Modified: 2005-04-19 05:34 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 jack_mort 2005-01-08 14:38:20 UTC
If you try to run cedega under amd64 with emul libraries, it claims : "Your system requires the use of pthreads but the maximum system allowed stack size of 2052 kB may be too small for some games.
If you experience problems, try rerunning with "-use-pthreads no" which may help."
After searching a bit, this error is throwed because glibc was not compiled with NPTL... And for Cedega, glibc is provided by emul-linux-x86-glibc... which hasn't NPTL enabled :

jackmort@gentoo ~ $ /lib32/libc.so.6 
GNU C Library 20040808 release version 2.3.4, by Roland McGrath et al.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.4.1 20040803 (Gentoo Linux 3.4.1-r2, ssp-3.4-2, pie-8.7.6.5).
Compiled on a Linux 2.4.22 system on 2004-08-16.
Available extensions:
	GNU libio by Per Bothner
	crypt add-on version 2.1 by Michael Glad and others
	linuxthreads-0.10 by Xavier Leroy
	BIND-8.2.3-T5B
	libthread_db work sponsored by Alpha Processor Inc
	NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
jackmort@gentoo ~ $ 

So could it be possible to get an updated (or another) version with NPTL ?


Reproducible: Always
Steps to Reproduce:
Comment 1 Brendan Rankin 2005-01-16 21:22:46 UTC
Right.  I guess that glibc is *supposed* to be doing this, but I'll be damned if I can get it to build, correctly.

From what I read, in the emul-linux-x86-glibc-1000 ebuild, glibc should be providing what the emul-linux-* package did.  Unfortunately, I can't get glibc to build the necessary 32-bit stuff.

What USE/FEATUREs do I need to have enabled in order to get this to work?

In the meantime, I've got the emul-linux-x86-glibc-1000 version masked.  I presume that someone is trying to get this to work!

Cheers,

- slackerman
Comment 2 Brendan Rankin 2005-01-17 00:37:00 UTC
One further comment.... if you switch your make.profile link to /usr/portage/profiles/default-linux/amd64/2005.0, 
you should be able to compile an NPTL version of glibc for *both* amd64 and x86.

Keep in mind that you need to have the emul-linux-x86-glibc-1.1 installed... (Do NOT unmerge it before trying to build glibc!)

Ok... just finished the emerge.  Everything appears to work just fine, and, at least, it *looks* like the 32-bit apps (OpenOffice and firefox-bin) load a bit faster...

Cheers,

- Brendan

Comment 3 jack_mort 2005-01-23 01:49:48 UTC
Thnaks ! After some problems getting 2005.0 up and running, 32bits glibc is now NPTL !
Comment 4 Greg Furstenwerth 2005-03-04 12:34:50 UTC
I was testing with emul-linux-x86-glibc-2.3.4.20041102.ebuild and pthreads test in  point2play works but cedega segfaults.

Just a heads up.
Comment 5 Simon Stelling (RETIRED) gentoo-dev 2005-04-19 05:34:30 UTC
as comment 2 already says: glibc also builds 32bit libs in 2005.0