Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on AMD64
  • Search

2004.3->2005.0: glibc emerge error, long double (solved)

Have an x86-64 problem? Post here.
Locked
Advanced search
54 posts
  • Previous
  • 1
  • 2
  • 3
  • Next
Author
Message
Little Nemo
l33t
l33t
User avatar
Posts: 623
Joined: Mon Mar 29, 2004 1:34 pm
Location: Berlin, Germany
Contact:
Contact Little Nemo
Website

  • Quote

Post by Little Nemo » Tue Apr 05, 2005 5:01 pm

ballyn wrote:I followed andrewd18's instructions, but skipped re-emerging glibc and gcc in step 2 and just emerged emul-linux-x86-glibc. I think that at some point my emul emerges got screwed up (but didn't affect me until now) so re-emerging that package got the right libraries going.

I also didn't need to re-emerge baselayout (I was current and had an /etc/env.d/04multilib).
I thought I had tried all possible combinations of going back and forth between the profiles, but in fact it just started working now after I applied your method: at the point where the sizeof problem occurred, I followed andrew18's instructions, but skipped glibc and gcc in step 2 as well as the entire step 4. Thanks!

I would still feel better if I knew what had gone wrong in the first place.
Top
My_World
Guru
Guru
User avatar
Posts: 339
Joined: Mon Sep 01, 2003 3:19 am
Location: Kalahari Desert
Contact:
Contact My_World
Website

  • Quote

Post by My_World » Tue Apr 05, 2005 6:29 pm

Little Nemo:
So you basically skipped:

Code: Select all

2) Re-emerged glibc and gcc. I also did the emuls again for good measure.
emerge glibc gcc  (emul removed cause you said you re-emerged it to fix the libs)

&

4) Emerged baselayout
emerge -v --oneshot baselayout 
Sorry for stating tthe obvious but I have tried since Friday to get this right and still no luck, just wanna make sure I'm 100% with you on what you did.

:?
"Ubuntu" - an African word meaning "Gentoo is too hard for me".
Top
Little Nemo
l33t
l33t
User avatar
Posts: 623
Joined: Mon Mar 29, 2004 1:34 pm
Location: Berlin, Germany
Contact:
Contact Little Nemo
Website

  • Quote

Post by Little Nemo » Tue Apr 05, 2005 7:01 pm

Yes, that's it. From the point where the glibc compile failed with the sizeof error I followed andrew18 except for the steps you mentioned.

Some time before that, while still in a working 2004.3 environment I had made sure baselayout was okay and gcc 3.4.3 had compiled with multilib support and was actually activated (with gcc-config). Then I had compiled glibc again (under 2004.3), but all of that was a few days ago and a lot of desperate attempts earlier.

Good luck!
Last edited by Little Nemo on Wed Apr 06, 2005 6:13 am, edited 1 time in total.
Top
My_World
Guru
Guru
User avatar
Posts: 339
Joined: Mon Sep 01, 2003 3:19 am
Location: Kalahari Desert
Contact:
Contact My_World
Website

  • Quote

Post by My_World » Tue Apr 05, 2005 11:59 pm

After three days of sitting infront of the PC and having seen the sun rise on two occasions I finally got the profile upgrade working.

Here, in detail, is what I did to get it working:
Firstly I switched back to the 2004.3 profile, making sure it was a COMPLETE switch! (Very important)

Code: Select all

rm /etc/make.profile
ln -s /usr/portage/profiles/default-linux/amd64/2004.3 /etc/make.profile
rm -fr /lib32 /usr/lib32 <-- If you followed the upgrade guide then this was made dirs and not symlinks

ln -s /emul/linux/x86/lib /lib32
ln -s /emul/linux/x86/usr/lib /usr/lib32  <-- This I think is very important, do not skip these two steps!

emerge emul-linux-x86-glibc emul-linux-x86-compat emul-linux-x86-baselibs  <-- I found this in another thread and thought it could do no harm in recompiling these, doesn't take long either

