Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
compiling glibc: long double... configure: error:
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Tue Aug 02, 2005 12:59 pm    Post subject: compiling glibc: long double... configure: error: Reply with quote

Now before you tell me to use the search function. i really did and found at least 2-3 threads but no solution.

Full error:
Code:

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


I tried these solutions:
Remove LDFLAGS,
Cut down on CFLAGS,
Reemerge baselayout
Remove /emul and reemerge all the emul-* stuff.

and others i cant remember, but nothign seems to work.

I installed using the 2005.0 cd so ive been using the 2005.0 profile since the day i installed it so i dont see how multilib could be the problem.

emerge info
Code:

elevator petr # emerge info
Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12-mm2-MortalCoil x86_64)
=================================================================
System uname: 2.6.12-mm2-MortalCoil x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre3
dev-lang/python:     2.3.4-r1, 2.4.1-r1
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r7
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.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -m64 -pipe -fomit-frame-pointer -ftracer -funroll-loops -funswitch-loops -funit-at-a-time -fpeel-loops -fprefetch-loop-arrays "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=k8 -m64 -pipe -fomit-frame-pointer -ftracer -funroll-loops -funswitch-loops -funit-at-a-time -fpeel-loops -fprefetch-loop-arrays "
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://planetmirror.com/pub/gentoo"
LANG="cs_CZ.UTF-8"
LC_ALL="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/share/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aac aalib alsa apache2 avi berkdb bitmap-fonts cdr crypt cups curl dvd dvdr dvdread eds encode esd fam ffmpeg foomaticdb fortran gif glitz gpm gstreamer gtk gtk2 imagemagick imlib ipv6 java jpeg lzw lzw-tiff mad mozilla mp3 mpeg ncurses nls nptl nptlonly nvidia ogg oggvorbis opengl pam pdflib perl pic png ppds python quicktime readline samba scanner sdl slang spell ssl tcpd tiff truetype-fonts type1-fonts udev unicode usb userlocales v4l vorbis xine xml2 xpm xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LINGUAS, MAKEOPTS

_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
tux2
Apprentice
Apprentice


Joined: 09 Jun 2004
Posts: 172
Location: Germany

PostPosted: Tue Aug 02, 2005 3:58 pm    Post subject: Reply with quote

Code:
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all"

hm.. LDFLAGS .. I had similar problems with LDFLAGS..
sometimes the configure failed so I removed the LDFLAGS-entry from make.conf and recompiled everything.

but I don't know if this fix your problem :roll:
Back to top
View user's profile Send private message
Shapemaker
n00b
n00b


Joined: 22 Aug 2004
Posts: 64
Location: Finland

PostPosted: Tue Aug 02, 2005 10:38 pm    Post subject: Reply with quote

Drop back to glibc-2.3.5 if at all possible. You don't seem to build binary packages by default (FEATURES="buildpkg"), which might have saved you some grief now (as it would be very easy to back down to a working glibc with emerge -k).

I'm seeing this exact same problem, and I'm beginning to suspect that glibc-2.3.5-r1 breaks 32-bit compatibility mode (aka multilib) somehow. On my amd64 system glibc-2.3.5 works (and I'm able to build glibc-2.3.5-r1 without hitch), but trying to rebuild glibc-2.3.5-r1 under itself fails with that "long double" error. I suppose it happens because of a mismatch between emul-linux-x86-something and glibc, but at least removing /emul directory does not help.

Also, consider dropping at least -m64 from your CFLAGS. That is not needed at all, and it could cause problems by itself, as might loop unrolling. If you want to be taken seriously, don't experiment with stupid {LD,C}FLAGS. But you're a veteran here, you should know this by now 8)
_________________
"Intellectual Property" should be an affront to anyone capable of independent thought.
Back to top
View user's profile Send private message
Shapemaker
n00b
n00b


Joined: 22 Aug 2004
Posts: 64
Location: Finland

PostPosted: Tue Aug 02, 2005 10:45 pm    Post subject: Reply with quote

Also, if you look at the aforementioned configure log, you should see that computing the size of long double is not actually the error; instead the conftest executable dies with an error about a corrupted shared library. This is a 32-bit (prebuilt) app, which fails for some reason. I'm yet to determine what the cause is, since strace does not help (no sensible output at all - no shared library loads or anything). Perhaps the 32-bit linker itself dies before anything gets loaded...
_________________
"Intellectual Property" should be an affront to anyone capable of independent thought.
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Wed Aug 03, 2005 12:07 am    Post subject: Reply with quote

tux2 wrote:
Code:
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all"

hm.. LDFLAGS .. I had similar problems with LDFLAGS..
sometimes the configure failed so I removed the LDFLAGS-entry from make.conf and recompiled everything.

but I don't know if this fix your problem :roll:

I did try to remove all LDFLAGS, but that didnt help. I didnt recompile my whole system, im not going to. theres so many packages it could run for a week.
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Wed Aug 03, 2005 12:11 am    Post subject: Reply with quote

Shapemaker wrote:
Drop back to glibc-2.3.5 if at all possible. You don't seem to build binary packages by default (FEATURES="buildpkg"), which might have saved you some grief now (as it would be very easy to back down to a working glibc with emerge -k).

I'm seeing this exact same problem, and I'm beginning to suspect that glibc-2.3.5-r1 breaks 32-bit compatibility mode (aka multilib) somehow. On my amd64 system glibc-2.3.5 works (and I'm able to build glibc-2.3.5-r1 without hitch), but trying to rebuild glibc-2.3.5-r1 under itself fails with that "long double" error. I suppose it happens because of a mismatch between emul-linux-x86-something and glibc, but at least removing /emul directory does not help.

Also, consider dropping at least -m64 from your CFLAGS. That is not needed at all, and it could cause problems by itself, as might loop unrolling. If you want to be taken seriously, don't experiment with stupid {LD,C}FLAGS. But you're a veteran here, you should know this by now 8)

Youre right, this problem started when i installed glibc 2.3.5-r1, however i tried to go back to 2.3.5 but i get the same error. My CFLAGS arent the problem, I wouldnt post errors with monstrous CFLAGS, when i get an error i always cut down on cflags and ldflags first but in this case theres no effect.
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
crazycat
l33t
l33t


Joined: 26 Aug 2003
Posts: 838
Location: Hamburg, Germany

PostPosted: Wed Aug 03, 2005 12:51 am    Post subject: Reply with quote

So why didn't you
Quote:

See `config.log' for more details.

if nothing else helps?
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Wed Aug 03, 2005 1:10 am    Post subject: Reply with quote

crazycat wrote:
So why didn't you
Quote:

See `config.log' for more details.

if nothing else helps?

I did have a look into it, but theres so much stuff in it and i was half a sleep, and my brain didnt know where to look. I will copy/paste it as soon as i get home, so you guys can give me an advice about whats wrong.
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Wed Aug 03, 2005 9:18 am    Post subject: Reply with quote

