Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106556 - nptl supported for i386 CHOSTs ? (answer is no, not yet, probably never)
Summary: nptl supported for i386 CHOSTs ? (answer is no, not yet, probably never)
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 135203 140177 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-19 11:36 UTC by Chris Slycord
Modified: 2006-07-12 23:57 UTC (History)
3 users (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 Chris Slycord 2005-09-19 11:36:00 UTC
When building glibc with CHOST="i386-pc-linux-gnu" and nptl, it was built 
with "--without-tls" and and assumed the user was using a 2.4-branch kernel.

When building glibc with CHOST="i686-pc-linux-gnu" and nptl, it was built 
with "--with-tls" and and assumed the user was using a 2.6-branch kernel.

Reproducible: Always
Steps to Reproduce:
1. Set USE="nptl"
2. Set CHOST="i386-pc-linux-gnu"
3. emerge glibc
4. Look at output of configure
5. Set CHOST="i686-pc-linux-gnu"
6. emerge glibc
7. Look at output of configure
Actual Results:  
When building glibc with CHOST="i386-pc-linux-gnu" and nptl, it was built 
without tls support and and assumed the user was using a 2.4-branch kernel.

When building glibc with CHOST="i686-pc-linux-gnu" and nptl, it was built with 
tls support and and assumed the user was using a 2.6-branch kernel.

Expected Results:  
According to discussion in http://bugs.gentoo.org/show_bug.cgi?id=88777 
changing CHOST to a different subarch should change nothing other than the 
location of the toolchain files and not change how the toolchain itself is 
built.
Comment 1 SpanKY gentoo-dev 2005-09-19 20:08:44 UTC
i dont see the bug, behavior described is correct
Comment 2 Chris Slycord 2005-09-19 22:57:38 UTC
That makes no sense whatsoever.

If someone ran with CHOST="i386-pc-linux-gnu" and also ran a 2.6-kernel, glibc
would be built for a 2.4-kernel because of the explicit assumption used in the
configuration of glibc.

Furthermore, why in the world would tls support be removed if all you did was
change the CHOST?

Also, if you read the bug report I posted the link to, multiple devs claimed
that changing CHOST is expected to ONLY CHANGE THE LOCATION OF TOOLCHAIN FILES.
They claimed that the behavior I described as a bug.
Comment 3 SpanKY gentoo-dev 2005-09-21 22:23:07 UTC
just because you're a dev doesnt make you right, all you need to do is use caps
(which you've clearly demonstrated fluency in)

CHOST is not purely cosmetic when it comes to glibc, it tells glibc what sort of
code it is allowed to generate.  so an i386-* CHOST will not produce the same
glibc as if you used an i686-* CHOST since glibc knows that with i686-* it can
use i686 optimizations.  anyone who tells you different has not poked around
glibc internals before.

last i heard, nptl required i486 or better, thus nptl is disabled in the glibc
ebuild for i386 CHOSTs, but i'll double check
Comment 4 Chris Slycord 2005-09-21 22:42:00 UTC
I checked for you. You were right. glibc has not been ported to i386.

https://www.redhat.com/archives/fedora-devel-list/2004-June/msg00035.html

"i386 (and sparc < v9) lacks atomic instructions powerful enough for NPTL needs."
Comment 5 SpanKY gentoo-dev 2005-09-21 22:46:17 UTC
heh, i was just about to post that link, guess i need to be a bit faster next time
Comment 6 Chris Slycord 2005-09-21 22:52:40 UTC
So the NPTL part makes perfect sense now.

But why does tls-support go away when using i386?
Comment 7 Chris Slycord 2005-09-22 09:54:14 UTC
Since this has been pretty much figured out, I'm closing it.
Comment 8 SpanKY gentoo-dev 2005-09-22 12:02:53 UTC
i believe tls support in general requires i486+, but please correct me if i'm
wrong ;)
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-06-02 02:32:24 UTC
*** Bug 135203 has been marked as a duplicate of this bug. ***
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-07-12 23:57:58 UTC
*** Bug 140177 has been marked as a duplicate of this bug. ***