Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error Emerging Glibc....
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Iron_DragonLord
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 273

PostPosted: Mon May 30, 2005 12:47 am    Post subject: Error Emerging Glibc.... Reply with quote

This isn't exactly an install, sorry, but more of a re-install without using the LiveCD.

Anyway, I am trying to emerge Glibc but I keep getting this same error:

Code:
: /var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/linuxthreads/libpthread_pic.a
i586-pc-linux-gnu-gcc   -shared -static-libgcc -Wl,-O1  -Wl,-z,defs -Wl,-dynamic-linker=/lib/ld-linux.so.2
-B/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/linuxthreads/
-B/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/csu/
-B/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/linuxthreads/
-Wl,--version-script=/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/libpthread.map
-Wl,-soname=libpthread.so.0 -Wl,-z,combreloc -Wl,-z,relro -Wl,--enable-new-dtags,-z,nodelete -Wl,--enable-new-dtags,-z,initfirst
-L/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads
-L/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/math
-L/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/elf
-L/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/dlfcn
-L/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/nss
-L/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/nis
-L/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/rt
-L/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/resolv
-L/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/crypt
-L/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/linuxthreads
-Wl,-rpath-link=/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads: /var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/math: /var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/elf:
/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/dlfcn: /var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/nss: /var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/nis:
/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/rt: /var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/resolv: /var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/crypt: /var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/linuxthreads -o
/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/linuxthreads/libpthread.so -T
/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/shlib.lds
/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/csu/abi-note.o -Wl,--whole-archive
/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/linuxthreads/libpthread_pic.a
-Wl,--no-whole-archive /var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/elf/interp.os
/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/libc.so
/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/libc_nonshared.a
/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/elf/ld.so
/var/tmp/portage/glibc-2.3.5/work/build-default-i586-pc-linux-gnu-linuxthreads/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-linuxthreads/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-linuxthreads/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-linuxthreads/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-linuxthreads/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-linuxthreads/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-linuxthreads/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-linuxthreads/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)
!!! If you need support, post the topmost build error, NOT this status message.



I've tried changing my cflags' -march to -mcpu and -mtune and they still don't work.

Here's my make.conf:
Code:
CHOST="i586-pc-linux-gnu"
CFLAGS="-march=k6-2 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
CONFIG_PROTECT="/proc/sys/net/ipv4"
FEATURES="candy ccache distlocks sandbox userpriv usersandbox"
CCACHE_SIZE="512M"
AUTOCLEAN="yes"
USE="-X -xv -xmms -xosd -svga -trusted -usb -wxwindows -wavelan -voodoo3
        -pda -pcmcia -oss -opengl -mozilla -kde -gtkhtml -gtk2 -gtk
        -gphoto2 -gnome -dga -3dfx -arts -quicktime -qt -pdflib
        nptl nocardbus mmx acpi apm x86 3dnow"


Any help is appreciated as I am clueless and the search results aren't helping me any. Especially considering I have to wait 4 hours after making a change to see if it worked or not.

edit by nixnut: cleaned up the code a bit to prevent mile wide html pages
Back to top
View user's profile Send private message
rawbeefman
Guru
Guru


Joined: 25 Mar 2005
Posts: 375

PostPosted: Mon May 30, 2005 12:51 am    Post subject: Reply with quote

Try updating your /etc/portage/package.keywords file by adding:
Code:
sys-libs/glibc ~x86

to the bottom.

- Eschmann
Back to top
View user's profile Send private message
rawbeefman
Guru
Guru


Joined: 25 Mar 2005
Posts: 375

PostPosted: Mon May 30, 2005 12:51 am    Post subject: Reply with quote

Act as if it is masked.
Back to top
View user's profile Send private message
Iron_DragonLord
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 273

PostPosted: Mon May 30, 2005 1:29 am    Post subject: Reply with quote