config.log
Code:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by GNU C Library configure (see version.h), which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ /var/tmp/portage/glibc-2.3.5-r1/work/glibc-2.3.5/configure --disable-dev-erandom --with-tls --with-__thread --enable-add-ons=nptl,c_stubs,libidn --enable-kernel=2.6.6 --without-selinux --without-cvs --enable-bind-now --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --disable-profile --without-gd --with-headers=/usr/include --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --libexecdir=/usr/lib/misc/glibc

## --------- ##
## Platform. ##
## --------- ##

hostname = elevator
uname -m = x86_64
uname -r = 2.6.12-mm2-MortalCoil
uname -s = Linux
uname -v = #2 Tue Jul 12 23:12:59 EST 2005

/usr/bin/uname -p = AMD Athlon(tm) 64 Processor 3000+
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /sbin
PATH: /usr/sbin
PATH: /usr/lib/portage/bin
PATH: /bin
PATH: /usr/bin
PATH: /opt/bin
PATH: /usr/x86_64-pc-linux-gnu/gcc-bin/3.4.4
PATH: /opt/blackdown-jdk-1.4.2.02/bin
PATH: /opt/blackdown-jdk-1.4.2.02/jre/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1715: checking build system type
configure:1733: result: i686-pc-linux-gnu
configure:1741: checking host system type
configure:1755: result: i686-pc-linux-gnu
configure:1887: result: running configure fragment for add-on nptl
configure:1887: result: running configure fragment for add-on c_stubs
configure:1887: result: running configure fragment for add-on libidn
configure:2007: checking sysdep dirs
configure:2223: result: sysdeps/generic/elf sysdeps/generic
configure:2242: checking for a BSD-compatible install
configure:2297: result: /bin/install -c
configure:2312: checking whether ln -s works
configure:2316: result: yes
configure:2332: checking for i686-pc-linux-gnu-gcc
configure:2358: result: x86_64-pc-linux-gnu-gcc
configure:2640: checking for C compiler version
configure:2643: x86_64-pc-linux-gnu-gcc --version </dev/null >&5
x86_64-pc-linux-gnu-gcc (GCC) 3.4.4 (Gentoo 3.4.4, ssp-3.4.4-1.0, pie-8.7.8)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2646: $? = 0
configure:2648: x86_64-pc-linux-gnu-gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/specs
Configured with: /var/tmp/portage/gcc-3.4.4/work/gcc-3.4.4/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.4 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/include/g++-v3 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.4.4 (Gentoo 3.4.4, ssp-3.4.4-1.0, pie-8.7.8)
configure:2651: $? = 0
configure:2653: x86_64-pc-linux-gnu-gcc -V </dev/null >&5
x86_64-pc-linux-gnu-gcc: `-V' must come at the start of the command line
configure:2656: $? = 1
configure:2660: checking for suffix of object files
configure:2681: x86_64-pc-linux-gnu-gcc -c -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  conftest.c >&5
configure:2684: $? = 0
configure:2706: result: o
configure:2710: checking whether we are using the GNU C compiler
configure:2734: x86_64-pc-linux-gnu-gcc -c -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  conftest.c >&5
configure:2740: $? = 0
configure:2744: test -z
          || test ! -s conftest.err
configure:2747: $? = 0
configure:2750: test -s conftest.o
configure:2753: $? = 0
configure:2766: result: yes
configure:2772: checking whether x86_64-pc-linux-gnu-gcc accepts -g
configure:2793: x86_64-pc-linux-gnu-gcc -c -g  conftest.c >&5
configure:2799: $? = 0
configure:2803: test -z
          || test ! -s conftest.err
configure:2806: $? = 0
configure:2809: test -s conftest.o
configure:2812: $? = 0
configure:2823: result: yes
configure:2840: checking for x86_64-pc-linux-gnu-gcc option to accept ANSI C
configure:2910: x86_64-pc-linux-gnu-gcc  -c -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  conftest.c >&5
configure:2916: $? = 0
configure:2920: test -z
          || test ! -s conftest.err
configure:2923: $? = 0
configure:2926: test -s conftest.o
configure:2929: $? = 0
configure:2947: result: none needed
configure:2965: x86_64-pc-linux-gnu-gcc -c -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  conftest.c >&5
conftest.c:2: error: parse error before "me"
configure:2971: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif
configure:3152: checking how to run the C preprocessor
configure:3187: x86_64-pc-linux-gnu-gcc -E  conftest.c
configure:3193: $? = 0
configure:3225: x86_64-pc-linux-gnu-gcc -E  conftest.c
conftest.c:10:28: ac_nonexistent.h: No such file or directory
configure:3231: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| #define USE_REGPARMS 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3270: result: x86_64-pc-linux-gnu-gcc -E
configure:3294: x86_64-pc-linux-gnu-gcc -E  conftest.c
configure:3300: $? = 0
configure:3332: x86_64-pc-linux-gnu-gcc -E  conftest.c
conftest.c:10:28: ac_nonexistent.h: No such file or directory
configure:3338: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| #define USE_REGPARMS 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3392: checking for i686-pc-linux-gnu-g++
configure:3421: result: no
configure:3392: checking for i686-pc-linux-gnu-c++
configure:3421: result: no
configure:3392: checking for i686-pc-linux-gnu-gpp
configure:3421: result: no
configure:3392: checking for i686-pc-linux-gnu-aCC
configure:3421: result: no
configure:3392: checking for i686-pc-linux-gnu-CC
configure:3421: result: no
configure:3392: checking for i686-pc-linux-gnu-cxx
configure:3421: result: no
configure:3392: checking for i686-pc-linux-gnu-cc++
configure:3421: result: no
configure:3392: checking for i686-pc-linux-gnu-cl
configure:3421: result: no
configure:3392: checking for i686-pc-linux-gnu-FCC
configure:3421: result: no
configure:3392: checking for i686-pc-linux-gnu-KCC
configure:3421: result: no
configure:3392: checking for i686-pc-linux-gnu-RCC
configure:3421: result: no
configure:3392: checking for i686-pc-linux-gnu-xlC_r
configure:3421: result: no
configure:3392: checking for i686-pc-linux-gnu-xlC
configure:3421: result: no
configure:3434: checking for g++
configure:3450: found /usr/bin/g++
configure:3460: result: g++
configure:3476: checking for C++ compiler version
configure:3479: g++ --version </dev/null >&5
g++ (GCC) 3.4.4 (Gentoo 3.4.4, ssp-3.4.4-1.0, pie-8.7.8)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3482: $? = 0
configure:3484: g++ -v </dev/null >&5
Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/specs
Configured with: /var/tmp/portage/gcc-3.4.4/work/gcc-3.4.4/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.4 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/include/g++-v3 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.4.4 (Gentoo 3.4.4, ssp-3.4.4-1.0, pie-8.7.8)
configure:3487: $? = 0
configure:3489: g++ -V </dev/null >&5
g++: argument to `-V' missing

