View previous topic :: View next topic |
Author |
Message |
a_smartboy8 n00b
Joined: 21 Nov 2006 Posts: 69
|
Posted: Mon Jan 22, 2007 10:33 pm Post subject: Glibc & Gcc failed- cannot compute sizeof (long double), |
|
|
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 |
|
|
Letharion Veteran
Joined: 13 Jun 2005 Posts: 1344 Location: Sweden
|
|
Back to top |
|
|
a_smartboy8 n00b
Joined: 21 Nov 2006 Posts: 69
|
Posted: Tue Jan 23, 2007 9:59 pm Post subject: |
|
|
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, |
|
Back to top |
|
|
a_smartboy8 n00b
Joined: 21 Nov 2006 Posts: 69
|
Posted: Wed Jan 24, 2007 4:23 pm Post subject: |
|
|
Can anybody help me to sort this out?
Thanks in advance |
|
Back to top |
|
|
Letharion Veteran
Joined: 13 Jun 2005 Posts: 1344 Location: Sweden
|
Posted: Wed Jan 24, 2007 5:00 pm Post subject: |
|
|
Tried asking for help on IRC? |
|
Back to top |
|
|
amenus n00b
Joined: 28 Mar 2005 Posts: 8 Location: Warsaw/Poland
|
Posted: Sun Feb 04, 2007 5:04 pm Post subject: |
|
|
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 |
|
|
a_smartboy8 n00b
Joined: 21 Nov 2006 Posts: 69
|
Posted: Sun Feb 04, 2007 7:52 pm Post subject: |
|
|
True. I am stuck almost for a month now. still no one could solve it. |
|
Back to top |
|
|
sergeyn n00b
Joined: 29 Jan 2006 Posts: 10
|
Posted: Sat Feb 17, 2007 11:25 pm Post subject: |
|
|
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 |
|
|
NismoC32 Apprentice
Joined: 07 Apr 2003 Posts: 214
|
Posted: Sat May 05, 2007 10:55 pm Post subject: |
|
|
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 |
|
|
ianomc n00b
Joined: 12 Nov 2004 Posts: 21
|
Posted: Wed May 09, 2007 1:17 pm Post subject: I have this problem too |
|
|
I have this problem too _________________ ---------------------------------
Ian McLoughlin |
|
Back to top |
|
|
cisacchi n00b
Joined: 23 May 2007 Posts: 1
|
Posted: Wed May 23, 2007 10:21 am Post subject: solved!!! |
|
|
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
Ce |
|
Back to top |
|
|
JaquesStrap n00b
Joined: 01 Jul 2003 Posts: 47
|
Posted: Thu Jun 07, 2007 4:10 pm Post subject: |
|
|
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 |
|
|
alphamaennchen n00b
Joined: 05 Sep 2005 Posts: 40
|
Posted: Sun May 25, 2008 8:55 am Post subject: |
|
|
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 |
|
|
|