It is unmasked. :(

idl ~ # cat /etc/portage/package.keywords
sys-apps/baselayout ~x86
sys-apps/sysvinit ~x86
app-shells/bash ~x86
sys-libs/readline ~x86
net-misc/mindterm ~x86
sys-devel/gcc ~x86
sys-devel/gcc-config ~x86
sys-libs/libstdc++-v3 ~x86
sys-libs/glibc ~x86


Last edited by Iron_DragonLord on Mon May 30, 2005 3:41 am; edited 1 time in total
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3060
Location: Korea

PostPosted: Mon May 30, 2005 3:10 am    Post subject: Reply with quote

https://bugs.gentoo.org/show_bug.cgi?id=90236

glibc-2.3.5 doesn't work with CHOST's less than i686. That version's linuxthreads fails on CHOST=i386 or lower.

So you have to either add ">=sys-libs/glibc-2.3.5" to your /etc/portage/package.mask file or add "nptlonly" to your USE flags.

The former makes it so you use the previous version of glibc (which doesn't have the problem) while the latter forces your system to not have linuxthreads (and therefore uses nptl only).
Back to top
View user's profile Send private message
Iron_DragonLord
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 273

PostPosted: Mon May 30, 2005 4:01 am    Post subject: Reply with quote

Thanks so much for the reply, I will try it out right now. It will be a while before I know if it's a success or not though.

I just hope I don't really need glibc-2.3.5 for anything important...
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3060
Location: Korea

PostPosted: Mon May 30, 2005 4:12 am    Post subject: Reply with quote

I'm sure you don't need glibc-2.3.5

Otherwise, my box would be crashing (and it's not).
Back to top
View user's profile Send private message
CarlUman
Apprentice
Apprentice


Joined: 07 Jul 2004
Posts: 158
Location: SE Iowa

PostPosted: Fri Aug 12, 2005 4:27 pm    Post subject: Reply with quote

When I do emerge -uDpv world it uses glibc-2.3.5 even if I use the package keywords trick.

I want my machine (world) updated and this isn't working. What can I do?
Thanks
Back to top
View user's profile Send private message
Sven Vermeulen
Retired Dev
Retired Dev


Joined: 29 Aug 2002
Posts: 1345
Location: Mechelen, Belgium

PostPosted: Fri Aug 12, 2005 4:45 pm    Post subject: Reply with quote

The trick is with package.mask, not package.keywords.
Back to top
View user's profile Send private message
CarlUman
Apprentice
Apprentice


Joined: 07 Jul 2004
Posts: 158
Location: SE Iowa

PostPosted: Fri Aug 12, 2005 6:56 pm    Post subject: Reply with quote

thanks :)

I need to pay closer attention. That does make sense. One of these days I'll get this stuff figured out ;)
With my luck it will be after I move my site on to my home server 8O
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Fri Aug 12, 2005 8:56 pm    Post subject: Reply with quote

slycordinator wrote:
https://bugs.gentoo.org/show_bug.cgi?id=90236

glibc-2.3.5 doesn't work with CHOST's less than i686. That version's linuxthreads fails on CHOST=i386 or lower.

i think you made a typo there. i think you meant to say CHOST=i586, as the problem effects the 586 CHOST and lower.
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
Edgar
n00b
n00b


Joined: 12 Aug 2005
Posts: 3

PostPosted: Sat Aug 13, 2005 6:10 pm    Post subject: Reply with quote

I had a similiar problem and it helped to clean my ccache. You can backup it, it is in /var/tmp/ccache or /root/.ccache.
Back to top
View user's profile Send private message
Hyp
Apprentice
Apprentice


Joined: 14 Feb 2004
Posts: 192

PostPosted: Sun Aug 14, 2005 11:26 am    Post subject: Reply with quote

Hi,

I've had the same problem. As in other topics mentioned, I tried
Code:
MAKEOPTS="-j1" USE="nptl -nptl-only" FEATURES="-distcc" emerge gcc glibc
and now it's working ...

Hyp
Back to top
View user's profile Send private message
spingeld
n00b
n00b


Joined: 20 Jan 2005
Posts: 7
Location: Lystrup, Denmark

PostPosted: Tue Jan 17, 2006 9:37 pm    Post subject: A *real* fix for this problem Reply with quote

It has been fixed, solved, done with on my installation - here is the howto. (that should be enough keywords for anyone to find this posting :D)

The real problem was that there was a bug one of the files in
Code:
/etc/modules.d/
. By running
Code:
/sbin/generate-modprobe.conf
I was able to see which file had which errors and correct those errors.

Once you get
Code:
/sbin/generate-modprobe.conf
to generate a lot of output and no errors you are ready for running
Code:
modules-update
again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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