Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Glibc & Gcc failed- cannot compute sizeof (long double), 77
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
a_smartboy8
n00b
n00b


Joined: 21 Nov 2006
Posts: 69

PostPosted: Mon Jan 22, 2007 10:33 pm    Post subject: Glibc & Gcc failed- cannot compute sizeof (long double), Reply with quote

Hi All,

I tried to do an emerge -e system and it resulted in the portage causing error for gcc and then for glibc

So i compiled Glibc separate with

Code:

us="multilib" features="-sandbox" emerge glibc



But that resulted in the following error

Code:


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

!!! ERROR: sys-libs/glibc-2.4-r4 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  glibc-2.4-r4.ebuild, line 1163:   Called src_compile
  glibc-2.4-r4.ebuild, line 1174:   Called toolchain-glibc_src_compile
  glibc-2.4-r4.ebuild, line 257:   Called glibc_do_configure 'nptl'
  glibc-2.4-r4.ebuild, line 925:   Called die




Then i left glibc and tried to compile GCC which resulted in the following error
Code:


/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../libc.so when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../libc.a when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[3]: *** [32/libgcc_s.so] Error 1
make[3]: Leaving directory `/var/tmp/portage/gcc-4.1.1-r1/work/build/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/var/tmp/portage/gcc-4.1.1-r1/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-4.1.1-r1/work/build/gcc'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-4.1.1-r1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 1255:   Called toolchain_src_compile
  toolchain.eclass, line 24:   Called gcc_src_compile
  toolchain.eclass, line 1536:   Called gcc_do_make
  toolchain.eclass, line 1410:   Called die

!!! emake failed with profiledbootstrap




My emerge --info gives the following

Code:

Gentoo Base System version 1.12.6
Portage 2.1.1-r2 (default-linux/amd64/2006.0, gcc-3.4.4, glibc-2.4-r4, 2.6.18-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r3 x86_64 AMD Opteron(tm) Processor 250
Last Sync: Tue, 12 Dec 2006 18:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/terminfo"
CXXFLAGS="-march=opteron -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa apache2 bitmap-fonts cli cracklib crypt cups dga dlloader dri eds elibc_glibc emboss encode fbcon foomaticdb fortran gd gif gpm gstreamer gtk gtk2 iconv imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog java jikes jpeg kernel_linux lzw lzw-tiff mailwrapper mng mp3 mpeg mysql ncurses nptl nptlonly oggvorbis opengl pam pcre png pppd python qt3 qt4 quicktime readline reflection samba sdl session spell spl ssl tcpd tiff truetype truetype-fonts type1-fonts usb userland_GNU userlocales video_cards_nvidia xorg xpm xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS



Can anyone please help me to correct this error. Any help will be appreciated
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1259
Location: Sweden

PostPosted: Tue Jan 23, 2007 8:49 am    Post subject: Reply with quote

I think I've had this problem too, but I'm not sure what I did about it. Dug up some links.

http://www.linuxquestions.org/questions/showthread.php?t=302148
http://linuxfromscratch.org/pipermail/faq/2004-May/000142.html
http://sources.redhat.com/ml/crossgcc/2004-05/msg00003.html

Well, now I remeber.
http://forums.gentoo.org/viewtopic-t-501741-highlight-.html
I said fu 64 bit and started over with 32. Kinda sad, I hope you have better luck than I did.
Back to top
View user's profile Send private message
a_smartboy8
n00b
n00b


Joined: 21 Nov 2006
Posts: 69

PostPosted: Tue Jan 23, 2007 9:59 pm    Post subject: Reply with quote

Letharion wrote:


Well, now I remeber.
http://forums.gentoo.org/viewtopic-t-501741-highlight-.html
I said fu 64 bit and started over with 32. Kinda sad, I hope you have better luck than I did.


Thanks Letharion. But it didn't work at all

I tried so many variations.

1. firstly added ntpl & ntpl flags to /etc/make. conf use flages
2. Used the following command

Code:

use="multilib" features="-sandbox" emerge glibc


Which didn't work.
3. so used the following

Code:
 use="multilib" features="-sandbox" ACCEPT_KEYWORDS="~amd64" emerge glibc


Which also didn't work.

Anyone has any suggestions?? I desperately need some help, :cry:
Back to top
View user's profile Send private message
a_smartboy8
n00b
n00b


Joined: 21 Nov 2006
Posts: 69

PostPosted: Wed Jan 24, 2007 4:23 pm    Post subject: Reply with quote

Can anybody help me to sort this out?

Thanks in advance
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1259
Location: Sweden

PostPosted: Wed Jan 24, 2007 5:00 pm    Post subject: Reply with quote

Tried asking for help on IRC?
Back to top
View user's profile Send private message
amenus
n00b
n00b


Joined: 28 Mar 2005
Posts: 8
Location: Warsaw/Poland

PostPosted: Sun Feb 04, 2007 5:04 pm    Post subject: Reply with quote

It seems to be a common problem, because I also have the same with my emerge glibc. And on other forums there's also no working solution.
Back to top
View user's profile Send private message
a_smartboy8
n00b
n00b


Joined: 21 Nov 2006
Posts: 69

PostPosted: Sun Feb 04, 2007 7:52 pm    Post subject: Reply with quote

True. I am stuck almost for a month now. still no one could solve it.
Back to top
View user's profile Send private message
sergeyn
n00b
n00b


Joined: 29 Jan 2006
Posts: 10

PostPosted: Sat Feb 17, 2007 11:25 pm    Post subject: Reply with quote

I got the same problem when I switched from no-multilib to desktop profile
the solution was to firs reemerge gcc, and then emerge glibc

Regards,
Sergey.
Back to top
View user's profile Send private message
NismoC32
Tux's lil' helper
Tux's lil' helper


Joined: 07 Apr 2003
Posts: 145

PostPosted: Sat May 05, 2007 10:55 pm    Post subject: Reply with quote

Same problem here, brand new amd64 install with ~amd64 keyword.
I can't compile gcc or sandbox aether, they both give me this error:
checking whether the C compiler works... configure: error: cannot run C compiled programs

any idea ?
Back to top
View user's profile Send private message
ianomc
n00b
n00b


Joined: 12 Nov 2004
Posts: 21

PostPosted: Wed May 09, 2007 1:17 pm    Post subject: I have this problem too Reply with quote

I have this problem too :(
_________________
---------------------------------
Ian McLoughlin
Back to top
View user's profile Send private message
cisacchi
n00b
n00b


Joined: 23 May 2007
Posts: 1

PostPosted: Wed May 23, 2007 10:21 am    Post subject: solved!!! Reply with quote

I was in the same situation and finally I solved adding, in kernel configuration, support for 32bit code emulation

-Executable file formats
---[*] IA32 Emulation
---<*>IA32 a.out support

I've just finished compile gcc and glibc without error :D

Ce
Back to top
View user's profile Send private message
JaquesStrap
n00b
n00b


Joined: 01 Jul 2003
Posts: 47

PostPosted: Thu Jun 07, 2007 4:10 pm    Post subject: Reply with quote

I had this problem, but added the kernel support suggested by cisacchi and this solved it for me as well.
Thanks very much!!
Back to top
View user's profile Send private message
alphamaennchen
n00b
n00b


Joined: 05 Sep 2005
Posts: 40

PostPosted: Sun May 25, 2008 8:55 am    Post subject: Reply with quote

I can confirm this.

I cannot compile gcc, glibc and sandbox.

The problem is maybe that linking against 32 bit does not work anymore. Maybe it would work if we switched to the non-multilib profile.

But then we're stuck with pure 64 bit....

Any other idea?
_________________
linux is a wigwam: no windows, no gates, apache inside!

Desktop: AMD64 3400+, GeForce 7800GS, Gentoo
Notebook (Asus A8jp): Core 2 Duo 2,0 (T7200), ATI X1700, Kubuntu
PDA: Zaurus SL-6000

linux is user friendly! however, it is not idiot friendly....
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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