public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Cannot emerge glibc
@ 2005-07-16 17:00 Alexander Veit
  2005-07-16 17:29 ` Richard Fish
  0 siblings, 1 reply; 18+ messages in thread
From: Alexander Veit @ 2005-07-16 17:00 UTC (permalink / raw
  To: gentoo-user

Hi,

When I try to emerge -u world, the only package that's going to be updated
is glibc. However the build fails with the following error:

--- snip ---
/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthrea
ds/linuxthreads/libpthread_pic.a(pthread.os)(.text+0x1cd): In function
`pthread_initialize':
: undefined reference to `_res'
/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthrea
ds/linuxthreads/libpthread_pic.a(pthread.os)(.text+0x1033): In function
`__pthread_reset_main_thread':
: undefined reference to `_errno'
/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthrea
ds/linuxthreads/libpthread_pic.a(pthread.os)(.text+0x1042): In function
`__pthread_reset_main_thread':
: undefined reference to `_h_errno'
/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthrea
ds/linuxthreads/libpthread_pic.a(pthread.os)(.text+0x1051): In function
`__pthread_reset_main_thread':
: undefined reference to `_res'
/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthrea
ds/linuxthreads/libpthread_pic.a(pthread.os)(.data.rel+0x1b8): undefined
reference to `_errno'
/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthrea
ds/linuxthreads/libpthread_pic.a(pthread.os)(.data.rel+0x1c0): undefined
reference to `_h_errno'
/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthrea
ds/linuxthreads/libpthread_pic.a(pthread.os)(.data.rel+0x1c8): undefined
reference to `_res'
collect2: ld returned 1 exit status
make[2]: ***
[/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthre
ads/linuxthreads/libpthread.so] Error 1
make[2]: Leaving directory
`/var/tmp/portage/glibc-2.3.5/work/glibc-2.3.5/linuxthreads'
make[1]: *** [linuxthreads/others] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.5/work/glibc-2.3.5'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.5 failed.
!!! Function toolchain-glibc_src_compile, Line 237, Exitcode 2
!!! (no error message)
--- snap ---

Here's my make.conf:

CFLAGS="-march=i586 -m3dnow -O3 -pipe -fomit-frame-pointer -mmmx"
CHOST="i586-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
FEATURES="ccache"
CCACHE_SIZE="2G"
USE="-X -kde -gnome -gtk -gtk2 -qt -sdl -dvd -cdr -dvdr -truetype svga
unicode alsa"
ALSA_CARDS="via82xx"

Does anyone have any suugestions how to fix the problem?


Thanks in advance
Alex

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Cannot emerge glibc
  2005-07-16 17:00 [gentoo-user] Cannot emerge glibc Alexander Veit
@ 2005-07-16 17:29 ` Richard Fish
  2005-07-16 18:30   ` Alexander Veit
  0 siblings, 1 reply; 18+ messages in thread
From: Richard Fish @ 2005-07-16 17:29 UTC (permalink / raw
  To: gentoo-user

Alexander Veit wrote:

>Hi,
>
>When I try to emerge -u world, the only package that's going to be updated
>is glibc. However the build fails with the following error:
>
>MAKEOPTS="-j3"
>  
>

-j3 causes many build problems for many packages that build internal 
libraries and then try to link against them.  -j1 is much safer.

-Richard

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Cannot emerge glibc
  2005-07-16 17:29 ` Richard Fish
@ 2005-07-16 18:30   ` Alexander Veit
  2005-07-16 19:03     ` Zac Medico
  0 siblings, 1 reply; 18+ messages in thread