configure:3492: $? = 1
configure:3495: checking whether we are using the GNU C++ compiler
configure:3519: g++ -c -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  conftest.cc >&5
configure:3525: $? = 0
configure:3529: test -z
          || test ! -s conftest.err
configure:3532: $? = 0
configure:3535: test -s conftest.o
configure:3538: $? = 0
configure:3551: result: yes
configure:3557: checking whether g++ accepts -g
configure:3578: g++ -c -g  conftest.cc >&5
configure:3584: $? = 0
configure:3588: test -z
          || test ! -s conftest.err
configure:3591: $? = 0
configure:3594: test -s conftest.o
configure:3597: $? = 0
configure:3608: result: yes
configure:3650: g++ -c -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  conftest.cc >&5
configure:3656: $? = 0
configure:3660: test -z
          || test ! -s conftest.err
configure:3663: $? = 0
configure:3666: test -s conftest.o
configure:3669: $? = 0
configure:3695: g++ -c -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  conftest.cc >&5
conftest.cc: In function `int main()':
conftest.cc:14: error: `exit' undeclared (first use this function)
conftest.cc:14: error: (Each undeclared identifier is reported only once for each function it appears in.)
configure:3701: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| #define USE_REGPARMS 1
| /* end confdefs.h.  */
|
| int
| main ()
| {
| exit (42);
|   ;
|   return 0;
| }
configure:3650: g++ -c -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  conftest.cc >&5
configure:3656: $? = 0
configure:3660: test -z
          || test ! -s conftest.err
configure:3663: $? = 0
configure:3666: test -s conftest.o
configure:3669: $? = 0
configure:3695: g++ -c -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  conftest.cc >&5
configure:3701: $? = 0
configure:3705: test -z
          || test ! -s conftest.err
configure:3708: $? = 0
configure:3711: test -s conftest.o
configure:3714: $? = 0
configure:3841: checking whether /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/as is GNU as
configure:3855: result: yes
configure:3860: checking whether /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld is GNU ld
configure:3874: result: yes
configure:3884: checking for /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/as
configure:3910: result: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/as
configure:3924: checking version of /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/as
configure:3934: result: 2.16.1, ok
configure:3945: checking for /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld
configure:3971: result: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld
configure:3985: checking version of /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld
configure:3995: result: 2.16.1, ok
configure:4010: checking for pwd
configure:4028: found /bin/pwd
configure:4041: result: /bin/pwd
configure:4060: checking for i686-pc-linux-gnu-gcc
configure:4086: result: x86_64-pc-linux-gnu-gcc
configure:4100: checking version of x86_64-pc-linux-gnu-gcc
configure:4110: result: 3.4.4, ok
configure:4121: checking for gnumake
configure:4150: result: no
configure:4121: checking for gmake
configure:4137: found /usr/bin/gmake
configure:4147: result: gmake
configure:4161: checking version of gmake
configure:4171: result: 3.80, ok
configure:4183: checking for gnumsgfmt
configure:4212: result: no
configure:4183: checking for gmsgfmt
configure:4199: found /usr/bin/gmsgfmt
configure:4209: result: gmsgfmt
configure:4223: checking version of gmsgfmt
configure:4233: result: 0.14.4, ok
configure:4244: checking for makeinfo
configure:4260: found /usr/bin/makeinfo
configure:4270: result: makeinfo
configure:4284: checking version of makeinfo
configure:4294: result: 4.8, ok
configure:4305: checking for sed
configure:4321: found /bin/sed
configure:4331: result: sed
configure:4345: checking version of sed
configure:4355: result: 4.1.4, ok
configure:4367: checking for autoconf
configure:4383: found /usr/bin/autoconf
configure:4393: result: autoconf
configure:4407: checking whether autoconf works
configure:4418: result: yes
configure:4456: checking whether ranlib is necessary
configure:4477: result: no
configure:4490: checking LD_LIBRARY_PATH variable
configure:4500: result: ok
configure:4514: checking whether GCC supports -static-libgcc
configure:4525: result: -static-libgcc
configure:4531: checking for bash
configure:4562: result: /bin/sh
configure:4635: checking for gawk
configure:4651: found /bin/gawk
configure:4661: result: gawk
configure:4673: checking for perl
configure:4691: found /usr/bin/perl
configure:4704: result: /usr/bin/perl
configure:4717: checking for install-info
configure:4736: found /usr/bin/install-info
configure:4749: result: /usr/bin/install-info
configure:4758: checking for bison
configure:4777: found /usr/bin/bison
configure:4790: result: /usr/bin/bison
configure:4798: checking for signed size_t type
configure:4813: result: no
configure:4823: checking for libc-friendly stddef.h
configure:4852: x86_64-pc-linux-gnu-gcc -c -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  conftest.c >&5
configure:4858: $? = 0
configure:4862: test -z
          || test ! -s conftest.err
configure:4865: $? = 0
configure:4868: test -s conftest.o
configure:4871: $? = 0
configure:4882: result: yes
configure:4889: checking whether we need to use -P to assemble .S files
configure:4899: x86_64-pc-linux-gnu-gcc   -c conftest.S 1>&5
configure:4902: $? = 0
configure:4910: result: no
configure:4917: checking whether .text pseudo-op must be used

configure:4927: x86_64-pc-linux-gnu-gcc  -c conftest.s 1>&5
configure:4930: $? = 0
configure:4941: result: yes
configure:4945: checking for assembler global-symbol directive
configure:4958: x86_64-pc-linux-gnu-gcc  -c conftest.s 1>&5
configure:4961: $? = 0
configure:4969: result: .globl
configure:4982: checking for .set assembler directive
configure:5008: result: yes
configure:5017: checking for assembler .type directive prefix
configure:5033: x86_64-pc-linux-gnu-gcc  -c conftest.s 1>&5
configure:5036: $? = 0
configure:5044: result: @
configure:5053: checking for .symver assembler directive
configure:5070: result: yes
configure:5072: checking for ld --version-script
configure:5098: x86_64-pc-linux-gnu-gcc -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2 -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all -shared
            -o conftest.so conftest.o
            -nostartfiles -nostdlib
            -Wl,--version-script,conftest.map
             1>&5
configure:5101: $? = 0
configure:5116: result: yes
configure:5140: checking for .previous assembler directive
configure:5150: x86_64-pc-linux-gnu-gcc -c  conftest.s 1>&5
configure:5153: $? = 0
configure:5161: result: yes
configure:5199: checking for .protected and .hidden assembler directive
configure:5211: x86_64-pc-linux-gnu-gcc -c  conftest.s 1>&5
configure:5214: $? = 0
configure:5222: result: yes
configure:5235: checking whether __attribute__((visibility())) is supported
configure:5246: x86_64-pc-linux-gnu-gcc -Werror -S conftest.c -o conftest.s 1>&5
configure:5249: $? = 0
configure:5260: result: yes
configure:5271: checking for broken __attribute__((visibility()))
configure:5283: x86_64-pc-linux-gnu-gcc -Werror -S conftest.c -o conftest.s1>&5
configure:5286: $? = 0
configure:5295: result: no
configure:5305: checking for broken __attribute__((alias()))
configure:5320: x86_64-pc-linux-gnu-gcc -Werror -S conftest.c -o conftest.s 1>&5
configure:5323: $? = 0
configure:5333: result: no
configure:5343: checking whether to put _rtld_local into .sdata section
configure:5357: result: no
configure:5367: checking for .preinit_array/.init_array/.fini_array support
configure:5380: x86_64-pc-linux-gnu-gcc -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all -o conftest conftest.c
           -static -nostartfiles -nostdlib 1>&5