USE="multilib" FEATURES="-sandbox" emerge --oneshot gcc  <-- Making sure multilib is supported
http://forums.gentoo.org/viewtopic-p-22 ... ml#2202085
Assuming this works you can then emerge portage to get a 32bit sandbox and then follow the 2005.0 upgrade guide.
The above I also got from the same thread (click the link) and as I was desperate to get a fix, so, any goes!

Code: Select all

emerge portage
From here on in I followed the rest of the upgrade guide and everyting went flawlessly!

Code: Select all

rm /lib32 /usr/lib32
mkdir /lib32 /usr/lib32

cp /emul/linux/x86/lib32/libsandbox.so /lib32
cp /emul/linux/x86/usr/lib32/libc.so /usr/lib32
cp /emul/linux/x86/usr/lib32/libpthread.so /usr/lib32
cp /emul/linux/x86/usr/lib32/*crt*.o /usr/lib32
env-update

emerge -v --oneshot baselayout

rm /etc/make.profile
ln -s /usr/portage/profiles/default-linux/amd64/2005.0 /etc/make.profile

emerge -v --oneshot '>=sys-libs/glibc-2.3.4.20041102'
emerge unmerge emul-linux-x86-glibc
emerge -upv world
emerge -uv world
Well, I'm just glad that is over, now I can catch up on some sleep!
:P
"Ubuntu" - an African word meaning "Gentoo is too hard for me".
Top
ngyahloon
n00b
n00b
Posts: 2
Joined: Fri Jul 04, 2003 2:14 am
Location: Malaysia

sigreturn.o error

  • Quote

Post by ngyahloon » Fri Apr 08, 2005 6:45 am

Hi,

This thread has been really useful for me. Just wanna add my experience a bit. Basically all the steps are corrent and workable. Just pay attention to all the versioning of the package to be update:

Code: Select all

'>=sys-devel/gcc-3.4.3'
'>=sys-apps/portage-2.0.51-r9'
'>=sys-devel/gcc-config-1.3.9'
'>=sys-devel/distcc-2.18.3-r1'
'>=linux-headers-2.6.8.1-r4'
'>=emul-linux-x86-glibc-2.3.4.20041102'
'>=sys-libs/glibc-2.3.4.20041102'
Everything was ok for me except for linux-headers. I didn't realise my system was still using version 2.6 something where as to upgrade to 2005.0 profile, you need at least version 2.8. So I kept getting some error compiling sigreturn.o. After ensuring all software have the correct version, it was pretty smooth.
Carpe Diem: SeIzE ThE DaY!!
Top
AngelM
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 139
Joined: Tue Dec 07, 2004 2:19 pm
Location: Erlangen

  • Quote

Post by AngelM » Fri Apr 08, 2005 9:11 am

A lot of thanks.

Finally it works now.

Yiepieh
Top
JLP
Tux's lil' helper
Tux's lil' helper
Posts: 143
Joined: Sat Sep 13, 2003 11:42 pm
Location: Slovenia
Contact:
Contact JLP
Website

  • Quote

Post by JLP » Fri Apr 08, 2005 11:55 pm

I have followed the instructions from My_World and now I have succesfuly upgraded to 2005.0 profile. Thanks!
Live long and prosper!
Top
mattjgalloway
l33t
l33t
Posts: 761
Joined: Tue Mar 16, 2004 10:07 am
Location: Coventry, UK
Contact:
Contact mattjgalloway
Website

  • Quote

Post by mattjgalloway » Sat Apr 09, 2005 7:28 am

My_World - thanks for that howto!

What I would add is that you should follow the 2005.0 migration guide but make sure that when it says to emerge anything, that you do it. I thought that just because I'd already had it emerged it'd be ok - that's what was throwing me off! For me it was the portage recompile that My_World pointed out that I needed!
AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard
Top
tscolari
l33t
l33t
User avatar
Posts: 602
Joined: Sun May 02, 2004 10:43 pm
Location: curitiba - pr - Brazil
Contact:
Contact tscolari
Website

  • Quote

Post by tscolari » Sun Apr 10, 2005 4:26 pm

i see that you had this problem while migrating from 2004.3 to 2005.0
but ive just untared the stage3 from the 2005.0 livecd and was trying to re-compile glibc and got the same error!

What should i do to fix this?
------------------------------------
Tiago Scolari
Top
TheJoker
n00b
n00b
User avatar
Posts: 11
Joined: Thu Jan 13, 2005 12:03 pm
Location: Near Oxford, UK

Thanks!

  • Quote

Post by TheJoker » Sun Apr 10, 2005 5:15 pm

My_World and everybody else,

Thanks for everything.

When I reverted back to 2004.3 I restarted the "By hand" section from the first point; by emerging gcc, from there on it's worked just fine.
http://forums.gentoo.org/viewtopic-p-22 ... ml#2294693

Don't use the "The easy way", it wasn't for me :P

Cheers!

J
Deprecating an AMD Athlon 800 who was running Debian Sid for 2 years with an AMD64 3000 running Gentoo
She's up n running (well, parts are!) Triple head KDE, Sound and connection to SMB shares so far...
Top
tscolari
l33t
l33t
User avatar
Posts: 602
Joined: Sun May 02, 2004 10:43 pm
Location: curitiba - pr - Brazil
Contact:
Contact tscolari
Website

  • Quote

Post by tscolari » Sun Apr 10, 2005 6:43 pm

tscolari wrote:i see that you had this problem while migrating from 2004.3 to 2005.0
but ive just untared the stage3 from the 2005.0 livecd and was trying to re-compile glibc and got the same error!

What should i do to fix this?
i shall move to the 2004.3 profile to re emerge then?
im just waiting know what to do to install it here, my computer is OS less by now :o
------------------------------------
Tiago Scolari
Top
tscolari
l33t
l33t
User avatar
Posts: 602
Joined: Sun May 02, 2004 10:43 pm
Location: curitiba - pr - Brazil
Contact:
Contact tscolari
Website

  • Quote

Post by tscolari » Sun Apr 10, 2005 10:11 pm

Just want to know a question, can a ldflags setted in make.conf cause this error in the configure?
I ask because if it can, i will give another try in installing stage1 from stage3, otherwise i will try a stage1 install only :/
------------------------------------
Tiago Scolari
Top
peter96362930
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 141
Joined: Sun Oct 26, 2003 8:41 am
Location: S.E. Asia

  • Quote

Post by peter96362930 » Mon Apr 11, 2005 10:54 pm

I'm following My_World's instructions but I'm still getting the "sizeof" error when I try and emerge glibc. I noticed that when I run

Code: Select all

cp /emul/linux/x86/lib32/libsandbox.so /lib32
that libsandbox.so doesn't exist. Does that indicate what I'm doing wrong?
Top
MagicTom
n00b
n00b
User avatar
Posts: 60
Joined: Thu Oct 23, 2003 8:21 pm
Location: Nancy, France
Contact:
Contact MagicTom
Website

  • Quote

Post by MagicTom » Tue Apr 12, 2005 12:41 am

peter96362930 wrote:I'm following My_World's instructions but I'm still getting the "sizeof" error when I try and emerge glibc. I noticed that when I run

Code: Select all

cp /emul/linux/x86/lib32/libsandbox.so /lib32
that libsandbox.so doesn't exist. Does that indicate what I'm doing wrong?
I had the same problem. (I think it is beacause I wasn't using multilib before switching to 2005.0, but I'm not sure about it.)
I did as it I didn't notice it, and I only got an error when trying to compile glibc, this famous problem with "sizeof long double"... However, I managed to compile it without having libsandbox.so. If you have the same error, try this:

Code: Select all

FEATURES="-sandbox" USE="multilib" emerge -v --oneshot '>=sys-libs/glibc-2.3.4.20041102'
Once you have switched to 2005.0 (rm /etc/make.profile && ln -s blah blah...) and compiled glibc correctly, re-emerge portage, this will create /lib32/libsandbox.so.

That's what I did (spent my evening getting this 2005.0 working), and I'm now emerging system... Time to go to bed (2:34am here in France :wink:)
There's no place like ::1
Top
peter96362930
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 141
Joined: Sun Oct 26, 2003 8:41 am
Location: S.E. Asia

  • Quote

Post by peter96362930 » Tue Apr 12, 2005 2:30 pm

MagicTom,

Thanks for the hint. Unfortunately, it didn't work for me. I'll have to stick with 2004.3 for the time being.
Top
KeBl3Sk
n00b
n00b
User avatar
Posts: 14
Joined: Wed Mar 17, 2004 11:55 pm
Location: Montréal (Qc) Canada

got it fixed

  • Quote

Post by KeBl3Sk » Thu Apr 21, 2005 12:45 am

I was experiencing the missing libsandbox.so problem, following My_World's steps got it fixed.

Thanks

I wonder what was the root cause of this.
Top
isolationism
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Mon Nov 01, 2004 7:06 pm

  • Quote

Post by isolationism » Fri Apr 22, 2005 6:23 am

Bumping because I ran into the exact same problem and my_world's solution fixed it, too.

Maybe something to this effect should be added to the "official" 2004.3 => 2005.0 documentation so other people won't be wasting their time as I have beating my head against the desk wondering what I did wrong?

And, to my_world: Thank you.
Top
isolationism
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Mon Nov 01, 2004 7:06 pm

  • Quote

Post by isolationism » Fri Apr 22, 2005 11:14 pm

As it turns out this worked perfectly for one of my systems but not the other. I have no idea why this might have happened. I followed precisely the same instructions my_world posted in both cases, but one of the PCs fails while building glibc-2.3.4.20041102 which is infuriating as it must be one of the longest ebuilds you can run on an amd64 system. This is the error I get:

Code: Select all

/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-x86-i686-pc-linux-gnu-nptl/nptl/libpthread.so: undefined reference to `errno@GLIBC_PRIVATE'
/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-x86-i686-pc-linux-gnu-nptl/nptl/libpthread.so: undefined reference to `__libc_dl_error_tsd@GLIBC_PRIVATE'
/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-x86-i686-pc-linux-gnu-nptl/nptl/libpthread.so: undefined reference to `__resp@GLIBC_PRIVATE'
/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-x86-i686-pc-linux-gnu-nptl/nptl/libpthread.so: undefined reference to `h_errno@GLIBC_PRIVATE'
collect2: ld returned 1 exit status
make[2]: *** [/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-x86-i686-pc-linux-gnu-nptl/nscd/nscd] Error 1
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3/nscd'
make[1]: *** [nscd/others] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3'
make: *** [all] Error 2
Anybody have any suggestions at all? I also tried following these instructions:

http://forums.gentoo.org/viewtopic-p-21 ... ml#2196245

... Although they're nearly identical with a few exceptions. I've tried on four separate attempts to compile sys-libs/glibc-2.3.4.20041102-r1 now and they've all failed. I'm willing to entertain any suggestions anyone might have on the matter as I really want this server upgraded to 2005.0. Thanks in advance!
Top
apryan
Tux's lil' helper
Tux's lil' helper
Posts: 124
Joined: Mon Jan 31, 2005 3:45 pm
Contact:
Contact apryan
Website

  • Quote

Post by apryan » Sat Apr 23, 2005 1:14 pm

iso,
I'm getting the same errors you are. Gonna try the "hard way" atm and see if that works.
Top
isolationism
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Mon Nov 01, 2004 7:06 pm

  • Quote

Post by isolationism » Sun Apr 24, 2005 11:38 pm

Well, I've gone about it the "hard" way a bunch of times, going back and forth between 2004.3 and 2005.0 and I'm still getting the same error compiling glibc-2.3.4.20041102-r1 described above (having to do with libpthread.so). apryan, have you had better luck?

Edit: Finally, I got glibc to compile. I started with this ticket:

http://bugs.gentoo.org/show_bug.cgi?id=90091

... Copied the displayed list of "stale" files, and removed them. This is an oldish installation, after all -- it's been around for probably 5-6 months now, or thereabouts.

Next, I looked for old copies of libpthreads.so. Inexplicably, there was one in /bin/ of all places. Well, duh. This was probably the culprit -- What software would have done that? :P So I removed it and linked it back to libpthread-0.10.so in /lib then followed my_world's guide all over again. Success!
Top
eradicator
Retired Dev
Retired Dev
Posts: 144
Joined: Tue Apr 01, 2003 6:52 pm
Location: Berkeley, CA

  • Quote

Post by eradicator » Tue May 03, 2005 6:51 pm

Additionally, now that sandbox and portage are split from eachother in ~amd64, you should reemerge sys-apps/sandbox instead of sys-apps/portage to get the 32bit sandbox if you're in ~arch. portage itself is now just the python code. Unfortunately, we haven't been able to update the Makefile because of some infrastructure problems.
Top
satanskin
Guru
Guru
Posts: 353
Joined: Mon Apr 25, 2005 1:37 am

  • Quote

Post by satanskin » Tue May 03, 2005 7:36 pm

I've been following My_World's guide exactly and it was working up unitl emerging glibc. I did

Code: Select all

emerge -v --oneshot '>=sys-libs/glibc-2.3.4.20041102'
and let it go overnight. When I came back today I got this error again (which I have been getting frequently lately):

/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-x86-i686-pc-linux-gnu-nptl/nptl/libpthread.so: undefined reference to `h_errno@GLIBC_PRIVATE'
collect2: ld returned 1 exit status
make[2]: *** [/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-x86-i686-pc-linux-gnu-nptl/nscd/nscd] Error 1
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3/nscd'
make[1]: *** [nscd/others] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3'
make: *** [all] Error 2


EDIT: I fixed it. Adding USE="-nptl" to the beginning fixed it. Now just have to reemerge everything with nptl again.
Top
NismoC32
Apprentice
Apprentice
User avatar
Posts: 222
Joined: Mon Apr 07, 2003 12:10 pm

  • Quote

Post by NismoC32 » Sat Jun 04, 2005 11:03 pm

I have some problems with the 2005.0 profile.
I used the Gentoo 2005.0 LiveCD to install gentoo. Everyting went fine until I was going to uppgrade the glibc library.
So I searched this forum for a possible solution and ended up with this tread.
I switched to 2004.3 and there was no problem with installing the latest glibc.
When I switched back I was unable to use the emerge command, all I get is:

>>> emerge (1 of 1) app-editors/joe-3.2 to /
* It appears you have switched to the 2005.0 profile without following
* the upgrade guide. Please see the following URL for more information:
* http://www.gentoo.org/proj/en/base/amd6 ... -amd64.xml

I switched back to 2004.3 and followed the instructions on this page but without any improvment and I now don't
have a clue to whats wrong.

What could bee wrong ?
Top
brankob
Apprentice
Apprentice
Posts: 188
Joined: Thu Apr 29, 2004 12:23 am

  • Quote

Post by brankob » Mon Jul 11, 2005 11:12 pm

This is why I sometimes hate Gentoo.

With this kind fo problem, there is no way for ordinary user to help himself. All he gets is a choice between a rigid script or a equally rigid manual transition, consisting just of actual steps, without an explanation about the role of packages involved.

Without this, if anything goes wrong, user can ponder, which (if any / only one) of N steps was wrong.
It would be nice to know a bit more about gcc and intimately coupled libraries etc, but this would obviously break some internal code of conduct in Gentoo
.
Heere is a script and if that doesn't work, GFY.

It's interesting that I already made transition to 2005.0 profile some month or more ago after quite some trials/errors and I thought "Phew. O.K. it wa s painfull, but transiental- I did it once, there will be no more, right ?" :roll:


It would be very nice from developers just to hear why exactly is this transition such a pain, if nothing else...
Top
scottf
n00b
n00b
Posts: 6
Joined: Fri May 14, 2004 3:59 am

  • Quote

Post by scottf » Mon Jul 18, 2005 5:21 pm

I got bit by the 2004.3 to 2005.0 profile upgrade problem too. I tried running the 2004.3-2005.0upgrade.sh upgrade script and all seemed fine until the final step 'emerge -uv system' when I found out I couldn't compile 64bit executables anymore. It turns out that I had actual directories for /usr/lib and /usr/lib64. After copying the /usr/lib64 files to /usr/lib and making a link from /usr/lib64 to /usr/lib and reverting to the previous profile, I was able to manually go though the update.

Hope this helps someone else.
Top
Locked

54 posts
  • Previous
  • 1
  • 2
  • 3
  • Next

Return to “Gentoo on AMD64”

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