From: Alexander Veit @ 2005-07-16 18:30 UTC (permalink / raw
  To: gentoo-user

Richard Fish wrote:
> [...]
> >MAKEOPTS="-j3"
> >  
> >
> 
> -j3 causes many build problems for many packages that build internal 
> libraries and then try to link against them.  -j1 is much safer.

OK, now make runs with -j1.

Unfortunately, on my machine, it takes a long long time for the first 3K
files to be built...

BTW is there a way to resume the build process at the point where the error
occurred? emerge --resume does not resume in the middle of a broken build.

-- 
Alex

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Cannot emerge glibc
  2005-07-16 18:30   ` Alexander Veit
@ 2005-07-16 19:03     ` Zac Medico
  2005-07-16 20:14       ` Alexander Veit
  0 siblings, 1 reply; 18+ messages in thread
From: Zac Medico @ 2005-07-16 19:03 UTC (permalink / raw
  To: gentoo-user

Alexander Veit wrote:
> Richard Fish wrote:
> 
>>[...]
>>
>>>MAKEOPTS="-j3"
>>> 
>>>
>>
>>-j3 causes many build problems for many packages that build internal 
>>libraries and then try to link against them.  -j1 is much safer.
> 
> 
> OK, now make runs with -j1.
> 
> Unfortunately, on my machine, it takes a long long time for the first 3K
> files to be built...
> 
> BTW is there a way to resume the build process at the point where the error
> occurred? emerge --resume does not resume in the middle of a broken build.
> 

There are tons of ways to do this but here's what I would do:

FEATURES=keepwork emerge --resume

The drawback is that with FEATURES=keepwork portage will not clean up builds in PORTAGE_TMPDIR so you will have to do that yourself in order to reclaim disk space.

Zac
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Cannot emerge glibc
  2005-07-16 19:03     ` Zac Medico
@ 2005-07-16 20:14       ` Alexander Veit
  2005-07-16 20:25         ` Daniel Heemann
  0 siblings, 1 reply; 18+ messages in thread
From: Alexander Veit @ 2005-07-16 20:14 UTC (permalink / raw
  To: gentoo-user

Zac Medico wrote:
> Alexander Veit wrote:
> > Unfortunately, on my machine, it takes a long long time for 
> > the first 3K files to be built...
> > 
> > BTW is there a way to resume the build process at the point 
> > where the error occurred? emerge --resume does not resume
> > in the middle of a broken build.
> > 
> 
> There are tons of ways to do this but here's what I would do:
> 
> FEATURES=keepwork emerge --resume
> 
> The drawback is that with FEATURES=keepwork portage will not 
> clean up builds in PORTAGE_TMPDIR so you will have to do that 
> yourself in order to reclaim disk space.

Thank you for this hint, Zac. Sure I'll need it. After two hours of
compiling glibc with -j1, it failed with the same error :-(

-- 
Alex

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Cannot emerge glibc
  2005-07-16 20:14       ` Alexander Veit
@ 2005-07-16 20:25         ` Daniel Heemann
  2005-07-16 20:33           ` Zac Medico
  2005-07-16 21:35           ` Alexander Veit
  0 siblings, 2 replies; 18+ messages in thread
From: Daniel Heemann @ 2005-07-16 20:25 UTC (permalink / raw
  To: gentoo-user

On Saturday 16 July 2005 22:14, Alexander Veit wrote:
> Thank you for this hint, Zac. Sure I'll need it. After two hours of
> compiling glibc with -j1, it failed with the same error :-(

Seems to be a known and not yet resolved problem on i586 hosts.
http://forums.gentoo.org/viewtopic-t-329143-highlight-pthreadinitialize+res.html


Regards
Daniel

-- 
"Those who would give up essential liberty, to purchase a little temporary 
safety, deserve neither liberty nor safety."  - Benjamin Franklin
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Cannot emerge glibc
  2005-07-16 20:25         ` Daniel Heemann
@ 2005-07-16 20:33           ` Zac Medico
  2005-07-16 21:42             ` Alexander Veit
  2005-07-16 21:35           ` Alexander Veit
  1 sibling, 1 reply; 18+ messages in thread
From: Zac Medico @ 2005-07-16 20:33 UTC (permalink / raw
  To: gentoo-user

Daniel Heemann wrote:
> On Saturday 16 July 2005 22:14, Alexander Veit wrote:
> 
>>Thank you for this hint, Zac. Sure I'll need it. After two hours of
>>compiling glibc with -j1, it failed with the same error :-(
> 
> 
> Seems to be a known and not yet resolved problem on i586 hosts.
> http://forums.gentoo.org/viewtopic-t-329143-highlight-pthreadinitialize+res.html
> 
> 
> Regards
> Daniel
> 

Yep, here's another forum thread and an open bug:

http://forums.gentoo.org/viewtopic-t-343187-highlight-.html
http://bugs.gentoo.org/show_bug.cgi?id=90236

I can tell you that it will work with i586 CHOST and USE="nptl nptlonly".

Zac
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Cannot emerge glibc
  2005-07-16 20:25         ` Daniel Heemann
  2005-07-16 20:33           ` Zac Medico
@ 2005-07-16 21:35           ` Alexander Veit
  1 sibling, 0 replies; 18+ messages in thread
From: Alexander Veit @ 2005-07-16 21:35 UTC (permalink / raw
  To: gentoo-user

Daniel Heemann wrote:
> Seems to be a known and not yet resolved problem on i586 hosts.
> http://forums.gentoo.org/viewtopic-t-329143-highlight-pthreadi
> nitialize+res.html

Daniel, thank your for this link. It will have saved me a lot of time...

-- 
Alex

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Cannot emerge glibc
  2005-07-16 20:33           ` Zac Medico
@ 2005-07-16 21:42             ` Alexander Veit
  2005-07-16 21:58               ` Zac Medico
  0 siblings, 1 reply; 18+ messages in thread
From: Alexander Veit @ 2005-07-16 21:42 UTC (permalink / raw
  To: gentoo-user

Zac Medico wrote:
> Yep, here's another forum thread and an open bug:
> 
> http://forums.gentoo.org/viewtopic-t-343187-highlight-.html
> http://bugs.gentoo.org/show_bug.cgi?id=90236
> 
> I can tell you that it will work with i586 CHOST and 
> USE="nptl nptlonly".

Hmm. I guess, on Linux Linux threads would be the appropriate threads. So
I'll wait for this bug being fixed.

Thank you
Alex

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Cannot emerge glibc
  2005-07-16 21:42             ` Alexander Veit
@ 2005-07-16 21:58               ` Zac Medico
  2005-07-16 22:44                 ` Volker Armin Hemmann
  2005-07-17 18:18                 ` Alexander Veit
  0 siblings, 2 replies; 18+ messages in thread
From: Zac Medico @ 2005-07-16 21:58 UTC (permalink / raw
  To: gentoo-user

Alexander Veit wrote:
> Zac Medico wrote:
> 
>>Yep, here's another forum thread and an open bug:
>>
>>http://forums.gentoo.org/viewtopic-t-343187-highlight-.html
>>http://bugs.gentoo.org/show_bug.cgi?id=90236
>>
>>I can tell you that it will work with i586 CHOST and 
>>USE="nptl nptlonly".
> 
> 
> Hmm. I guess, on Linux Linux threads would be the appropriate threads. So
> I'll wait for this bug being fixed.
> 
> Thank you
> Alex
> 

Linuxthreads are the *old* linux threading library and nplt is the *new* linux threading library.  I've been using nptlonly for a couple months now with no noticeable problems.  AFAICT it's a "drop in" replacement for linuxthreads and it supposed to give superior performance.  I'd recommend it.

Zac
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Cannot emerge glibc
  2005-07-16 21:58               ` Zac Medico
@ 2005-07-16 22:44                 ` Volker Armin Hemmann
  2005-07-16 22:55                   ` Zac Medico
  2005-07-17 18:18                 ` Alexander Veit
  1 sibling, 1 reply; 18+ messages in thread
From: Volker Armin Hemmann @ 2005-07-16 22:44 UTC (permalink / raw
  To: gentoo-user

On Saturday 16 July 2005 23:58, Zac Medico wrote:
> Alexander Veit wrote:
> > Zac Medico wrote:
> >>Yep, here's another forum thread and an open bug:
> >>
> >>http://forums.gentoo.org/viewtopic-t-343187-highlight-.html
> >>http://bugs.gentoo.org/show_bug.cgi?id=90236
> >>
> >>I can tell you that it will work with i586 CHOST and
> >>USE="nptl nptlonly".
> >
> > Hmm. I guess, on Linux Linux threads would be the appropriate threads. So
> > I'll wait for this bug being fixed.
> >
> > Thank you
> > Alex
>
> Linuxthreads are the *old* linux threading library and nplt is the *new*
> linux threading library.  I've been using nptlonly for a couple months now
> with no noticeable problems.  AFAICT it's a "drop in" replacement for
> linuxthreads and it supposed to give superior performance.  I'd recommend
> it.

but there is enough stuff out there, that does not work with ntpl. 
So recommending ntplonly is irresponsible.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Cannot emerge glibc
  2005-07-16 22:44                 ` Volker Armin Hemmann
@ 2005-07-16 22:55                   ` Zac Medico
  2005-07-17  0:07                     ` Volker Armin Hemmann
  0 siblings, 1 reply; 18+ messages in thread
From: Zac Medico @ 2005-07-16 22:55 UTC (permalink / raw
  To: gentoo-user

Volker Armin Hemmann wrote:
> 
> but there is enough stuff out there, that does not work with ntpl. 
> So recommending ntplonly is irresponsible.

No problems here.  I'd expect people to do their own research before making the switch.  Plus, you can swap in a linuxthreads glibc at any time if need be, right?

Zac
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Cannot emerge glibc
  2005-07-16 22:55                   ` Zac Medico
@ 2005-07-17  0:07                     ` Volker Armin Hemmann
  2005-07-17  0:21                       ` Zac Medico
  2005-07-17  8:49                       ` Richard Fish
  0 siblings, 2 replies; 18+ messages in thread
From: Volker Armin Hemmann @ 2005-07-17  0:07 UTC (permalink / raw
  To: gentoo-user

On Sunday 17 July 2005 00:55, Zac Medico wrote:
> Volker Armin Hemmann wrote:
> > but there is enough stuff out there, that does not work with ntpl.
> > So recommending ntplonly is irresponsible.
>
> No problems here.  I'd expect people to do their own research before making
> the switch.  Plus, you can swap in a linuxthreads glibc at any time if need
> be, right?

yeah, but problems are known. So there are good reasons NOT to use ntplonly or 
to advise to use it generally.

And if you mean 'reemerge glibc' you are right, you can always 'swap' them 
around.

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Cannot emerge glibc
  2005-07-17  0:07                     ` Volker Armin Hemmann
@ 2005-07-17  0:21                       ` Zac Medico
  2005-07-17  8:49                       ` Richard Fish
  1 sibling, 0 replies; 18+ messages in thread
From: Zac Medico @ 2005-07-17  0:21 UTC (permalink / raw
  To: gentoo-user

Volker Armin Hemmann wrote:
> On Sunday 17 July 2005 00:55, Zac Medico wrote:
> 
>>Volker Armin Hemmann wrote:
>>
>>>but there is enough stuff out there, that does not work with ntpl.
>>>So recommending ntplonly is irresponsible.
>>
>>No problems here.  I'd expect people to do their own research before making
>>the switch.  Plus, you can swap in a linuxthreads glibc at any time if need
>>be, right?
> 
> 
> yeah, but problems are known. So there are good reasons NOT to use ntplonly or 
> to advise to use it generally.
> 
> And if you mean 'reemerge glibc' you are right, you can always 'swap' them 
> around.
> 

If you're like me then nptlonly works fine for everything you use.  You know that if a hypothetical nptl problem should arise, you have a quick and simple recovery plan.  I might not have switched if rollback wasn't so simple.

Zac
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Cannot emerge glibc
  2005-07-17  0:07                     ` Volker Armin Hemmann
  2005-07-17  0:21                       ` Zac Medico
@ 2005-07-17  8:49                       ` Richard Fish
  2005-07-17 12:07                         ` Volker Armin Hemmann
  1 sibling, 1 reply; 18+ messages in thread
From: Richard Fish @ 2005-07-17  8:49 UTC (permalink / raw
  To: gentoo-user

Volker Armin Hemmann wrote:

>On Sunday 17 July 2005 00:55, Zac Medico wrote:
>  
>
>>Volker Armin Hemmann wrote:
>>    
>>
>>>but there is enough stuff out there, that does not work with ntpl.
>>>So recommending ntplonly is irresponsible.
>>>      
>>>
>>No problems here.  I'd expect people to do their own research before making
>>the switch.  Plus, you can swap in a linuxthreads glibc at any time if need
>>be, right?
>>    
>>
>
>yeah, but problems are known. So there are good reasons NOT to use ntplonly or 
>to advise to use it generally.
>
>And if you mean 'reemerge glibc' you are right, you can always 'swap' them 
>around.
>
>  
>

What problems?  bugs.gentoo.org only lists a few open bugs when I search 
for nptl,  that even mention nptl, and the only apps mentioned are 
bittornado or skype.  The bittornado one is more than a year old, while 
the skype one seems more like a artsd problem.  No bugs are found when I 
search for nptlonly.

I personally have been using nptlonly for 6 months on my P4, without 
incident.  Are these problems only on non-x86 platforms?

-Richard


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Cannot emerge glibc
  2005-07-17  8:49                       ` Richard Fish
@ 2005-07-17 12:07                         ` Volker Armin Hemmann
  2005-07-17 16:43                           ` Zac Medico
  0 siblings, 1 reply; 18+ messages in thread
From: Volker Armin Hemmann @ 2005-07-17 12:07 UTC (permalink / raw
  To: gentoo-user

On Sunday 17 July 2005 10:49, Richard Fish wrote:
> Volker Armin Hemmann wrote:
> >On Sunday 17 July 2005 00:55, Zac Medico wrote:
> >>Volker Armin Hemmann wrote:
> >>>but there is enough stuff out there, that does not work with ntpl.
> >>>So recommending ntplonly is irresponsible.
> >>
> >>No problems here.  I'd expect people to do their own research before
> >> making the switch.  Plus, you can swap in a linuxthreads glibc at any
> >> time if need be, right?
> >
> >yeah, but problems are known. So there are good reasons NOT to use
> > ntplonly or to advise to use it generally.
> >
> >And if you mean 'reemerge glibc' you are right, you can always 'swap' them
> >around.
>
> What problems?  bugs.gentoo.org only lists a few open bugs when I search
> for nptl,  that even mention nptl, and the only apps mentioned are
> bittornado or skype.  The bittornado one is more than a year old, while
> the skype one seems more like a artsd problem.  No bugs are found when I
> search for nptlonly.
>
> I personally have been using nptlonly for 6 months on my P4, without
> incident.  Are these problems only on non-x86 platforms?
>
> -Richard

try older binary only software.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Cannot emerge glibc
  2005-07-17 12:07                         ` Volker Armin Hemmann
@ 2005-07-17 16:43                           ` Zac Medico
  0 siblings, 0 replies; 18+ messages in thread
From: Zac Medico @ 2005-07-17 16:43 UTC (permalink / raw
  To: gentoo-user

Volker Armin Hemmann wrote:
> 
> try older binary only software.

I'll stick with stuff built fresh from sources, thanks ;-).

Zac
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Cannot emerge glibc
  2005-07-16 21:58               ` Zac Medico
  2005-07-16 22:44                 ` Volker Armin Hemmann
@ 2005-07-17 18:18                 ` Alexander Veit
  1 sibling, 0 replies; 18+ messages in thread
From: Alexander Veit @ 2005-07-17 18:18 UTC (permalink / raw
  To: gentoo-user

Zac Medico wrote:
> Linuxthreads are the *old* linux threading library and nplt 
> is the *new* linux threading library.  I've been using 
> nptlonly for a couple months now with no noticeable problems. 
> AFAICT it's a "drop in" replacement for linuxthreads and it 
> supposed to give superior performance.  I'd recommend it.

I've set the nptl and nptlonly use variables in my make.conf. After 4 hours,
the build completed successfully. /lib/libc.so.6 now reports "Native POSIX
Threads Library by Ulrich Drepper et al" and everything seems to work fine.

Cheers
Alex

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2005-07-17 18:24 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-16 17:00 [gentoo-user] Cannot emerge glibc Alexander Veit
2005-07-16 17:29 ` Richard Fish
2005-07-16 18:30   ` Alexander Veit
2005-07-16 19:03     ` Zac Medico
2005-07-16 20:14       ` Alexander Veit
2005-07-16 20:25         ` Daniel Heemann
2005-07-16 20:33           ` Zac Medico
2005-07-16 21:42             ` Alexander Veit
2005-07-16 21:58               ` Zac Medico
2005-07-16 22:44                 ` Volker Armin Hemmann
2005-07-16 22:55                   ` Zac Medico
2005-07-17  0:07                     ` Volker Armin Hemmann
2005-07-17  0:21                       ` Zac Medico
2005-07-17  8:49                       ` Richard Fish
2005-07-17 12:07                         ` Volker Armin Hemmann
2005-07-17 16:43                           ` Zac Medico
2005-07-17 18:18                 ` Alexander Veit
2005-07-16 21:35           ` Alexander Veit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox