Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 108248

Summary: glibc-2.3.5-r2 fails with: cannot compute sizeof (long double)
Product: Gentoo Linux Reporter: petr bravenec <petr>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED DUPLICATE    
Severity: normal CC: amd64, david
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: config.log

Description petr bravenec 2005-10-05 23:05:50 UTC
Looks like duplicate of 82304 or 104838. As writen in these bug reports i tried:
1. install emul-linux-x86-{glibc|baselibs|compat} nothing changed
2. recompile portage - OK: find /lib /usr -name 'libsandbox*' -print
   /usr/lib64/libsandbox.so.0.0.0
   /usr/lib64/libsandbox.so.0
   /usr/lib64/libsandbox.so
   /usr/lib64/libsandbox.la
   /usr/lib32/libsandbox.so.0.0.0
   /usr/lib32/libsandbox.so.0
   /usr/lib32/libsandbox.so
   /usr/lib32/libsandbox.la
3. add -L /emul/linux/x86/lib to CFLAGS 
4. double checked that /usr/lib exists and references to /usr/lib64

glibc is allready installed but i want to have it recompiled because of the
error compiling gcc-3.4.4-r1:  cannot run C compiled programs.

both errors (glibc and gcc) are caused by:
./a.out: Accessing a corrupted shared library

The same message i'v got when i ran grub:
-bash: /sbin/grub: Accessing a corrupted shared library
Grub complained yet before my experiments with glibc and gcc compilation.

As i can remember the message changed and is not the same as when i first tried
to emerge gcc and glibc but the error remains on the same place


Reproducible: Always
Steps to Reproduce:
1.emerge glibc
2.
3.

Actual Results:  
fails with:
checking size of long double... configure: error: cannot compute sizeof (long
double), 77


Expected Results:  
glibc should be compiled

Portage 2.0.51.22-r2 (default-linux/amd64/2005.1, gcc-3.4.3, glibc-2.3.5-r1,
2.6.12-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.13
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=k8 -ffast-math -funroll-all-loops -fpeel-loops -ftracer
-funswitch-loops -funit-at-a-time"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=k8 -ffast-math -funroll-all-loops -fpeel-loops -ftracer
-funswitch-loops -funit-at-a-time"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://files.gentoo.gr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X alsa avi berkdb bitmap-fonts crypt cups eds emboss encode
foomaticdb fortran gd gdbm gif gstreamer gtk gtk2 imlib jpeg ldap libwww lzw
lzw-tiff mp3 mpeg ncurses nls opengl pam pdflib perl png postgres python
quicktime readline sdl spell ssl tcpd tiff truetype truetype-fonts type1-fonts
usb userlocales xml2 xpm xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

------------------------------
Part of config.log:
configure:7101: checking size of long double
configure:7420: x86_64-pc-linux-gnu-gcc -o conftest -march=k8 -O2   conftest.c
>&5
configure:7423: $? = 0
configure:7425: ./conftest
/var/tmp/portage/glibc-2.3.5-r1/work/glibc-2.3.5/configure: line 7426:
./conftest: Accessing a corrupted shared library
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-10-06 06:28:04 UTC
Attach config.log and reopen then.
Comment 2 petr bravenec 2005-10-06 06:47:05 UTC
Created attachment 69983 [details]
config.log
Comment 3 petr bravenec 2005-10-06 06:50:07 UTC
Comment on attachment 69983 [details]
config.log

I have attached config.log from other machine with the same problem. On the
first amd64 i'v changed profile to no-multilib and recompiled system - problem
disapeared.
Comment 4 petr bravenec 2005-10-06 06:52:29 UTC
attached more info / config.log
Comment 5 SpanKY gentoo-dev 2005-10-06 08:13:25 UTC
try this:
/lib64/libc.so.6
/lib32/libc.so.6

echo 'int main(){}' > test.c
gcc -o test test.c
./test
gcc -o test -m32 test.c
./test
Comment 6 SpanKY gentoo-dev 2005-10-06 08:14:39 UTC
*** Bug 108272 has been marked as a duplicate of this bug. ***
Comment 7 SpanKY gentoo-dev 2005-10-06 08:16:56 UTC

*** This bug has been marked as a duplicate of 105535 ***