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
  • 1
  • 2
  • 3
  • Next
Author
Message
Trevoke
Advocate
Advocate
User avatar
Posts: 4099
Joined: Sat Sep 04, 2004 6:01 pm
Location: NY, NY
Contact:
Contact Trevoke
Website

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

  • Quote

Post by Trevoke » Fri Feb 11, 2005 1:30 am

# emerge -v --oneshot '>=sys-libs/glibc-2.3.4.20041102'
blah blah blah ...
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.
Last edited by Trevoke on Fri Feb 11, 2005 1:50 am, edited 3 times in total.
Votre moment detente
What is the nature of conflict?
Top
Trevoke
Advocate
Advocate
User avatar
Posts: 4099
Joined: Sat Sep 04, 2004 6:01 pm
Location: NY, NY
Contact:
Contact Trevoke
Website

  • Quote

Post by Trevoke » Fri Feb 11, 2005 1:49 am

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?
Top
Shake
n00b
n00b
Posts: 59
Joined: Tue Jun 29, 2004 9:42 pm

  • Quote

Post by Shake » Fri Feb 11, 2005 5:37 pm

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

Thanks
Top
Trevoke
Advocate
Advocate
User avatar
Posts: 4099
Joined: Sat Sep 04, 2004 6:01 pm
Location: NY, NY
Contact:
Contact Trevoke
Website

  • Quote

Post by Trevoke » Fri Feb 11, 2005 6:29 pm

Assuming you have already gone to 2005.0.

Code: Select all

# cd /usr/portage/profiles/default-linux/amd64/2005.0/
nano package.mask
# 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: Select all

# 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: Select all

# emerge emul-linux-x86-glibc
to install the -1000 stub.
Votre moment detente
What is the nature of conflict?
Top
tcbounce
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 86
Joined: Tue Nov 18, 2003 2:13 pm
Location: South Korea

tried it -

  • Quote

Post by tcbounce » Sat Feb 12, 2005 4:18 am

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
Top
Trevoke
Advocate
Advocate
User avatar
Posts: 4099
Joined: Sat Sep 04, 2004 6:01 pm
Location: NY, NY
Contact:
Contact Trevoke
Website

  • Quote

Post by Trevoke » Sat Feb 12, 2005 6:54 am

What version of emul-linux-x86-glibc is it installing?
Votre moment detente
What is the nature of conflict?
Top
Shake
n00b
n00b
Posts: 59
Joined: Tue Jun 29, 2004 9:42 pm

  • Quote

Post by Shake » Sat Feb 12, 2005 3:45 pm

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...
Top
what.
n00b
n00b
User avatar
Posts: 12
Joined: Sat Feb 05, 2005 3:40 am
Contact:
Contact what.
Website

  • Quote

Post by what. » Fri Feb 18, 2005 8:00 am

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.)
Top
Plouj
n00b
n00b
Posts: 12
Joined: Tue Mar 01, 2005 6:38 am
Contact:
Contact Plouj
Website

  • Quote

Post by Plouj » Tue Mar 01, 2005 6:54 am

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/amd6 ... t=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"
Top
unlocked
n00b
n00b
User avatar
Posts: 53
Joined: Sun Oct 24, 2004 4:02 pm
Location: Austin, Tx.
Contact:
Contact unlocked
Website

  • Quote

Post by unlocked » Sun Mar 06, 2005 7:40 am

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.
Top
unlocked
n00b
n00b
User avatar
Posts: 53
Joined: Sun Oct 24, 2004 4:02 pm
Location: Austin, Tx.
Contact:
Contact unlocked
Website

  • Quote

Post by unlocked » Sun Mar 06, 2005 7:45 am

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.
Top
unlocked
n00b
n00b
User avatar
Posts: 53
Joined: Sun Oct 24, 2004 4:02 pm
Location: Austin, Tx.
Contact:
Contact unlocked
Website

  • Quote

Post by unlocked » Sun Mar 06, 2005 8:26 am

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: Select all

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.
Top
andrewd18
Guru
Guru
User avatar
Posts: 364
Joined: Sun Apr 11, 2004 4:21 pm
Location: Wisconsin, USA

  • Quote

Post by andrewd18 » Wed Mar 16, 2005 6:46 am

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
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 » Sat Apr 02, 2005 12:27 pm

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: Select all

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 +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
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 » Sun Apr 03, 2005 7:08 pm

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!
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 » Sun Apr 03, 2005 10:24 pm

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.
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 » Sun Apr 03, 2005 10:36 pm

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!
Top
hkfczrqj
n00b
n00b
Posts: 43
Joined: Tue Dec 14, 2004 7:39 pm
Location: Rochester, MN

  • Quote

Post by hkfczrqj » Mon Apr 04, 2005 2:20 am

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: Select all

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: Select all

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
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 » Mon Apr 04, 2005 12:00 pm

To all of you experiencing the sizeof problem: Does "emerge -pv --oneshot glibc" also indicate (-multilib)? The emerge-manpage says:
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?
Top
ballyn
n00b
n00b
Posts: 73
Joined: Thu Aug 14, 2003 3:17 pm

  • Quote

Post by ballyn » Mon Apr 04, 2005 8:58 pm

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).
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 6:11 am

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.
Top
marvin rouge
Veteran
Veteran
User avatar
Posts: 1422
Joined: Sun Aug 01, 2004 10:28 am
Location: Villa Lumierrante, Zonelibre
Contact:
Contact marvin rouge
Website

  • Quote

Post by marvin rouge » Tue Apr 05, 2005 6:34 am

Little Nemo wrote:To all of you experiencing the sizeof problem: Does "emerge -pv --oneshot glibc" also indicate (-multilib)? The emerge-manpage says:
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:
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 8:35 am

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?
Top
herbie
Guru
Guru
User avatar
Posts: 319
Joined: Wed Oct 09, 2002 10:08 am
Location: London UK

  • Quote

Post by herbie » Tue Apr 05, 2005 11:11 am

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.
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 12:33 pm

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!
Top
Locked

54 posts
  • 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