Fresh install on amd64. Trying to upgrade glibc to 2.3.5-r3: ../sysdeps/generic/libc-start.c: In function `__libc_start_main': ../sysdeps/generic/libc-start.c:192: warning: implicit declaration of function `__guard_setup' ../sysdeps/unix/i386/sysdep.S: Assembler messages: ../sysdeps/unix/i386/sysdep.S:59: Error: suffix or operands invalid for `push' ../sysdeps/unix/i386/sysdep.S:63: Error: suffix or operands invalid for `pop' make[2]: *** [/var/tmp/portage/glibc-2.3.5-r3/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/csu/sysdep.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.5-r3/work/glibc-2.3.5/csu' make[1]: *** [csu/subdir_lib] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.5-r3/work/glibc-2.3.5' make: *** [all] Error 2 !!! ERROR: sys-libs/glibc-2.3.5-r3 failed. !!! Function toolchain-glibc_src_compile, Line 226, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Portage 2.1_pre1 (default-linux/amd64/2005.1, gcc-3.4.3, glibc-2.3.5-r0, 2.6.14-gentoo-r5 x86_64) ================================================================= System uname: 2.6.14-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.12.0_pre12 dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.17 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-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -fomit-frame-pointer -march=k8" 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/make.conf /etc/terminfo /etc/udev/rules.d /etc/env.d" CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=k8" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk" LANG="en_GB.UTF-8" LC_ALL="en_GB.UTF-8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage" USE="amd64 X alsa bash-completion cdr custom-cflags dbus dvd dvdr dvdread gnome gtk gtk2 hal mp3 nptl opengl png ssl truetype truetype-fonts userlocales xv xvid elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS
This always happens early on in the compile procedure: * Building multilib glibc for ABIs: x86 amd64 * ABI: x86 * CBUILD: x86_64-pc-linux-gnu * CHOST: x86_64-pc-linux-gnu * CTARGET: x86_64-pc-linux-gnu * CBUILD_OPT: i686-pc-linux-gnu * CTARGET_OPT: i686-pc-linux-gnu * CC: * CFLAGS: -pipe -march=k8 -O2 * Configuring GLIBC for linuxthreads with: --disable-nls --disable-dev-erandom --with-tls --without-__thread --enable-add-ons=linuxthreads,c_stubs,libidn --enable-kernel=2.4.1 --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 Also, 2.3.5-r1 fails with the same error, and 2.3.5-r2 fails with: `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. ../sysdeps/generic/initfini.c:1: error: CPU you selected does not support x86-64 instruction set ../sysdeps/generic/initfini.c:1: error: CPU you selected does not support x86-64 instruction set make[2]: *** [/var/tmp/portage/glibc-2.3.5-r2/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/csu/initfini.s] Error 1
2.3.6-r1 compiles and works OK.
looks like a multilib bug ... your x86 is being built with 64bit flags
Mine fails here: a - nss/pwd-lookup.os a - nss/rpc-lookup.os a - nss/ethers-lookup.os a - nss/spwd-lookup.os a - nss/netgrp-lookup.os a - nss/key-lookup.os a - nss/alias-lookup.os a - debug/backtrace.os a - debug/backtracesyms.os a - debug/backtracesymsfd.os a - debug/noophooks.os a - debug/memcpy_chk.os a - debug/memmove_chk.os a - debug/mempcpy_chk.os a - debug/memset_chk.os a - debug/stpcpy_chk.os a - debug/strcat_chk.os a - debug/strcpy_chk.os a - debug/strncat_chk.os a - debug/strncpy_chk.os a - debug/sprintf_chk.os a - debug/vsprintf_chk.os a - debug/snprintf_chk.os a - debug/vsnprintf_chk.os a - debug/printf_chk.os a - debug/fprintf_chk.os a - debug/vprintf_chk.os a - debug/vfprintf_chk.os a - debug/gets_chk.os a - debug/chk_fail.os a - debug/readonly-area.os a - inet/htonl.os a - inet/htons.os a - inet/inet_lnaof.os a - inet/inet_mkadr.os a - inet/inet_netof.os a - inet/inet_ntoa.os a - inet/inet_net.os a - inet/herrno.os a - inet/herrno-loc.os a - inet/gethstbyad.os a - inet/gethstbyad_r.os a - inet/gethstbynm.os a - inet/gethstbynm2.os a - inet/gethstbynm2_r.os a - inet/gethstbynm_r.os a - inet/gethstent.os a - inet/gethstent_r.os a - inet/getnetbyad.os a - inet/getnetbyad_r.os a - inet/getnetbynm.os a - inet/getnetent.os a - inet/getnetent_r.os a - inet/getnetbynm_r.os a - inet/getproto.os a - inet/getproto_r.os a - inet/getprtent.os a - inet/getprtent_r.os a - inet/getprtname.os a - inet/getprtname_r.os a - inet/getsrvbynm.os a - inet/getsrvbynm_r.os a - inet/getsrvbypt.os a - inet/getsrvbypt_r.os a - inet/getservent.os a - inet/getservent_r.os a - inet/getrpcent.os a - inet/getrpcbyname.os a - inet/getrpcbynumber.os a - inet/getrpcent_r.os a - inet/getrpcbyname_r.os a - inet/getrpcbynumber_r.os a - inet/ether_aton.os a - inet/ether_aton_r.os a - inet/ether_hton.os a - inet/ether_line.os a - inet/ether_ntoa.os a - inet/ether_ntoa_r.os a - inet/ether_ntoh.os a - inet/rcmd.os a - inet/rexec.os a - inet/ruserpass.os a - inet/getnetgrent_r.os a - inet/getnetgrent.os a - inet/getaliasent_r.os a - inet/getaliasent.os a - inet/getaliasname.os a - inet/getaliasname_r.os a - inet/in6_addr.os a - inet/getnameinfo.os a - inet/if_index.os a - inet/ifaddrs.os a - inet/inet6_option.os a - inet/getipv4sourcefilter.os a - inet/setipv4sourcefilter.os a - inet/getsourcefilter.os a - inet/setsourcefilter.os a - inet/check_pf.os a - inet/ifreq.os a - sunrpc/auth_none.os a - sunrpc/auth_unix.os a - sunrpc/authuxprot.os a - sunrpc/bindrsvprt.os a - sunrpc/clnt_gen.os a - sunrpc/clnt_perr.os a - sunrpc/clnt_raw.os a - sunrpc/clnt_simp.os a - sunrpc/clnt_tcp.os a - sunrpc/clnt_udp.os a - sunrpc/rpc_dtable.os a - sunrpc/get_myaddr.os a - sunrpc/getrpcport.os a - sunrpc/pmap_clnt.os a - sunrpc/pm_getmaps.os a - sunrpc/pm_getport.os a - sunrpc/pmap_prot.os a - sunrpc/pmap_prot2.os a - sunrpc/pmap_rmt.os a - sunrpc/rpc_prot.os a - sunrpc/rpc_common.os a - sunrpc/rpc_cmsg.os a - sunrpc/rpc_thread.os a - sunrpc/svc.os a - sunrpc/svc_auth.os a - sunrpc/svc_authux.os a - sunrpc/svc_raw.os a - sunrpc/svc_run.os a - sunrpc/svc_simple.os a - sunrpc/svc_tcp.os a - sunrpc/svc_udp.os a - sunrpc/xdr.os a - sunrpc/xdr_array.os a - sunrpc/xdr_float.os a - sunrpc/xdr_mem.os a - sunrpc/xdr_rec.os a - sunrpc/xdr_ref.os a - sunrpc/xdr_stdio.os a - sunrpc/publickey.os a - sunrpc/xdr_sizeof.os a - sunrpc/auth_des.os a - sunrpc/authdes_prot.os a - sunrpc/des_crypt.os a - sunrpc/des_impl.os a - sunrpc/des_soft.os a - sunrpc/key_call.os a - sunrpc/key_prot.os a - sunrpc/netname.os a - sunrpc/openchild.os a - sunrpc/rtime.os a - sunrpc/svcauth_des.os a - sunrpc/xcrypt.os a - sunrpc/clnt_unix.os a - sunrpc/svc_unix.os a - sunrpc/create_xid.os a - sunrpc/xdr_intXX_t.os a - nis/nis_hash.os a - nscd/nscd_getpw_r.os a - nscd/nscd_getgr_r.os a - nscd/nscd_gethst_r.os a - nscd/nscd_getai.os a - nscd/nscd_initgroups.os a - nscd/nscd_helper.os a - streams/isastream.os a - streams/getmsg.os a - streams/getpmsg.os a - streams/putmsg.os a - streams/putpmsg.os a - streams/fattach.os a - streams/fdetach.os a - login/getutent.os a - login/getutent_r.os a - login/getutid.os a - login/getutline.os a - login/getutid_r.os a - login/getutline_r.os a - login/utmp_file.os a - login/utmpname.os a - login/updwtmp.os a - login/getpt.os a - login/grantpt.os a - login/unlockpt.os a - login/ptsname.os a - login/setutxent.os a - login/getutxent.os a - login/endutxent.os a - login/getutxid.os a - login/getutxline.os a - login/pututxline.os a - login/utmpxname.os a - login/updwtmpx.os a - login/getutmpx.os a - login/getutmp.os a - elf/dl-open.os a - elf/dl-close.os a - elf/dl-iteratephdr.os a - elf/dl-addr.os a - elf/dl-profstub.os a - elf/dl-libc.os a - elf/dl-sym.os a - elf/dl-tsd.os a - elf/unwind-dw2-fde-glibc.os a - elf/framestate.os a - elf/unwind-pe.os : /var/tmp/portage/glibc-2.3.5-r3/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/libc_pic.a make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.5-r3/work/glibc-2.3.5/elf' make[1]: *** [elf/subdir_lib] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.5-r3/work/glibc-2.3.5' make: *** [all] Error 2 !!! ERROR: sys-libs/glibc-2.3.5-r3 failed. !!! Function toolchain-glibc_src_compile, Line 226, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. # emerge info Portage 2.1_pre2 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r0, 2.6.12-9-amd64-generic x86_64) ================================================================= System uname: 2.6.12-9-amd64-generic x86_64 AMD Athlon(tm) 64 Processor 2800+ Gentoo Base System version 1.6.13 ccache version 2.4 [enabled] dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.17 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.5 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -mtune=athlon64 -pipe -O2 -fforce-addr -funit-at-a-time -fpeel-loops -funswitch-loops -fomit-frame-pointer -fomit-leaf-frame-pointer -ftracer -mmmx -msse -m3dnow" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -mtune=athlon64 -pipe -O2 -fforce-addr -funit-at-a-time -fpeel-loops -funswitch-loops -fomit-frame-pointer -fomit-leaf-frame-pointer -ftracer -mmmx -msse -m3dnow -fvisibility-inlines-hidden -frepo" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks nostrip sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp.las.ic.unicamp.br/pub/gentoo/ http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LDFLAGS="-Wl,-z,combreloc -Wl,-O,2 -Wl,--relax -Wl,--enable-new-dtags -Wl,--sort-common -s" LINGUAS="pt_BR en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.samerica.gentoo.org/gentoo-portage" USE="amd64 nls nptl elibc_glibc kernel_linux linguas_pt_BR linguas_en userland_GNU" Unset: ASFLAGS, CTARGET, LANG, LC_ALL
*** Bug 116782 has been marked as a duplicate of this bug. ***
Don't think that is the same problem, can you show the most recent "* ABI:" section?
where I find it? i'm still a gentoo newbie :P
It appears several times thoughout the merge process. Perhaps you could just pipe the whole session through "tee" and upload the full compile log here.
is this? * Building multilib glibc for ABIs: x86 amd64 * ABI: x86 * CBUILD: x86_64-pc-linux-gnu * CHOST: x86_64-pc-linux-gnu * CTARGET: x86_64-pc-linux-gnu * CBUILD_OPT: i686-pc-linux-gnu * CTARGET_OPT: i686-pc-linux-gnu * CC: * CFLAGS: -march=athlon64 -mtune=athlon64 -pipe -O2 * Configuring GLIBC for linuxthreads with: --disable-dev-erandom --with-tls --without-__thread --enable-add-ons=linuxthreads,c_stubs,libidn --enable-kernel=2.4.1 --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
I tried compiling 2.3.6-r1 and fails in the same place
Yeah, but that kind of message appears several times throughout the merge, and probably only the last one is of any interest. I suggest that you attach full logs to the old bug and reopen it.
but that is the only one that apperas :-\ i'll try with nptlonly, i think it is a problem with linuxthreads support.
*** Bug 118729 has been marked as a duplicate of this bug. ***
I get this failure now, but when I last did an emerge -e system/world, 12/31-1/1, there was no problem building glibc 2.3.5-r3. I filed dupe 118729 on this.
Not sure what changed, but I can now compile 2.3.5-r3
It's not fixed for me! I filed 118729 which was marked a dupe of this bug. I still get the assembler errors whether I rebuild 2.3.5-r3 or try to upgrade to 2.3.6-r2 (the latter is what I wanted to do). Either this bug should be reopened, or 118729 is a different problem which should not have been marked a duplicate and it should be reopened.
That's the same problem. I'll leave this open.
I've looked on the gnu mailing lists for this with no success. No updates that have come through in the past few weeks have fixed this for me. Does anyone here know where the problem is -- upstream or Gentoo?
glibc-2.3.6-r3 still has this problem.
The problem is back in 2.3.6-r3: * Building multilib glibc for ABIs: x86 amd64 * ABI: x86 * CBUILD: x86_64-pc-linux-gnu * CHOST: x86_64-pc-linux-gnu * CTARGET: x86_64-pc-linux-gnu * CBUILD_OPT: i686-pc-linux-gnu * CTARGET_OPT: i686-pc-linux-gnu * CC: * CFLAGS: -pipe -march=k8 -O2 * Configuring GLIBC for linuxthreads with: --disable-nls --disable-dev-erandom --with-tls --without-__thread --enable-add-ons=linuxthreads,c_stubs,libidn --enable-kernel=2.4.1 --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 gcc ../sysdeps/generic/initfini.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -march=k8 -pipe -mpreferred-stack-boundary=4 -g0 -fPIC -fno-inline-functions -fno-unit-at-a-time -march=i386 -mcpu=i386 -I../include -I. -I/var/tmp/portage/glibc-2.3.6-r3/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/csu -I.. -I../libio -I/var/tmp/portage/glibc-2.3.6-r3/work/build-x86-x86_64-pc-linux-gnu-linuxthreads -I../sysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/i386 -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686 -I../linuxthreads/sysdeps/i386 -I../libidn/sysdeps/unix -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/include -isystem /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -S -g0 -fPIC -fno-inline-functions -fno-unit-at-a-time -march=i386 -mcpu=i386 -finhibit-size-directive \ -fno-exceptions -o /var/tmp/portage/glibc-2.3.6-r3/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/csu/initfini.s `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. ../sysdeps/generic/initfini.c:1: error: CPU you selected does not support x86-64 instruction set ../sysdeps/generic/initfini.c:1: error: CPU you selected does not support x86-64 instruction set make[2]: *** [/var/tmp/portage/glibc-2.3.6-r3/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/csu/initfini.s] Error 1
For me the problem has never gone away. As an experiment I tried the unsupported 2.3.90 snapshot ebuild from http://forums.gentoo.org/viewtopic-t-435659.html. It failed with the same error, so whatever changes have gone into the upstream 2.4 candidate don't fix this problem.
2.3.6-r2 compiled fine, but 2.3.6-r3 fails for me as well: x86_64-pc-linux-gnu-gcc -nostdlib -nostartfiles -static -o /var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads/elf/sln /var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads/csu/crt1.o /var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads/csu/crti.o `x86_64-pc-linux-gnu-gcc --print-file-name=crtbegin.o` /var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads/elf/sln.o /var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads/libc.a -lgcc -lgcc_eh /var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads/libc.a `x86_64-pc-linux-gnu-gcc --print-file-name=crtend.o` /var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads/csu/crtn.o /var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads/libc.a(memset.o): In function `memset': ../sysdeps/x86_64/memset.S:(.text+0xd3): undefined reference to `_rtld_global_ro' ../sysdeps/x86_64/memset.S:(.text+0x103): undefined reference to `_rtld_global_ro' /var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads/libc.a(mempcpy.o): In function `mempcpy': ../sysdeps/x86_64/mempcpy.S:(.text+0x123): undefined reference to `_rtld_global_ro' ../sysdeps/x86_64/mempcpy.S:(.text+0x173): undefined reference to `_rtld_global_ro' ../sysdeps/x86_64/mempcpy.S:(.text+0x293): undefined reference to `_rtld_global_ro' /var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads/libc.a(memcpy.o):../sysdeps/x86_64/memcpy.S:(.text+0x123): more undefined references to `_rtld_global_ro' follow collect2: ld returned 1 exit status make[2]: *** [/var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads/elf/sln] Error 1 make[2]: *** Waiting for unfinished jobs.... make -C ../setjmp objdir=/var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-bsd-_setjmp.os rtld-__longjmp.os rtld-setjmp.os' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/posix' make[4]: Nothing to be done for `rtld-all'. make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/posix' make -C ../signal objdir=/var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-sigaction.os rtld-sigprocmask.os rtld-kill.os rtld-sigfillset.os rtld-sigdelset.os' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/setjmp' make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/setjmp' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/signal' make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/signal' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/setjmp' make[4]: Nothing to be done for `rtld-all'. make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/setjmp' make -C ../stdlib objdir=/var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-exit.os rtld-cxa_atexit.os' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/signal' make[4]: Nothing to be done for `rtld-all'. make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/signal' make -C ../string objdir=/var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-strchr.os rtld-strcmp.os rtld-strnlen.os rtld-memchr.os rtld-memmove.os rtld-memset.os rtld-mempcpy.os rtld-stpcpy.os rtld-memcpy.os rtld-wordcopy.os rtld-strrchr.os rtld-rawmemchr.os' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/stdlib' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/string' make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/linuxthreads' make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/stdlib' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/linuxthreads' make[4]: Nothing to be done for `rtld-all'. make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/linuxthreads' make -C ../time objdir=/var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-gettimeofday.os rtld-setitimer.os' make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/string' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/stdlib' make[4]: Nothing to be done for `rtld-all'. make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/stdlib' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/string' make[4]: Nothing to be done for `rtld-all'. make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/string' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/time' make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/time' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/time' make[4]: Nothing to be done for `rtld-all'. make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/time' make[3]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/elf' make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/elf' make[1]: *** [elf/others] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6' make: *** [all] Error 2 !!! ERROR: sys-libs/glibc-2.3.6-r3 failed. Call stack: ebuild.sh, line 1928: Called dyn_compile ebuild.sh, line 966: Called src_compile glibc-2.3.6-r3.ebuild, line 1240: Called src_compile glibc-2.3.6-r3.ebuild, line 1251: Called toolchain-glibc_src_compile !!! (no error message) !!! If you need support, post the topmost build error, and the call stack if relevant.
This bug is getting giberish-y. For those of you who have posted here: 1) The MOST IMPORTANT information we need is not present (emerge info) in most of the posts, and it has: Additional Comments: (this is where you put 'emerge info') in the comments text for a reason. PLEASE post your emerge --info if you post a compile failure! Additional comments that do not have compile failures (such as this) do not need emerge --info reposted however. 2) I see a lot of "-mcpu is deprecated" messages, have those of you that have hit those tried recompiling with -mtune/-march instead? That supprisingly fixes a lot of errors.
Julian: Your issue is different, please file a separate bug for it. Also do either attach a full log or show which glibc it was compiling (see the parts I pasted in comment #20) Chris: I don't know where -mcpu is coming from. Certainly not from my make.conf. Here's my --info again: Portage 2.1_pre5-r1 (default-linux/amd64/2005.1, gcc-3.4.5, glibc-2.3.6-r2, 2.6.16-rc4 x86_64) ================================================================= System uname: 2.6.16-rc4 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.12.0_pre16 dev-lang/python: 2.4.2-r1 sys-apps/sandbox: 1.2.17 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-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -fomit-frame-pointer -march=k8" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/make.conf /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d /etc/env.d" CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=k8" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig cvs distlocks sandbox sfperms sign strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_GB.UTF-8" LC_ALL="en_GB.UTF-8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlay/gnome /usr/local/overlay/xgl" SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage" USE="amd64 X alsa avahi bash-completion cairo cdr custom-cflags daap dbus dvd dvdr dvdread glitz gnome gtk gtk2 hal jpeg mono moznocompose moznoirc moznomail mp3 nptl opengl png samba ssl svg tiff truetype truetype-fonts userlocales xv xvid elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nvidia video_cards_fbdev video_cards_nv video_cards_vesa video_cards_vga" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LDFLAGS, LINGUAS
-D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -S -g0 -fPIC -fno-inline-functions -fno-unit-at-a-time -march=i386 -mcpu=i386 erg? It looks like the makefile is throwing in deprecated CFLAGS o_O. Hmm, that's weird, nothing in your CFLAGS from what I see. This comes down to a nice meeting with the glibc Makefiles (after 4 cans of black cherry coca cola). I'll try it on my machine here at work and see if I can isolate what's going on. I'm kinda leaning towards the warnings being seen as errors, causing the rest of it to fail.
And to make it even weirder.. works for me on pitr: Portage 2.1_pre4-r1 (default-linux/amd64/2006.0, gcc-4.1.0-beta20060127, glibc-2.3.6-r3, 2.6.13-hardened-r1 x86_64) ================================================================= System uname: 2.6.13-hardened-r1 x86_64 AMD Opteron(tm) Processor 842 Gentoo Base System version 1.12.0_pre15 dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.17 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-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=opteron -O2 -pipe" 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="-march=opteron -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 acpi berkdb crypt emacs fortran gdbm gpm hardened lzw lzw-tiff ncurses nptl nptlonly pam perl pic python readline ssl tcpd usb userlocales xml2 xrandr zlib elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS Only thing I see different is that I'm using gcc 4.1, I'm pulling in 3.4.5 to see if that's the underlying factor.
dsd, Well, so much for that.. I get the same stuff as in comment #22 . Here's what I can tell so far: gcc 3.4.4 is fine gcc 4.1 is fine gcc 3.4.5 borks
(In reply to comment #27) > gcc 3.4.4 is fine > gcc 4.1 is fine > gcc 3.4.5 borks > I downgraded from 3.4.5 to 3.4.4 but it didn't work for me: gcc ../sysdeps/unix/sysv/linux/i386/sysdep.S -c -I../include -I. -I/var/tmp/portage/glibc-2.3.6-r3/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/csu -I.. -I../libio -I/var/tmp/portage/glibc-2.3.6-r3/work/build-x86-x86_64-pc-linux-gnu-linuxthreads -I../sysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/i386 -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686 -I../linuxthreads/sysdeps/i386 -I../libidn/sysdeps/unix -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/include -isystem /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -DASSEMBLER -I/var/tmp/portage/glibc-2.3.6-r3/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/csu/. -DGAS_SYNTAX -Wa,--noexecstack -Wa,--noexecstack -o /var/tmp/portage/glibc-2.3.6-r3/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/csu/sysdep.o -MD -MP -MF /var/tmp/portage/glibc-2.3.6-r3/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/csu/sysdep.o.dt -MT /var/tmp/portage/glibc-2.3.6-r3/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/csu/sysdep.o ../sysdeps/unix/i386/sysdep.S: Assembler messages: ../sysdeps/unix/i386/sysdep.S:59: Error: suffix or operands invalid for `push' ../sysdeps/unix/i386/sysdep.S:63: Error: suffix or operands invalid for `pop' make[2]: *** [/var/tmp/portage/glibc-2.3.6-r3/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/csu/sysdep.o] Error 1 emerge --info Portage 2.1_pre5 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.3.5-r3, 2.6.15-ck3-r1 x86_64) ================================================================= System uname: 2.6.15-ck3-r1 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.12.0_pre16 ccache version 2.4 [enabled] dev-lang/python: 2.3.5-r2, 2.4.2-r1 sys-apps/sandbox: 1.2.17 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-r1 sys-devel/binutils: 2.16.1-r1, 2.16.91.0.3, 2.16.91.0.5, 2.16.91.0.6 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r4 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="" FEATURES="autoconfig ccache confcache distlocks nostrip sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.osuosl.org/" LC_ALL="en_US" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/bmg-main /usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="amd64 X aac alsa avi bash-completion berkdb bitmap-fonts bzip2 cairo cdr crypt cups dbus debug dvd dvdr eds emboss encode esd firefox flac foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal imlib ipv6 java jpeg kde ldap lzw lzw-tiff mad mono mozilla mp3 mpeg ncurses nls nptl ogg opengl pam pdflib perl pic png python qt quicktime readline ruby samba sdl spell sqlite ssl tcpd theora tiff truetype truetype-fonts type1-fonts usb userlocales vorbis xml2 xpm xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_vga video_cards_vesa video_cards_nv" Unset: ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS, MAKEOPTS I tried this with both binutils 2.16.1-r1 and 2.16.91.0.6 -- the above output was with 2.16.1-r1.
Yeah, and I forgot to eselect compiler to 3.4.4. Same results though: ../sysdeps/unix/i386/sysdep.S: Assembler messages: ../sysdeps/unix/i386/sysdep.S:59: Error: suffix or operands invalid for `push' ../sysdeps/unix/i386/sysdep.S:63: Error: suffix or operands invalid for `pop' make[2]: *** [/var/tmp/portage/glibc-2.3.6-r3/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/csu/sysdep.o] Error 1 gcc -v Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/specs Configured with: /var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/configure --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-r1, ssp-3.4.4-1.0, pie-8.7.8)
CPP='i686-pc-linux-gnu-gcc -E -x c-header' /var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-linuxthreads/elf/ld-linux.so.2 --library-path /var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-linuxthreads:/var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-linuxthreads/math:/var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-linuxthreads/elf:/var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-linuxthreads/dlfcn:/var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-linuxthreads/nss:/var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-linuxthreads/nis:/var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-linuxthreads/rt:/var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-linuxthreads/resolv:/var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-linuxthreads/crypt:/var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-linuxthreads/linuxthreads /var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-linuxthreads/sunrpc/rpcgen -Y ../scripts -c rpcsvc/bootparam_prot.x -o /var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-linuxthreads/sunrpc/xbootparam_prot.T make[2]: *** [/var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-linuxthreads/sunrpc/xbootparam_prot.stmp] Illegal instruction make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/sunrpc' make[1]: *** [sunrpc/others] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6' make: *** [all] Error 2 !!! ERROR: sys-libs/glibc-2.3.6-r3 failed. Call stack: ebuild.sh, line 1933: Called dyn_compile ebuild.sh, line 971: Called src_compile glibc-2.3.6-r3.ebuild, line 1251: Called toolchain-glibc_src_compile Portage 2.1_pre5-r3 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.4.20041102-r1, 2.6.15-gentoo-r5 i586) ================================================================= System uname: 2.6.15-gentoo-r5 i586 AMD-K6(tm) 3D processor Gentoo Base System version 1.6.13 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [enabled] dev-lang/python: 2.3.5-r2, 2.4.2-r1 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-r1 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=k6-2 -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k6-2 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distcc distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 adsl apm avmfritz crypt fax faxonly fortran gdbm isdn isdnlog libwww ncurses nls pam perl python readline sdl ssl tcpd xml2 zlib elibc_glibc fritzcapi_cards_fcclassic kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
I'm currently compiling glibc-2.4 without running into this issue. I was running into a problem where I was gettting multiple "TLS support required" error messages. Searching the forums, I came across this: Problem solved, btw, for anyone else having this issue. It seems with changes to gcc-config and eselect compiler, GCC 4.1 on AMD64 selects amd_64 as it should for the compiler of choice, but this still doesn't seem to setup the system properly. Originally, gcc-config -l reported: Code: Available compilers for CTARGET i686-pc-linux-gnu [1] x86_64-pc-linux-gnu-4.1.0/x86-vanilla Available compilers for CTARGET x86_64-pc-linux-gnu [2] x86_64-pc-linux-gnu-3.4.5/default [3] x86_64-pc-linux-gnu-3.4.5/hardened [4] x86_64-pc-linux-gnu-3.4.5/hardenednopie [5] x86_64-pc-linux-gnu-3.4.5/hardenednopiessp [6] x86_64-pc-linux-gnu-3.4.5/hardenednossp [7] x86_64-pc-linux-gnu-4.1.0/amd64-vanilla Activated profiles: x86_64-pc-linux-gnu * x86_64-pc-linux-gnu-4.1.0/amd64-vanilla Looks like it should? Apparently not. Running Code: gcc-config 1 && gcc-config 7 to select the x86-vanilla and then back to amd64-vanilla gives: Code: Available compilers for CTARGET i686-pc-linux-gnu [1] x86_64-pc-linux-gnu-4.1.0/x86-vanilla Available compilers for CTARGET x86_64-pc-linux-gnu [2] x86_64-pc-linux-gnu-3.4.5/default [3] x86_64-pc-linux-gnu-3.4.5/hardened [4] x86_64-pc-linux-gnu-3.4.5/hardenednopie [5] x86_64-pc-linux-gnu-3.4.5/hardenednopiessp [6] x86_64-pc-linux-gnu-3.4.5/hardenednossp [7] x86_64-pc-linux-gnu-4.1.0/amd64-vanilla Activated profiles: i686-pc-linux-gnu x86_64-pc-linux-gnu-4.1.0/x86-vanilla x86_64-pc-linux-gnu * x86_64-pc-linux-gnu-4.1.0/amd64-vanilla And voila, glibc is now compiling again with no 'TLS not found' errors. http://forums.gentoo.org/viewtopic-t-435659-postdays-0-postorder-asc-start-100.html I can't test it now as I'm going to leave 2.4 compiling, but could this fix also work for the errors we've been getting on 2.3.5/2.3.6? Those seem to be related to the assembler instructions for the wrong arch being generated. Someone else wants to test this out?
eselect compiler is not currently supported, stick with gcc-config
It appears that using eselect-compiler caused this bug for me. After going back to gcc-config this problem goes away. Is anyone still having problems or shall I close this?
I guess we're done then.
Doesn't work here though... # emerge --info Portage 2.0.54 (selinux/2005.1/amd64, gcc-3.4.5, glibc-2.3.5-r3, 2.6.14-hardened-r5 x86_64) ================================================================= System uname: 2.6.14-hardened-r5 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.14 dev-lang/python: 2.3.5-r2, 2.4.2 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.12 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-r1 sys-devel/binutils: 2.16.1 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=k8 -O2 -fomit-frame-pointer -frerun-loop-opt -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O2 -fomit-frame-pointer -frerun-loop-opt -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks loadpolicy sandbox selinux sfperms strict" GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ http://gentoo.binarycompass.org ftp://ftp.uninett.no/pub/linux/Gentoo ftp://mirror.pudas.net/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="acpi aim aliaschain amd64 apache2 bash-completion berkdb bidi bzip2 chroot crypt cups curl doc emul-linux-x86 expat ffmpeg gdbm gif gmp gpm hardened icq idea imagemagick innodb ipv6 irc jabber java jpeg kerberos krb4 ldap libclamav libwww loadpolicy mbox mhash mpeg msn mysql ncurses netpbm nls nptl nptlonly oav pam pcre perl php png ppds python quotas readline samba sasl selinux semanticfix sftplogging ssl syslog tcpd tiff udev usb userlocales uudeview winbind xml xml2 yahoo zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/csu' make[4]: Nothing to be done for `rtld-all'. make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/csu' make -C ../gmon objdir=/var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-nptl -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-profil.os rtld-prof-freq.os' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/gmon' make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/gmon' x86_64-pc-linux-gnu-gcc -nostdlib -nostartfiles -static -o /var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-nptl/elf/sln /var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-nptl/csu/crt1.o /var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-nptl/csu/crti.o `x86_64-pc-linux-gnu-gcc --print-file-name=crtbegin.o` /var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-nptl/elf/sln.o /var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-nptl/libc.a -lgcc -lgcc_eh /var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-nptl/libc.a `x86_64-pc-linux-gnu-gcc --print-file-name=crtend.o` /var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-nptl/csu/crtn.o make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/gmon' make[4]: Nothing to be done for `rtld-all'. make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/gmon' make -C ../io objdir=/var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-nptl -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-xstat.os rtld-fxstat.os rtld-open.os rtld-close.os rtld-read.os rtld-write.os rtld-access.os rtld-fcntl.os rtld-getcwd.os' /var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-nptl/libc.a(strlen.o): In function `strlen': ../sysdeps/x86_64/strlen.S:(.text+0x145): undefined reference to `_rtld_global_ro' /var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-nptl/libc.a(memset.o): In function `memset': ../sysdeps/x86_64/memset.S:(.text+0xd3): undefined reference to `_rtld_global_ro' ../sysdeps/x86_64/memset.S:(.text+0x103): undefined reference to `_rtld_global_ro' /var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-nptl/libc.a(mempcpy.o): In function `mempcpy': ../sysdeps/x86_64/mempcpy.S:(.text+0x123): undefined reference to `_rtld_global_ro' ../sysdeps/x86_64/mempcpy.S:(.text+0x173): undefined reference to `_rtld_global_ro' /var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-nptl/libc.a(mempcpy.o):../sysdeps/x86_64/mempcpy.S:(.text+0x293): more undefined references to `_rtld_global_ro' follow collect2: ld returned 1 exit status make[2]: *** [/var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-nptl/elf/sln] Error 1 make[2]: *** Waiting for unfinished jobs.... make -C ../misc objdir=/var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-nptl -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-getpagesize.os rtld-mmap.os rtld-munmap.os rtld-mprotect.os rtld-madvise.os rtld-init-misc.os rtld-llseek.os' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/io' make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/io' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/misc' make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/misc' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/io' make[4]: Nothing to be done for `rtld-all'. make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/io' make -C ../nptl objdir=/var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-nptl -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-libc-cancellation.os rtld-libc_multiple_threads.os rtld-forward.os rtld-libc-lowlevellock.os' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/misc' make[4]: Nothing to be done for `rtld-all'. make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/misc' make -C ../posix objdir=/var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-nptl -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-uname.os rtld-_exit.os rtld-getpid.os rtld-environ.os' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/posix' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/nptl' make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/posix' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/posix' make[4]: Nothing to be done for `rtld-all'. make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/posix' make -C ../setjmp objdir=/var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-nptl -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-bsd-_setjmp.os rtld-__longjmp.os rtld-setjmp.os' make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/nptl' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/setjmp' make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/setjmp' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/setjmp' make[4]: Nothing to be done for `rtld-all'. make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/setjmp' make -C ../signal objdir=/var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-nptl -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-sigaction.os rtld-sigprocmask.os rtld-kill.os rtld-sigfillset.os rtld-sigdelset.os' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/signal' make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/signal' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/nptl' make[4]: Nothing to be done for `rtld-all'. make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/nptl' make -C ../stdlib objdir=/var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-nptl -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-exit.os rtld-cxa_atexit.os' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/signal' make[4]: Nothing to be done for `rtld-all'. make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/signal' make -C ../string objdir=/var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-nptl -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-strchr.os rtld-strcmp.os rtld-strlen.os rtld-strnlen.os rtld-memchr.os rtld-memmove.os rtld-memset.os rtld-mempcpy.os rtld-stpcpy.os rtld-memcpy.os rtld-wordcopy.os rtld-strrchr.os rtld-rawmemchr.os' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/stdlib' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/string' make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/stdlib' make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/string' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/stdlib' make[4]: Nothing to be done for `rtld-all'. make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/stdlib' make -C ../time objdir=/var/tmp/portage/glibc-2.3.6-r3/work/build-amd64-x86_64-pc-linux-gnu-nptl -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-gettimeofday.os rtld-setitimer.os' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/string' make[4]: Nothing to be done for `rtld-all'. make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/string' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/time' make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/time' make[4]: Entering directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/time' make[4]: Nothing to be done for `rtld-all'. make[4]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/time' make[3]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/elf' make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/elf' make[1]: *** [elf/others] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6' make: *** [all] Error 2 !!! ERROR: sys-libs/glibc-2.3.6-r3 failed. !!! Function toolchain-glibc_src_compile, Line 258, Exitcode 2 !!! make for amd64 failed !!! If you need support, post the topmost build error, NOT this status message. Just synced my portage this morning and tried to emerge.