configure:5383: $? = 0
configure:5396: result: yes
configure:5406: checking for libunwind-support in compiler
configure:5423: result: no
configure:5433: checking for -z nodelete option
configure:5445: x86_64-pc-linux-gnu-gcc -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all
           -shared -o conftest.so conftest.c
           -nostartfiles -nostdlib
           -Wl,--enable-new-dtags,-z,nodelete 1>&5
configure:5448: $? = 0
configure:5457: result: yes
configure:5461: checking for -z nodlopen option
configure:5473: x86_64-pc-linux-gnu-gcc -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all
         -shared -o conftest.so conftest.c
         -nostartfiles -nostdlib
         -Wl,--enable-new-dtags,-z,nodlopen 1>&5
configure:5476: $? = 0
configure:5485: result: yes
configure:5489: checking for -z initfirst option
configure:5501: x86_64-pc-linux-gnu-gcc -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all
         -shared -o conftest.so conftest.c
         -nostartfiles -nostdlib
         -Wl,--enable-new-dtags,-z,initfirst 1>&5
configure:5504: $? = 0
configure:5513: result: yes
configure:5517: checking for -z relro option
configure:5524: x86_64-pc-linux-gnu-gcc -v --help 2>&1|grep z relro 1>&5
  -z relro      Create RELRO program header
  -z relro      Create RELRO program header
configure:5527: $? = 0
configure:5531: x86_64-pc-linux-gnu-gcc -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&5
  . = DATA_SEGMENT_RELRO_END (12, .);
configure:5534: $? = 0
configure:5541: result: yes
configure:5551: checking for -Bgroup option
configure:5562: x86_64-pc-linux-gnu-gcc -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all
               -shared -o conftest.so conftest.c
               -Wl,-Bgroup -nostdlib 1>&5
configure:5565: $? = 0
configure:5574: result: yes
configure:5578: checking for libgcc_s suffix
configure:5592: result: _32
configure:5596: checking for --as-needed option
configure:5608: x86_64-pc-linux-gnu-gcc -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all
               -shared -o conftest.so conftest.c
               -lgcc_s_32 -Wl,--as-needed
               -nostdlib 1>&5
configure:5611: $? = 0
configure:5620: result: yes
configure:5625: checking whether --noexecstack is desirable for .S files
configure:5635: x86_64-pc-linux-gnu-gcc -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2
           -S -o conftest.s conftest.c 1>&5
configure:5638: $? = 0
configure:5643: x86_64-pc-linux-gnu-gcc -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  -Wa,--noexecstack
             -c -o conftest.o conftest.s 1>&5
configure:5646: $? = 0
configure:5655: result: yes
configure:5662: checking for -z combreloc
configure:5676: x86_64-pc-linux-gnu-gcc -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all
         -shared -o conftest.so conftest.c
         -nostdlib -nostartfiles
         -Wl,-z,combreloc 1>&5
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
configure:5679: $? = 0
configure:5692: result: yes
configure:5702: checking for -z execstack
configure:5714: x86_64-pc-linux-gnu-gcc -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all
               -shared -o conftest.so conftest.c
               -Wl,-z,execstack -nostdlib
               1>&5
configure:5717: $? = 0
configure:5726: result: yes
configure:5730: checking for -fpie
configure:5741: x86_64-pc-linux-gnu-gcc -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all -pie -fpie
               -o conftest conftest.c 1>&5
configure:5744: $? = 0
configure:5753: result: yes
configure:5759: checking for -fno-unit-at-a-time
configure:5769: x86_64-pc-linux-gnu-gcc -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  -S -fno-unit-at-a-time
             conftest.c 1>&5
configure:5772: $? = 0
configure:5781: result: yes
configure:5853: checking whether cc puts quotes around section names
configure:5874: result: no
configure:5991: checking for assembler .weak directive
configure:6004: x86_64-pc-linux-gnu-gcc  -c conftest.s 1>&5
configure:6007: $? = 0
configure:6015: result: yes
configure:6062: checking whether CFI directives are supported
configure:6077: x86_64-pc-linux-gnu-gcc  -c conftest.s 1>&5
configure:6080: $? = 0
configure:6088: result: yes
configure:6097: checking if -g produces usable source locations for assembler-with-cpp
configure:6120: x86_64-pc-linux-gnu-gcc   -g -c conftest.S 1>&5
configure:6123: $? = 0
configure:6128: readelf --debug-dump=line conftest.o |
         grep conftest\.S 1>&5
  1   0   0   0   conftest.S
configure:6131: $? = 0
configure:6140: result: yes
configure:6149: checking for ld --no-whole-archive
configure:6162: x86_64-pc-linux-gnu-gcc -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all
             -nostdlib -nostartfiles -Wl,--no-whole-archive
             -o conftest conftest.c 1>&5
configure:6165: $? = 0
configure:6173: result: yes
configure:6179: checking for gcc -fexceptions
configure:6192: x86_64-pc-linux-gnu-gcc -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all
             -nostdlib -nostartfiles -fexceptions
             -o conftest conftest.c 1>&5
