Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

NPTL and /lib/tls directory [solved]

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
kohno
Tux's lil' helper
Tux's lil' helper
Posts: 112
Joined: Sat Aug 28, 2004 4:12 am

NPTL and /lib/tls directory [solved]

  • Quote

Post by kohno » Fri Feb 24, 2006 11:55 am

I have read somewhere, which says "If you don't use the "nptlonly" flag, you will have the linuxthreads version of glibc in /lib and the NPTL version in /lib/tls."
Here's my USE flags for glibc:
# emerge -pv glibc

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild R ] sys-libs/glibc-2.3.6-r2 USE="nls nptl userlocales -build -erandom -glibc-compat20 -glibc-omitfp -hardened -linuxthreads-tls -nptlonly -pic -profile" 0 kB
But somehow I don't see the /lib/tls directory. What's going on?
Last edited by kohno on Sun Feb 26, 2006 12:36 pm, edited 1 time in total.
Top
Bad Penguin
Guru
Guru
User avatar
Posts: 507
Joined: Wed Aug 18, 2004 8:01 pm
Contact:
Contact Bad Penguin
Website

Re: NPTL and /lib/tls directory

  • Quote

Post by Bad Penguin » Sat Feb 25, 2006 9:02 am

kohno wrote:I have read somewhere, which says "If you don't use the "nptlonly" flag, you will have the linuxthreads version of glibc in /lib and the NPTL version in /lib/tls."
Here's my USE flags for glibc:
# emerge -pv glibc

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild R ] sys-libs/glibc-2.3.6-r2 USE="nls nptl userlocales -build -erandom -glibc-compat20 -glibc-omitfp -hardened -linuxthreads-tls -nptlonly -pic -profile" 0 kB
But somehow I don't see the /lib/tls directory. What's going on?
Perhaps something to do with "-linuxthreads-tls" in your USE flags?
Top
nxsty
Veteran
Veteran
User avatar
Posts: 1556
Joined: Wed Jun 23, 2004 7:00 pm
Location: .se
Contact:
Contact nxsty
Website

  • Quote

Post by nxsty » Sat Feb 25, 2006 9:05 am

What's your emerge --info?
Top
kohno
Tux's lil' helper
Tux's lil' helper
Posts: 112
Joined: Sat Aug 28, 2004 4:12 am

  • Quote

Post by kohno » Sat Feb 25, 2006 11:24 am

nxsty wrote:What's your emerge --info?

Code: Select all

# emerge info
Portage 2.1_pre4-r1 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r2, 2.6.9-nitro4 i686)
=================================================================
System uname: 2.6.9-nitro4 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.12.0_pre15
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i386-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -pipe"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.isu.edu.tw/pub/Linux/Gentoo ftp://ftp.isu.edu.tw/pub/Linux/Gentoo http://mirror.gentoo.gr.jp http://gentoo.gg3.net/ ftp://gg3.net/pub/linux/gentoo/ ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO http://gentoo.channelx.biz/ http://ftp.gentoo.or.kr/ http://mymirror.asiaosc.org/gentoo/ ftp://mirror.averse.net/pub/gentoo http://mirror.averse.net/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts cjk crypt cups dri eds emboss encode foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl spell ssl tcpd truetype truetype-fonts type1-fonts vorbis xml2 xmms xv zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS
Top
kohno
Tux's lil' helper
Tux's lil' helper
Posts: 112
Joined: Sat Aug 28, 2004 4:12 am

Re: NPTL and /lib/tls directory

  • Quote

Post by kohno » Sat Feb 25, 2006 11:26 am

Bad Penguin wrote:Perhaps something to do with "-linuxthreads-tls" in your USE flags?
I've tried recompiling glibc with the "-linuxthreads-tls" USE, but still no /lib/tls directory. Even worse, now nptl is gone, too.

Code: Select all

# /lib/libc.so.6
GNU C Library stable release version 2.3.6, by Roland McGrath et al.
Copyright (C) 2005 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.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9).
Compiled on a Linux 2.6.11 system on 2006-02-25.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        linuxthreads-0.10 by Xavier Leroy
        The C stubs add-on version 2.1.2.
        GNU Libidn by Simon Josefsson
        BIND-8.2.3-T5B
        libthread_db work sponsored by Alpha Processor Inc
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
Top
Bad Penguin
Guru
Guru
User avatar
Posts: 507
Joined: Wed Aug 18, 2004 8:01 pm
Contact:
Contact Bad Penguin
Website

Re: NPTL and /lib/tls directory

  • Quote

Post by Bad Penguin » Sat Feb 25, 2006 5:08 pm

kohno wrote:
Bad Penguin wrote:Perhaps something to do with "-linuxthreads-tls" in your USE flags?
I've tried recompiling glibc with the "-linuxthreads-tls" USE, but still no /lib/tls directory. Even worse, now nptl is gone, too.
Your CHOST is i386-pc-linux-gnu, glibc will not compile in nptl support with this CHOST.
Top
kohno
Tux's lil' helper
Tux's lil' helper
Posts: 112
Joined: Sat Aug 28, 2004 4:12 am

Re: NPTL and /lib/tls directory

  • Quote

Post by kohno » Sun Feb 26, 2006 12:35 pm

Bad Penguin wrote:...
Your CHOST is i386-pc-linux-gnu, glibc will not compile in nptl support with this CHOST.
Thank you, Bad Penguin. Now I have the directory.
I used the stage1-x86-2005.1-r1.tar.bz2, the CHOST variable is i386-pc-linux-gnu; according to the handbook, I'm not supposed to change it, so I didn't.
Top
Bad Penguin
Guru
Guru
User avatar
Posts: 507
Joined: Wed Aug 18, 2004 8:01 pm
Contact:
Contact Bad Penguin
Website

Re: NPTL and /lib/tls directory

  • Quote

Post by Bad Penguin » Sun Feb 26, 2006 6:42 pm

kohno wrote:
Bad Penguin wrote:...
Your CHOST is i386-pc-linux-gnu, glibc will not compile in nptl support with this CHOST.
Thank you, Bad Penguin. Now I have the directory.
I used the stage1-x86-2005.1-r1.tar.bz2, the CHOST variable is i386-pc-linux-gnu; according to the handbook, I'm not supposed to change it, so I didn't.
If you want nptl, you either need to either start from stage3, or change the CHOST and bootstrap/emerge -e system from your stage1 (check the Gentoo FAQ, there are "instructions")...
Top
Post Reply

8 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic