Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2005.0 cannot compute sizeof
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
alshain
Apprentice
Apprentice


Joined: 02 Aug 2002
Posts: 202
Location: London, UK

PostPosted: Sat Apr 23, 2005 11:44 am    Post subject: 2005.0 cannot compute sizeof Reply with quote

Hello all, I'm trying to compile the new glibc-2.3.5 and am running into the following problem:

checking size of long double... configure: error: cannot compute sizeof (long double), 77
See `config.log' for more details.

!!! ERROR: sys-libs/glibc-2.3.5 failed.
!!! Function glibc_do_configure, Line 897, Exitcode 1
!!! failed to configure glibc
!!! If you need support, post the topmost build error, NOT this status message.

Now I've seen people complaining about this problem when upgrading from profile 2004.3 to 2005, but I successfully upgraded a couple of weeks ago and everything's been running perfectly since, so I don't know if mine is unrelated.

Looking at the config.log file, the appropriate section shows:

/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find /emul/linux/x86/lib/libc.so.6

Now, I don't have libc.so.6 in /emul - it's in /lib32, which is where I thought, in the case of the 2005.0 profile, it's supposed to be. My ld.so.conf file has both the /lib32, and the /emul/linux/x86/lib lines, so shouldn't ld be looking in /lib32 as well?

Symlinking libc.so.6 to the /emul/linux/x86/lib directory still causes the configure to fail, but this time with:

/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find /emul/linux/x86/usr/lib/libc_nonshared.a

Now, I don't want to symlink all these files if it's going to cause problems in the future. Can anybody suggest why ld isn't looking for them where it should be? I've tried recompiling gcc and binutils, but with no success.

Andrew
Back to top
View user's profile Send private message
alshain
Apprentice
Apprentice


Joined: 02 Aug 2002
Posts: 202
Location: London, UK

PostPosted: Sat Apr 23, 2005 12:56 pm    Post subject: Reply with quote

Forgot to mention in the subject that this involved glibc! :P Oh, well!

I seem to have found the problem. My /emul/linux/x86/usr/lib/libc.so file contains the following:

/* GNU ld script
Use the shared library, but some functions are only in
the static library, so try that secondarily. */
OUTPUT_FORMAT(elf32-i386)
GROUP ( /emul/linux/x86/lib/libc.so.6 /emul/linux/x86/usr/lib/libc_nonshared.a )

which looks to be out of date. Renaming it to libc.so.6.bak allows glibc to start compiling. I'm going to proceed with caution as I don't like renaming allegedly essential files!

Andrew
Back to top
View user's profile Send private message
Giuly
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2003
Posts: 138
Location: Bremen - Germany

PostPosted: Sat Apr 23, 2005 1:15 pm    Post subject: Reply with quote

Do you know, that we have a search-function?
https://forums.gentoo.org/viewtopic-t-293507.html

My_World wrote:
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:

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

https://forums.gentoo.org/viewtopic-p-2202085.html#2202085
Quote:
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:

emerge portage


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

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

_________________
dunno


Last edited by Giuly on Sat Apr 23, 2005 1:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
eagle_cz
Apprentice
Apprentice


Joined: 06 Jun 2003
Posts: 214

PostPosted: Sat Apr 23, 2005 1:15 pm    Post subject: Reply with quote

i have exactly same problem ... fresh Stage3 for amd64 2005.0 and i can not upgrade nor recompile glibc

will try to rename that file
Back to top
View user's profile Send private message
alshain
Apprentice
Apprentice


Joined: 02 Aug 2002
Posts: 202
Location: London, UK

PostPosted: Sat Apr 23, 2005 1:44 pm    Post subject: Reply with quote

Giuly wrote:
Do you know, that we have a search-function?
https://forums.gentoo.org/viewtopic-t-293507.html


Yes, thank you for your help, I have been searching for the last couple of days. I am also aware of the fact that none of these solutions solved my problem, which appears to be some stale files in the /emul directory confusing the glibc ebuild. I ended up deleting the /emul directory completely, re-emerging all the emul-* packages and glibc is compiling quite happily as I type this.

Andrew
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Sun Apr 24, 2005 8:33 am    Post subject: Reply with quote

Moved from Gentoo on AMD64 in favour of https://forums.gentoo.org/viewtopic-t-293507.html
_________________
No-one's more important than the earthworm.
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