Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2004.3->2005.0: glibc emerge error, long double (solved)
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Fri Feb 11, 2005 1:30 am    Post subject: 2004.3->2005.0: glibc emerge error, long double (solved) Reply with quote

# emerge -v --oneshot '>=sys-libs/glibc-2.3.4.20041102'
blah blah blah ...
Quote:
checking size of long double... configure: error: cannot compute sizeof (long do
uble), 77
See `config.log' for more details.

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


I really need help with that one.
_________________
Votre moment detente
What is the nature of conflict?


Last edited by Trevoke on Fri Feb 11, 2005 1:50 am; edited 3 times in total
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Fri Feb 11, 2005 1:49 am    Post subject: Reply with quote

Figured it out.
I had emul-linux-x86-glibc-1000 installed already, so I had to unmask the other REAL ones in the 2005.0 profile then emerge glibc, then remask the fake ones.
_________________
Votre moment detente
What is the nature of conflict?
Back to top
View user's profile Send private message
Shake
n00b
n00b


Joined: 29 Jun 2004
Posts: 59

PostPosted: Fri Feb 11, 2005 5:37 pm    Post subject: Reply with quote

I have the same problem here. Can you explain your solution a little more?

Thanks
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Fri Feb 11, 2005 6:29 pm    Post subject: Reply with quote

Assuming you have already gone to 2005.0.

Code:
# cd /usr/portage/profiles/default-linux/amd64/2005.0/
nano package.mask


Quote:
# Jeremy Huddleston <eradicator@gentoo.org>
# These are provided by non-emul packages now
-=app-emulation/emul-linux-x86-glibc-1000
<app-emulation/emul-linux-x86-glibc-1000

You'll want to comment (add a # at the beginning of the line) those two lines.
You can then
Code:
# emerge -v --oneshot 'app-emulation/emul-linux-x86-glibc-2.3.4.20041102'


Then start the glibc emerge, re-edit package.mask and uncomment those lines; after glibc is installed you can do a simple
Code:
# emerge emul-linux-x86-glibc
to install the -1000 stub.
_________________
Votre moment detente
What is the nature of conflict?
Back to top
View user's profile Send private message
tcbounce
Tux's lil' helper
Tux's lil' helper


Joined: 18 Nov 2003
Posts: 86
Location: South Korea

PostPosted: Sat Feb 12, 2005 4:18 am    Post subject: tried it - Reply with quote

No joy here. Portage craps out after emerging the emul-linux-x86-glibc package, telling me I need to reed the 2005.0 upgrade guide.

Luke
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Sat Feb 12, 2005 6:54 am    Post subject: Reply with quote

What version of emul-linux-x86-glibc is it installing?
_________________
Votre moment detente
What is the nature of conflict?
Back to top
View user's profile Send private message
Shake
n00b
n00b


Joined: 29 Jun 2004
Posts: 59

PostPosted: Sat Feb 12, 2005 3:45 pm    Post subject: Reply with quote

I had the same problems here. So I went back to 2004.3, recompiled glibc and gcc.

After that I restarted to move to 2005.0. And everything just worked fine...
Back to top
View user's profile Send private message
what.
n00b
n00b


Joined: 05 Feb 2005
Posts: 12

PostPosted: Fri Feb 18, 2005 8:00 am    Post subject: Reply with quote

Just posted this to another thread. I was running into the same "cannot compute sizeof (long double)" error emerging glibc a little bit ago, and entirely removing the LDFLAGS line from my make.conf solved this problem for me. Hope this helps.
_________________
Free computers? (Help me bring another Gentoo box into the world.)
Back to top
View user's profile Send private message
Plouj
n00b
n00b


Joined: 01 Mar 2005
Posts: 12

PostPosted: Tue Mar 01, 2005 6:54 am    Post subject: Reply with quote

I don't have any LDFLAGS defined, nor do I have the 2005.0 profile. In fact, emerging glibc fails with the sizeof double computation error when I try to upgrade to 2005.0 by following this guide: http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=1
Its trying to emerge sys-libs/glibc-2.3.4.20041102

This is what I got in my make.conf:
CFLAGS="-march=athlon64 -pipe -fomit-frame-pointer -O2"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
USE="X multilib nptl nptlonly ithreads pthreads gtk qt alsa cups foomatic ppds opengl truetype gd cpdflib -gnome -kde"
FEATURES="ccache"
CCACHE_SIZE="2G"
Back to top
View user's profile Send private message
unlocked
n00b
n00b


Joined: 24 Oct 2004
Posts: 53
Location: Austin, Tx.

PostPosted: Sun Mar 06, 2005 7:40 am    Post subject: Reply with quote

Once it bails on the reemerge of emu glibc delete the symlinks and /lib32 again and copy over the files for the boot strap except also copy libc.so.6 symlink and the lib it is symlinked to into /lib32. also copy over libc_nonshared.a to /usr/lib32. now try oneshot glibc.
_________________
abit av8 (939), 3000+, 1gig ram, ti4400, dc10+, 120gig sata, audigy2.
Back to top
View user's profile Send private message
unlocked
n00b
n00b


Joined: 24 Oct 2004
Posts: 53
Location: Austin, Tx.

PostPosted: Sun Mar 06, 2005 7:45 am    Post subject: Reply with quote

I sure hope this doesn't have to be done with every rebuild of glibc :)
_________________
abit av8 (939), 3000+, 1gig ram, ti4400, dc10+, 120gig sata, audigy2.
Back to top
View user's profile Send private message
unlocked
n00b
n00b


Joined: 24 Oct 2004
Posts: 53
Location: Austin, Tx.

PostPosted: Sun Mar 06, 2005 8:26 am    Post subject: Reply with quote

Ok the problem is funky. Is a 04multilib required to build glibc in 2005.0. Cause once it is installed and you try to rebuild, it bails with the long double problem cause it can find libc.so.6 for x86 build.



Code:

configure:7092: checking size of long double
configure:7411: x86_64-pc-linux-gnu-gcc -o conftest -march=athlon64 -pipe -O2 -O2  -Wl,-O1 -Wl,-z,now conftest.c  >&5
configure:7414: $? = 0
configure:7416: ./conftest
./conftest: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
configure:7419: $? = 127
configure: program exited with status 127
configure: failed program was:




woot ok just run emerge baselayout after the instruction to unmerge emu-linux-x86-glibc. you have to have the /etc/04multilib to rebuild glibc once it is installed under 2005.0
_________________
abit av8 (939), 3000+, 1gig ram, ti4400, dc10+, 120gig sata, audigy2.
Back to top
View user's profile Send private message
andrewd18
Guru
Guru


Joined: 11 Apr 2004
Posts: 364
Location: Wisconsin, USA

PostPosted: Wed Mar 16, 2005 6:46 am    Post subject: Reply with quote

I too had this problem. I ran the following steps, after reading Shake's message.

1) Switched back to 2004.3

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

2) Re-emerged glibc and gcc. I also did the emuls again for good measure.

emerge emul-linux-x86-glibc glibc gcc

3) Prepare for switch to 2005.0 profile

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

4) Emerged baselayout

emerge -v --oneshot baselayout

5) Switched to 2005.0 profile

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

6) Re-emerged glibc again.

emerge -v --oneshot '>=sys-libs/glibc-2.3.4.20041102'



From there I continued to follow the manual instructions laid out at the upgrade how-to.

QAPLA'.

~~ Andrew D.
_________________
Keep Your Toolchain Stable! - emwrap.sh

There's no place like ::1
Back to top
View user's profile Send private message
Little Nemo
l33t
l33t


Joined: 29 Mar 2004
Posts: 623
Location: Berlin, Germany

PostPosted: Sat Apr 02, 2005 12:27 pm    Post subject: Reply with quote

andrewd18 wrote:
6) Re-emerged glibc again.

emerge -v --oneshot '>=sys-libs/glibc-2.3.4.20041102'


I followed your advice, but this is what
Code:
emerge -pv --oneshot glibc

says on my system (I do not have -multilib in my make.conf):

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild R ] sys-libs/glibc-2.3.4.20041102-r1 -build -debug -erandom -hardened (-multilib)* +nls -nomalloccheck -nptl -nptlonly -pic [color=red]+userlocales 0 kB

Any idea why it might say (-multilib)* ?

By the way, when I go ahead with the emerge in spite of the latter problem, I get the sizeof problem again :x
Back to top
View user's profile Send private message
JLP
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2003
Posts: 143
Location: Slovenia

PostPosted: Sun Apr 03, 2005 7:08 pm    Post subject: Reply with quote

I tried everything here but I still get this error message:

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.4.20050125-r1 failed.
!!! Function glibc_do_configure, Line 867, Exitcode 1
!!! failed to configure glibc
!!! If you need support, post the topmost build error, NOT this status message.

What is going on with switching to 2005.0? Will I have to completely reinstall the system or what?
_________________
Live long and prosper!
Back to top
View user's profile Send private message
Little Nemo
l33t
l33t


Joined: 29 Mar 2004
Posts: 623
Location: Berlin, Germany

PostPosted: Sun Apr 03, 2005 10:24 pm    Post subject: Reply with quote

JLP wrote:
What is going on with switching to 2005.0? Will I have to completely reinstall the system or what?


You can always do what I did (for the time being) and go back to 2004.3. Just recompile glibc and gcc (and the emul-libs, in case you need those) after switching back and reinstalling the symlinks.
Back to top
View user's profile Send private message
JLP
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2003
Posts: 143
Location: Slovenia

PostPosted: Sun Apr 03, 2005 10:36 pm    Post subject: Reply with quote

Yeah it looks like this is what I will have to do. I just can't get glibc compiling whatever I try to do. Should there be a bug filed about this problem? So that the developers can try to fix the problem or fix the documentation for profile upgrading if there is something wrong?
_________________
Live long and prosper!
Back to top
View user's profile Send private message
hkfczrqj
n00b
n00b


Joined: 14 Dec 2004
Posts: 43
Location: Rochester, MN

PostPosted: Mon Apr 04, 2005 2:20 am    Post subject: Reply with quote

Hi,

I also got the "sizeof" problem, I followed andewd18's advice and finished the HOWTO. I thought it was OK, but then I tried to emerge a progam, and I got the following error:

Code:
checking whether the C compiler (x86_64-pc-linux-gnu-gcc -pipe -march=k8 -fPIC ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.


Then I tried to reemerge gcc, but
Code:
checking for a BSD compatible install... /bin/install -c
*** This configuration is not supported in the following subdirectories:
     target-libffi target-boehm-gc target-zlib target-libjava zlib fastjar target-libobjc
    (Any other directories should still work fine.)
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -O2 -pipe -march=k8   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.


Anybody has a similar problem?

PJ
Back to top
View user's profile Send private message
Little Nemo
l33t
l33t


Joined: 29 Mar 2004
Posts: 623
Location: Berlin, Germany

PostPosted: Mon Apr 04, 2005 12:00 pm    Post subject: Reply with quote

To all of you experiencing the sizeof problem: Does "emerge -pv --oneshot glibc" also indicate (-multilib)? The emerge-manpage says:

Quote:
A USE flag in parenthesis is always disabled and shows that the flag is not available for the current system profile.


Seems strange, as 2005.0 should have multilib available, as it requires it :wink:

I have a feeling this could be the root of the problem, would you let me know whether you see the same, please?
Back to top
View user's profile Send private message
ballyn
n00b
n00b


Joined: 14 Aug 2003
Posts: 73

PostPosted: Mon Apr 04, 2005 8:58 pm    Post subject: Reply with quote

Yes, I get the (-mutilib) flag as well. I think this is correct and is forced in the profile (maybe by the multilib-strict feature?). Note that a gcc emerge forces this flag as well...

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).
Back to top
View user's profile Send private message
Little Nemo
l33t
l33t


Joined: 29 Mar 2004
Posts: 623
Location: Berlin, Germany

PostPosted: Tue Apr 05, 2005 6:11 am    Post subject: Reply with quote

ballyn wrote:
Yes, I get the (-mutilib) flag as well. I think this is correct and is forced in the profile (maybe by the multilib-strict feature?). Note that a gcc emerge forces this flag as well...


I doubt whether that's okay. Are you able to run 32 bit apps after unmerging the emul-libs in 2005.0? The stubs should be sufficient for this, but of course you need a multilib glibc.
Back to top
View user's profile Send private message
marvin rouge
Veteran
Veteran


Joined: 01 Aug 2004
Posts: 1422
Location: Villa Lumierrante, Zonelibre

PostPosted: Tue Apr 05, 2005 6:34 am    Post subject: Reply with quote

Little Nemo wrote:
To all of you experiencing the sizeof problem: Does "emerge -pv --oneshot glibc" also indicate (-multilib)? The emerge-manpage says:
Quote:
A USE flag in parenthesis is always disabled and shows that the flag is not available for the current system profile.

Seems strange, as 2005.0 should have multilib available, as it requires it :wink:
I have a feeling this could be the root of the problem, would you let me know whether you see the same, please?

here you go :wink:
Back to top
View user's profile Send private message
Little Nemo
l33t
l33t


Joined: 29 Mar 2004
Posts: 623
Location: Berlin, Germany

PostPosted: Tue Apr 05, 2005 8:35 am    Post subject: Reply with quote

Maybe someone who has successfully upgraded to 2005.4 by following the HOWTO could comment on this. Does "emerge -pv --oneshot glibc" indicate (-multilib) on your systems?
Back to top
View user's profile Send private message
herbie
Guru
Guru


Joined: 09 Oct 2002
Posts: 319
Location: London UK

PostPosted: Tue Apr 05, 2005 11:11 am    Post subject: Reply with quote

Little Nemo wrote:
Maybe someone who has successfully upgraded to 2005.4 by following the HOWTO could comment on this. Does "emerge -pv --oneshot glibc" indicate (-multilib) on your systems?


Yes this is quite normal and is simply an indication that the multilib use flag is no longer used with 2005.0. A multilib toolchain is built by default unless you use the 2005.0/no-multilib profile.
Back to top
View user's profile Send private message
Little Nemo
l33t
l33t


Joined: 29 Mar 2004
Posts: 623
Location: Berlin, Germany

PostPosted: Tue Apr 05, 2005 12:33 pm    Post subject: Reply with quote

herbie wrote:

Yes this is quite normal and is simply an indication that the multilib use flag is no longer used with 2005.0. A multilib toolchain is built by default unless you use the 2005.0/no-multilib profile.


Aah, great. That means that I have to search elsewhere :wink: Thanks so much for clarifying!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
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