configure:6195: $? = 0
configure:6203: result: yes
configure:6273: checking for DWARF2 unwind info support
configure:6311: x86_64-pc-linux-gnu-gcc -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  -DCHECK__register_frame_info              -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all              -nostdlib -nostartfiles -o conftest conftest.c              -lgcc >&5
configure:6293: warning: conflicting types for built-in function 'malloc'
configure:6295: warning: conflicting types for built-in function 'strlen'
configure:6296: warning: conflicting types for built-in function 'memcpy'
configure:6297: warning: conflicting types for built-in function 'memset'
configure:6299: warning: conflicting types for built-in function 'abort'
/var/tmp/portage/glibc-2.3.5-r1/temp/ccW7pKyY.o: In function `_start':
conftest.c:(.text+0xf): undefined reference to `__register_frame_info'
conftest.c:(.text+0x1c): undefined reference to `__deregister_frame_info'
collect2: ld returned 1 exit status
configure:6314: $? = 1
configure:6317: x86_64-pc-linux-gnu-gcc -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  -DCHECK__register_frame_info              -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all              -nostdlib -nostartfiles -o conftest conftest.c              -lgcc -lgcc_eh -lgcc >&5
configure:6293: warning: conflicting types for built-in function 'malloc'
configure:6295: warning: conflicting types for built-in function 'strlen'
configure:6296: warning: conflicting types for built-in function 'memcpy'
configure:6297: warning: conflicting types for built-in function 'memset'
configure:6299: warning: conflicting types for built-in function 'abort'
configure:6320: $? = 0
configure:6348: result: no_registry_needed
configure:6369: checking for __builtin_expect
configure:6384: x86_64-pc-linux-gnu-gcc -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all -nostdlib -nostartfiles
             -o conftest conftest.c -lgcc >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: warning: cannot find entry symbol _start; defaulting to 00000000080480c0
configure:6387: $? = 0
configure:6395: result: yes
configure:6404: checking for __builtin_memset
configure:6416: x86_64-pc-linux-gnu-gcc -O3 -S conftest.c -o - | fgrep memset > /dev/null
configure:6419: $? = 0
configure:6428: result: no
configure:6437: checking for redirection of built-in functions
configure:6450: x86_64-pc-linux-gnu-gcc -O3 -S conftest.c -o - | fgrep my_strstr > /dev/null
configure:6453: $? = 0
configure:6462: result: yes
configure:6471: checking for local label subtraction
configure:6491: x86_64-pc-linux-gnu-gcc -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all -nostdlib -nostartfiles
             -o conftest conftest.c -lgcc >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: warning: cannot find entry symbol _start; defaulting to 00000000080480c0
configure:6494: $? = 0
configure:6502: result: yes
configure:6512: checking for __thread

configure:6521: x86_64-pc-linux-gnu-gcc -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  -c conftest.c >&5
configure:6524: $? = 0
configure:6532: result: yes
configure:6545: checking for tls_model attribute
configure:6554: x86_64-pc-linux-gnu-gcc -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  -S -Werror conftest.c >&5
configure:6557: $? = 0
configure:6565: result: yes
configure:6575: checking for libgd
configure:6636: result: no
configure:6791: checking for egrep
configure:6801: result: grep -E
configure:6806: checking for ANSI C header files
configure:6831: x86_64-pc-linux-gnu-gcc -c -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  conftest.c >&5
configure:6837: $? = 0
configure:6841: test -z
          || test ! -s conftest.err
configure:6844: $? = 0
configure:6847: test -s conftest.o
configure:6850: $? = 0
configure:6939: x86_64-pc-linux-gnu-gcc -o conftest -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all conftest.c  >&5
configure:6942: $? = 0
configure:6944: ./conftest
/var/tmp/portage/glibc-2.3.5-r1/work/glibc-2.3.5/configure: line 6945: ./conftest: Accessing a corrupted shared library
configure:6947: $? = 126
configure: program exited with status 126
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| #define USE_REGPARMS 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define ASM_GLOBAL_DIRECTIVE .globl
| #define HAVE_ASM_SET_DIRECTIVE 1
| #define ASM_TYPE_DIRECTIVE_PREFIX @
| #define DO_VERSIONING 1
| #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
| #define HAVE_PROTECTED 1
| #define HAVE_HIDDEN 1
| #define HAVE_VISIBILITY_ATTRIBUTE 1
| #define HAVE_INITFINI_ARRAY 1
| #define HAVE_Z_RELRO 1
| #define HAVE_Z_COMBRELOC 1
| #define NO_UNDERSCORES 1
| #define HAVE_ASM_WEAK_DIRECTIVE 1
| #define HAVE_ASM_CFI_DIRECTIVES 1
| #define HAVE_CPP_ASM_DEBUGINFO 1
| #define HAVE_BUILTIN_EXPECT 1
| #define HAVE_BUILTIN_REDIRECTION 1
| #define HAVE_SUBTRACT_LOCAL_LABELS 1
| #define HAVE___THREAD 1
| #define HAVE_TLS_MODEL_ATTRIBUTE 1
| /* end confdefs.h.  */
| #include <ctype.h>
| #if ((' ' & 0x0FF) == 0x020)
| # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
| # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
| #else
| # define ISLOWER(c)          (('a' <= (c) && (c) <= 'i')            || ('j' <= (c) && (c) <= 'r')            || ('s' <= (c) && (c) <= 'z'))
| # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
| #endif
|
| #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
| int
| main ()
| {
|   int i;
|   for (i = 0; i < 256; i++)
|     if (XOR (islower (i), ISLOWER (i))
|    || toupper (i) != TOUPPER (i))
|       exit(2);
|   exit (0);
| }
configure:6962: result: no
configure:6986: checking for sys/types.h
configure:7002: x86_64-pc-linux-gnu-gcc -c -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  conftest.c >&5
configure:7008: $? = 0
configure:7012: test -z
          || test ! -s conftest.err
configure:7015: $? = 0
configure:7018: test -s conftest.o
configure:7021: $? = 0
configure:7032: result: yes
configure:6986: checking for sys/stat.h
configure:7002: x86_64-pc-linux-gnu-gcc -c -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  conftest.c >&5
configure:7008: $? = 0
configure:7012: test -z
          || test ! -s conftest.err
configure:7015: $? = 0
configure:7018: test -s conftest.o
configure:7021: $? = 0
configure:7032: result: yes
configure:6986: checking for stdlib.h
configure:7002: x86_64-pc-linux-gnu-gcc -c -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  conftest.c >&5
configure:7008: $? = 0
configure:7012: test -z
          || test ! -s conftest.err
configure:7015: $? = 0
configure:7018: test -s conftest.o
configure:7021: $? = 0
configure:7032: result: yes
configure:6986: checking for string.h
configure:7002: x86_64-pc-linux-gnu-gcc -c -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  conftest.c >&5
configure:7008: $? = 0
configure:7012: test -z
          || test ! -s conftest.err
configure:7015: $? = 0
configure:7018: test -s conftest.o
configure:7021: $? = 0
configure:7032: result: yes
configure:6986: checking for memory.h
configure:7002: x86_64-pc-linux-gnu-gcc -c -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  conftest.c >&5
configure:7008: $? = 0
configure:7012: test -z
          || test ! -s conftest.err
configure:7015: $? = 0
configure:7018: test -s conftest.o
configure:7021: $? = 0
configure:7032: result: yes
configure:6986: checking for strings.h
configure:7002: x86_64-pc-linux-gnu-gcc -c -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  conftest.c >&5
configure:7008: $? = 0
configure:7012: test -z
          || test ! -s conftest.err
configure:7015: $? = 0
configure:7018: test -s conftest.o
configure:7021: $? = 0
configure:7032: result: yes
configure:6986: checking for inttypes.h
configure:7002: x86_64-pc-linux-gnu-gcc -c -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  conftest.c >&5
configure:7008: $? = 0
configure:7012: test -z
          || test ! -s conftest.err
configure:7015: $? = 0
configure:7018: test -s conftest.o
configure:7021: $? = 0
configure:7032: result: yes
configure:6986: checking for stdint.h
configure:7002: x86_64-pc-linux-gnu-gcc -c -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  conftest.c >&5
configure:7008: $? = 0
configure:7012: test -z
          || test ! -s conftest.err
configure:7015: $? = 0
configure:7018: test -s conftest.o
configure:7021: $? = 0
configure:7032: result: yes
configure:6986: checking for unistd.h
configure:7002: x86_64-pc-linux-gnu-gcc -c -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  conftest.c >&5
configure:7008: $? = 0
configure:7012: test -z
          || test ! -s conftest.err
configure:7015: $? = 0
configure:7018: test -s conftest.o
configure:7021: $? = 0
configure:7032: result: yes
configure:7044: checking for long double
configure:7068: x86_64-pc-linux-gnu-gcc -c -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  conftest.c >&5
configure:7074: $? = 0
configure:7078: test -z
          || test ! -s conftest.err
configure:7081: $? = 0
configure:7084: test -s conftest.o
configure:7087: $? = 0
configure:7098: result: yes
configure:7101: checking size of long double
configure:7420: x86_64-pc-linux-gnu-gcc -o conftest -O2 -march=k8 -pipe -fprefetch-loop-arrays -O2  -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all 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
configure:7428: $? = 126
configure: program exited with status 126
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| #define USE_REGPARMS 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define ASM_GLOBAL_DIRECTIVE .globl
| #define HAVE_ASM_SET_DIRECTIVE 1
| #define ASM_TYPE_DIRECTIVE_PREFIX @
| #define DO_VERSIONING 1
| #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
| #define HAVE_PROTECTED 1
| #define HAVE_HIDDEN 1
| #define HAVE_VISIBILITY_ATTRIBUTE 1
| #define HAVE_INITFINI_ARRAY 1
| #define HAVE_Z_RELRO 1
| #define HAVE_Z_COMBRELOC 1
| #define NO_UNDERSCORES 1
| #define HAVE_ASM_WEAK_DIRECTIVE 1
| #define HAVE_ASM_CFI_DIRECTIVES 1
| #define HAVE_CPP_ASM_DEBUGINFO 1
| #define HAVE_BUILTIN_EXPECT 1
| #define HAVE_BUILTIN_REDIRECTION 1
| #define HAVE_SUBTRACT_LOCAL_LABELS 1
| #define HAVE___THREAD 1
| #define HAVE_TLS_MODEL_ATTRIBUTE 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| long longval () { return (long) (sizeof (long double)); }
| unsigned long ulongval () { return (long) (sizeof (long double)); }
| #include <stdio.h>
| #include <stdlib.h>
| int
| main ()
| {
|
|   FILE *f = fopen ("conftest.val", "w");
|   if (! f)
|     exit (1);
|   if (((long) (sizeof (long double))) < 0)
|     {
|       long i = longval ();
|       if (i != ((long) (sizeof (long double))))
|    exit (1);
|       fprintf (f, "%ld\n", i);
|     }
|   else
|     {
|       unsigned long i = ulongval ();
|       if (i != ((long) (sizeof (long double))))
|    exit (1);
|       fprintf (f, "%lu\n", i);
|     }
|   exit (ferror (f) || fclose (f) != 0);
|
|   ;
|   return 0;
| }
configure:7438: error: cannot compute sizeof (long double), 77
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CC_set=set
ac_cv_env_CC_value=x86_64-pc-linux-gnu-gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O2 -march=k8 -pipe -fprefetch-loop-arrays -O2'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-O2 -march=k8 -pipe -fprefetch-loop-arrays -O2'
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all'
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i686-pc-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=no
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=i686-pc-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_objext=o
ac_cv_path_BASH=/bin/sh
ac_cv_path_BISON=/usr/bin/bison
ac_cv_path_INSTALL_INFO=/usr/bin/install-info
ac_cv_path_PERL=/usr/bin/perl
ac_cv_path_PWD_P=/bin/pwd
ac_cv_path_install='/bin/install -c'
ac_cv_prog_AS=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/as
ac_cv_prog_AUTOCONF=autoconf
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=x86_64-pc-linux-gnu-gcc
ac_cv_prog_CPP='x86_64-pc-linux-gnu-gcc -E'
ac_cv_prog_LD=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld
ac_cv_prog_MAKE=gmake
ac_cv_prog_MAKEINFO=makeinfo
ac_cv_prog_MSGFMT=gmsgfmt
ac_cv_prog_SED=sed
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_cxx_g=yes
ac_cv_prog_egrep='grep -E'
ac_cv_type_long_double=yes
libc_cv_Bgroup=yes
libc_cv_as_needed=yes
libc_cv_as_noexecstack=yes
libc_cv_asm_cfi_directives=yes
libc_cv_asm_global_directive=.globl
libc_cv_asm_previous_directive=yes
libc_cv_asm_protected_directive=yes
libc_cv_asm_set_directive=yes
libc_cv_asm_symver_directive=yes
libc_cv_asm_type_prefix=@
libc_cv_asm_underscores=no
libc_cv_asm_weak_directive=yes
libc_cv_autoconf_works=yes
libc_cv_broken_alias_attribute=no
libc_cv_broken_visibility_attribute=no
libc_cv_cc_with_libunwind=no
libc_cv_cpp_asm_debuginfo=yes
libc_cv_dot_text=.text
libc_cv_fno_unit_at_a_time=yes
libc_cv_fpie=yes
libc_cv_friendly_stddef=yes
libc_cv_gcc___thread=yes
libc_cv_gcc_builtin_expect=yes
libc_cv_gcc_builtin_memset=no
libc_cv_gcc_builtin_redirection=yes
libc_cv_gcc_dwarf2_unwind_info=no_registry_needed
libc_cv_gcc_exceptions=yes
libc_cv_gcc_static_libgcc=-static-libgcc
libc_cv_gcc_subtract_local_labels=yes
libc_cv_gcc_tls_model_attr=yes
libc_cv_have_bash2=yes
libc_cv_have_ksh=yes
libc_cv_have_sdata_section=no
libc_cv_have_section_quotes=no
libc_cv_initfinit_array=yes
libc_cv_ld_no_whole_archive=yes
libc_cv_ld_version_script_option=yes
libc_cv_libgcc_s_suffix=_32
libc_cv_need_minus_P=no
libc_cv_prog_as_gnu=yes
libc_cv_prog_ld_gnu=yes
libc_cv_ranlib_necessary=no
libc_cv_signed_size_t=no
libc_cv_visibility_attribute=yes
libc_cv_weak_symbols=yes
libc_cv_z_combreloc=yes
libc_cv_z_execstack=yes
libc_cv_z_initfirst=yes
libc_cv_z_nodelete=yes
libc_cv_z_nodlopen=yes
libc_cv_z_relro=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR='/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ar'
AS='/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/as'
ASFLAGS_config=' -Wa,--noexecstack'
AUTOCONF='autoconf'
AWK='gawk'
BASH='/bin/sh'
BISON='/usr/bin/bison'
BUILD_CC=''
CC='x86_64-pc-linux-gnu-gcc'
CFLAGS='-O2 -march=k8 -pipe -fprefetch-loop-arrays -O2'
CPP='x86_64-pc-linux-gnu-gcc -E'
CPPFLAGS=''
CXX='g++'
CXXFLAGS='-O2 -march=k8 -pipe -fprefetch-loop-arrays -O2'
DEFINES=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='grep -E'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_INFO='/usr/bin/install-info'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
KSH='/bin/sh'
LD='/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld'
LDFLAGS='-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all'
LIBGD='no'
LIBOBJS=''
LIBS=''
LN_S='ln -s'
LTLIBOBJS=''
MAKE='gmake'
MAKEINFO='makeinfo'
MIG=''
MSGFMT='gmsgfmt'
OBJDUMP='/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/objdump'
OBJEXT='o'
PACKAGE_BUGREPORT='glibc'
PACKAGE_NAME='GNU C Library'
PACKAGE_STRING='GNU C Library (see version.h)'
PACKAGE_TARNAME='c-library'
PACKAGE_VERSION='(see version.h)'
PATH_SEPARATOR=':'
PERL='/usr/bin/perl'
PWD_P='/bin/pwd'
RANLIB=':'
RELEASE=''
SED='sed'
SHELL='/bin/sh'
SYSINCLUDES='-nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/include -isystem /usr/include'
VERSION=''
VERSIONING='yes'
ac_ct_CC=''
ac_ct_CXX='g++'
ac_ct_RANLIB=''
add_ons='nptl c_stubs libidn'
all_warnings=''
base_machine='i386'
bindir='${exec_prefix}/bin'
bindnow='yes'
bounded='no'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
cross_compiling='no'
datadir='${prefix}/share'
elf='yes'
enable_check_abi='no'
exceptions='-fexceptions'
exec_prefix='NONE'
fno_unit_at_a_time='-fno-unit-at-a-time'
force_install='yes'
gnu_as='yes'
gnu_ld='yes'
have_selinux='no'
host='i686-pc-linux-gnu'
host_alias='i686-pc-linux-gnu'
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include'
infodir='/usr/share/info'
ldd_rewrite_script=''
libc_cv_Bgroup='yes'
libc_cv_as_needed='yes'
libc_cv_asm_protected_directive='yes'
libc_cv_cc_with_libunwind='no'
libc_cv_cpp_asm_debuginfo='yes'
libc_cv_forced_unwind=''
libc_cv_fpie='yes'
libc_cv_gcc_static_libgcc='-static-libgcc'
libc_cv_gcc_unwind_find_fde=''
libc_cv_have_bash2='yes'
libc_cv_have_initfini=''
libc_cv_have_ksh='yes'
libc_cv_initfinit_array='yes'
libc_cv_libgcc_s_suffix='_32'
libc_cv_localedir=''
libc_cv_rootsbindir=''
libc_cv_slibdir=''
libc_cv_sysconfdir=''
libc_cv_z_combreloc='yes'
libc_cv_z_execstack='yes'
libc_cv_z_initfirst='yes'
libc_cv_z_nodelete='yes'
libc_cv_z_nodlopen='yes'
libc_cv_z_relro='yes'
libdir='${exec_prefix}/lib'
libexecdir='/usr/lib/misc/glibc'
linux_doors=''
localstatedir='${prefix}/var'
mach_interface_list=''
mandir='/usr/share/man'
no_whole_archive='-Wl,--no-whole-archive'
nopic_initfini=''
old_glibc_headers=''
oldest_abi='default'
oldincludedir='/usr/include'
omitfp='no'
pic_default=''
prefix='/usr'
profile='no'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
shared='default'
sharedstatedir='${prefix}/com'
sizeof_long_double=''
static='yes'
static_nss='no'
subdirs=' '
sysconfdir='${prefix}/etc'
sysnames=' sysdeps/i386/elf nptl/sysdeps/unix/sysv/linux/i386/i686 nptl/sysdeps/unix/sysv/linux/i386 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread nptl/sysdeps/unix/sysv nptl/sysdeps/unix nptl/sysdeps/i386/i686 nptl/sysdeps/i386 libidn/sysdeps/unix sysdeps/unix/sysv/linux/i386 sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv/i386 sysdeps/unix/sysv sysdeps/unix/i386 sysdeps/unix sysdeps/posix sysdeps/i386/i686/fpu sysdeps/i386/i686 sysdeps/i386/i486 nptl/sysdeps/i386/i486 sysdeps/i386/fpu sysdeps/i386 sysdeps/wordsize-32 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic'
target_alias=''
uname_release=''
uname_sysname=''
uname_version=''
use_ldconfig=''
with_cvs='no'
with_fp='yes'
xcoff='no'

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define ASM_GLOBAL_DIRECTIVE .globl
#define ASM_TYPE_DIRECTIVE_PREFIX @
#define DO_VERSIONING 1
#define HAVE_ASM_CFI_DIRECTIVES 1
#define HAVE_ASM_PREVIOUS_DIRECTIVE 1
#define HAVE_ASM_SET_DIRECTIVE 1
#define HAVE_ASM_WEAK_DIRECTIVE 1
#define HAVE_BUILTIN_EXPECT 1
#define HAVE_BUILTIN_REDIRECTION 1
#define HAVE_CPP_ASM_DEBUGINFO 1
#define HAVE_HIDDEN 1
#define HAVE_INITFINI_ARRAY 1
#define HAVE_INTTYPES_H 1
#define HAVE_MEMORY_H 1
#define HAVE_PROTECTED 1
#define HAVE_STDINT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRINGS_H 1
#define HAVE_STRING_H 1
#define HAVE_SUBTRACT_LOCAL_LABELS 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_TLS_MODEL_ATTRIBUTE 1
#define HAVE_UNISTD_H 1
#define HAVE_VISIBILITY_ATTRIBUTE 1
#define HAVE_Z_COMBRELOC 1
#define HAVE_Z_RELRO 1
#define HAVE___THREAD 1
#define NO_UNDERSCORES 1
#define PACKAGE_BUGREPORT "glibc"
#define PACKAGE_NAME "GNU C Library"
#define PACKAGE_STRING "GNU C Library (see version.h)"
#define PACKAGE_TARNAME "c-library"
#define PACKAGE_VERSION "(see version.h)"
#define USE_REGPARMS 1
#endif
#ifdef __cplusplus
extern "C" void std::exit (int) throw (); using std::exit;

configure: exit 1



got any ideas guys?
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Wed Aug 03, 2005 9:49 am    Post subject: Reply with quote

I tried to recompile gcc(without the -m64 cflag) and got an error. Probably related.

Code:

checking for x86_64-pc-linux-gnu-gcc... /var/tmp/portage/gcc-3.4.4/work/build/gcc/xgcc -B/var/tmp/portage/gcc-3.4.4/work/build/gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include  -m32
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.4/work/build'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-3.4.4 failed.
!!! Function gcc_do_make, Line 1214, Exitcode 2
!!! emake failed with profiledbootstrap


It also seems i am unable to run any 32bit apps(complains about using a corrupted shared library). what the fuck is going on! Has anyone fixed this?
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
herbs
Retired Dev
Retired Dev


Joined: 11 Apr 2005
Posts: 11

PostPosted: Wed Aug 03, 2005 12:16 pm    Post subject: Reply with quote

By adding -m64 to your CFLAGS you effectively force gcc to output 64bit code the whole time. If you emerged glibc with that in your CFLAGS then you probably don't have a 32bit glibc which would explain the errors. Your best bet now is to install a binary glibc package since you'll have a hard job compiling one without a 32bit glibc to bootstrap against.

Please please please don't add -m64 to your CFLAGS!!
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Wed Aug 03, 2005 1:00 pm    Post subject: Reply with quote

herbs wrote:
By adding -m64 to your CFLAGS you effectively force gcc to output 64bit code the whole time. If you emerged glibc with that in your CFLAGS then you probably don't have a 32bit glibc which would explain the errors. Your best bet now is to install a binary glibc package since you'll have a hard job compiling one without a 32bit glibc to bootstrap against.

Please please please don't add -m64 to your CFLAGS!!

Done, removed the flag. Now I only need a binary package suitable for my system. What do you recommand about how to get it? (unfortunately buildpkg was not present..)
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Wed Aug 03, 2005 6:23 pm    Post subject: Reply with quote

-m64 is dangerous and useless because some things needs too be compiled 32 bit and x86_64 compilers defaults to 64 bit anyway. So get binary packages for binutils, gcc and glibc and install them, then reemerge your toolchain and then the world:

emerge binutils gcc glibc && env-update && source /etc/profile && emerge -e world

While you are at it you might as well remove some of those useless CFLAGS and LDFLAGS also.


Last edited by nxsty on Wed Aug 03, 2005 6:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
herbs
Retired Dev
Retired Dev


Joined: 11 Apr 2005
Posts: 11

PostPosted: Wed Aug 03, 2005 6:23 pm    Post subject: Reply with quote

The easiest way to get one is to create one from your 2005.0 stage file. Unpack it into an empty directory and chroot into it. Then quickpkg glibc and emerge that on your main system.
i.e

Code:

cd /some/empty/dir
tar -xvjpf /path/to/stage?-*.tar.bz2
mkdir usr/portage
mount -o bind /usr/portage usr/portage
chroot . /bin/bash
quickpkg glibc
exit
emerge -K glibc
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Sun Aug 07, 2005 1:05 pm    Post subject: Reply with quote

herbs wrote:
The easiest way to get one is to create one from your 2005.0 stage file. Unpack it into an empty directory and chroot into it. Then quickpkg glibc and emerge that on your main system.
i.e

Code:

cd /some/empty/dir
tar -xvjpf /path/to/stage?-*.tar.bz2
mkdir usr/portage
mount -o bind /usr/portage usr/portage
chroot . /bin/bash
quickpkg glibc
exit
emerge -K glibc

Thanks, it worked! 8)
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Sun Aug 07, 2005 1:28 pm    Post subject: Reply with quote

However I still get the same glibc and gcc errors, whats wrong? I downgraded gcc the same way, but now I get this error when I try to use emerge

Code:

elevator stage1 # emerge                                                        /usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Sun Aug 07, 2005 7:52 pm    Post subject: Reply with quote

Use find to locate libstdc++.so.6, then add its dir to /etc/ld.so.conf and run ldconfig. If you don't have it then you need a binary package that contains the lib to fix your system (It should come with gcc 3.4).
Back to top
View user's profile Send private message
ScriptBlue
n00b
n00b


Joined: 27 Jul 2005
Posts: 21
Location: New York City, New York, US

PostPosted: Sun Aug 07, 2005 9:40 pm    Post subject: Reply with quote

I'm having a problem similar to this, where gcc thinks it is using libstdc++.so.5 but I actually have libstdc++.so.5 I've pointed it to the right directory but I don't know how to make it use so.6 instead of so.5. Any suggestions?
EDIT: Solved it with a symlink /usr/lib/libstdc++.so.5 -> libstdc++.so.6
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Mon Aug 08, 2005 12:17 pm    Post subject: Reply with quote

ScriptBlue wrote:
I'm having a problem similar to this, where gcc thinks it is using libstdc++.so.5 but I actually have libstdc++.so.5 I've pointed it to the right directory but I don't know how to make it use so.6 instead of so.5. Any suggestions?
EDIT: Solved it with a symlink /usr/lib/libstdc++.so.5 -> libstdc++.so.6


i tried to make symlink, and run ldconfig, but it seems like its just NOT seeing it at all. I tried putting symlink into /usr/lib, /usr/lib64 and other places but its like blind, it sees nothing. ld.so.conf is correct, has all the directories but its just not working. :( Anymore help?
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Mon Aug 08, 2005 3:01 pm    Post subject: Re: compiling glibc: long double... configure: error: Reply with quote

ok, i seem to be getting somewhere. i copied libstdc++.so.5 to /usr/lib and that seems to get rid of the problem. However I still cant recompile gcc or glibc, and a majority of programs refuse to start up. Can anyone point me where to look to get gcc and glibc going again? I can now run 32bit apps.
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
OldTango
Guru
Guru


Joined: 21 Feb 2004
Posts: 495

PostPosted: Mon Aug 08, 2005 8:28 pm    Post subject: Reply with quote

Something that is quick to do and may very well solve this problem is to delete your entire /emul directory than re-emerge it. Before you do that do a
Code:
qpkg -I -v | grep emul-linux-x86
to see what libs you are using for your system. Make note of these and then delete the /emul directory and re-emerge the packages. If you are using the 2005.0 profile you need the new emul-linux-x86-glibc-1000 stub.

Do not use emerge -C to do it simply delete the directory.

Then try to rebuild gcc and glibc. Do it using USE="multilib"

I can't hurt trying, this it is what fixed it for me and I have receivied all of these above errors at one time or another
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Tue Aug 09, 2005 8:12 am    Post subject: Reply with quote

OldTango wrote:
Something that is quick to do and may very well solve this problem is to delete your entire /emul directory than re-emerge it. Before you do that do a
Code:
qpkg -I -v | grep emul-linux-x86
to see what libs you are using for your system. Make note of these and then delete the /emul directory and re-emerge the packages. If you are using the 2005.0 profile you need the new emul-linux-x86-glibc-1000 stub.

Do not use emerge -C to do it simply delete the directory.

Then try to rebuild gcc and glibc. Do it using USE="multilib"

I can't hurt trying, this it is what fixed it for me and I have receivied all of these above errors at one time or another


I tried this, still no change. I dont have qpkg too.
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Tue Aug 09, 2005 11:32 am    Post subject: Reply with quote

OK, I seem to have solved most of the problems. LUCKILY! Booted of the live cd, and from the stage1 tarball i extracted copied the lib64, lib32 and a couple of other directories into /lib32, and lib64. Then I ran bootstrap.sh and it compiled. Wohoo. :)
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
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
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