Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
glibc-2.4 will not emerge / build...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Poincare
n00b
n00b


Joined: 25 Feb 2006
Posts: 30
Location: This crappy AMD laptop...

PostPosted: Sun Mar 12, 2006 9:38 am    Post subject: glibc-2.4 will not emerge / build... Reply with quote

Hello,

Earlier I did an "emerge sync" and that went fine. However, now when I "emerge -av system" I get the following error while trying to build glibc-2.4

Code:

 * glibc-2.4 is nptl-only!

!!! ERROR: sys-libs/glibc-2.4 failed.
Call stack:
  ebuild.sh, line 1573:   Called dyn_setup
  ebuild.sh, line 678:   Called pkg_setup

!!! please add USE='nptl nptlonly' to make.conf
!!! If you need support, post the topmost build error, and the call stack if relevant.


I have searched bugzilla and the forums and there does not seem to be another person with the same problem as me, and in all actuality I'm not sure what NPTL is. If I just add "nptl nptlonly" to my USE flags will this solve the problem? I'm not too experienced with Gentoo, so if doing that would foobar my system, I'd rather find a real solution.

I am using gcc 3.4.5 (Gentoo 3.4.5-r1, ssp-3.4.5-1.0, pie-8.7.9) and here is my emerge --info

Code:

Gentoo Base System version 1.12.0_pre16
Portage 2.1_pre6 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15-ck5 i686)
=================================================================
System uname: 2.6.15-ck5 i686 Mobile AMD Sempron(tm) Processor 3000+
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-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -msse2 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -msse2 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 acpi alsa apm arts asf avi berkdb bitmap-fonts bzip2 cdr crypt cups dri dvd dvdr eds emboss encode firefox foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal howl imlib ipv6 jpeg libg++ libwww mad mikmod mmx motif moznocompose moznoirc moznomail mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl spell sse sse2 ssl symlink tcpd truetype truetype-fonts type1-fonts vorbis win32codecs xine xml2 xmms xscreensaver xv xvid zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS



Any ideas?

Cheers!
Back to top
View user's profile Send private message
widu
Guru
Guru


Joined: 05 Jun 2004
Posts: 333
Location: Freiburg

PostPosted: Sun Mar 12, 2006 10:08 am    Post subject: Reply with quote

Hi,
first of all: glibc-2.4 is ~x86 (testing). You did enable ~x86 globaly in your make.conf, are you sure you want to run a testing system?
To your problem:
nptl is the Native Posix Threading Library. glibc-2.4 is now nplt-only and wan't build with the old linuxthreads. So thath's why you have to add ntpl and nptlonly to your use flags, then it will probably compile.
For more info about nptl take a look at this
_________________
nature is a heterosexual fiction
Back to top
View user's profile Send private message
hulmeman
Apprentice
Apprentice


Joined: 02 Jul 2002
Posts: 184
Location: Duchy of Lancaster, England.

PostPosted: Sun Mar 12, 2006 10:08 am    Post subject: Reply with quote

Nptl replaces linuxthreads. add 'nptl' to make .conf USE flags, and:
Code:
emerge --newuse world

It is not necessary to add 'ntplonly' which will retain 'linuxthreads' capability if needed.

Read the Gentoo Wiki: http://gentoo-wiki.com/NPTL
Quote:
Native POSIX Thread Library (NPTL) is a thread library which is, unlike previous attempts, a very thin layer on top of the kernel. This helps to achieve a maximum of performance for a minimal price. It is intended as a replacement of the old linuxthreads library. The major benefit of NPTL over linuxthreads from a users perspective is that it's faster (refer to the PDF for benchmarks). For programmers it has the added benefit of being more posix compliant, as the name suggests.
Back to top
View user's profile Send private message
Vlad.Sharp
Guru
Guru


Joined: 08 Dec 2004
Posts: 337
Location: Cambridgeshire, UK

PostPosted: Sun Mar 12, 2006 10:08 am    Post subject: Reply with quote

The error means that linuxthread support is removed from glibc this time on. I suggest following the ebuild's instructions to add "nptl nptlonly" to USE in /etc/make.conf
Back to top
View user's profile Send private message
widu
Guru
Guru


Joined: 05 Jun 2004
Posts: 333
Location: Freiburg

PostPosted: Sun Mar 12, 2006 10:16 am    Post subject: Reply with quote

hulmeman wrote:
....
It is not necessary to add 'ntplonly' which will retain 'linuxthreads' capability if needed.
....

I think this wan't work for glibc-2.4. As the emerge error says, its ntplonly, yoou have to add this flag. At least on my system (which I haven't got any problem with) glibc-2.4 want compile without nptlonly flag.
_________________
nature is a heterosexual fiction
Back to top
View user's profile Send private message
Poincare
n00b
n00b


Joined: 25 Feb 2006
Posts: 30
Location: This crappy AMD laptop...

PostPosted: Sun Mar 12, 2006 10:21 am    Post subject: Reply with quote

Hi again,

Thanks for the info and helpful replies. I'll add nptl & nptlonly to the USE flags and hopefully all will go smooth.... :)
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4920
Location: Gothenburg, Sweden

PostPosted: Sun Mar 12, 2006 10:47 am    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads. Please follow up to topic 442534.
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.freenode.net
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum