Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't compile sys-libs/glibc-2.6
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
general
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jul 2007
Posts: 90

PostPosted: Tue Jul 17, 2007 3:39 pm    Post subject: Can't compile sys-libs/glibc-2.6 Reply with quote

just trying to re-emerge world
any help?
Code:

dl-open.c:(.text+0x118d6): undefined reference to `__sync_fetch_and_add_4'
/var/tmp/portage/sys-libs/glibc-2.6/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/librtld.os: In function `_dl_close_worker':
(.text+0x127d4): undefined reference to `__sync_val_compare_and_swap_4'
/var/tmp/portage/sys-libs/glibc-2.6/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/librtld.os: In function `_dl_close_worker':
(.text+0x12802): undefined reference to `__sync_fetch_and_add_4'
collect2: ld returned 1 exit status
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.6/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/ld.so] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.6/work/glibc-2.6/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.6/work/glibc-2.6'
make: *** [all] Error 2
 *
 * ERROR: sys-libs/glibc-2.6 failed.
 * Call stack:
 *   ebuild.sh, line 1647:   Called dyn_compile
 *   ebuild.sh, line 988:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   glibc-2.6.ebuild, line 1168:   Called src_compile
 *   glibc-2.6.ebuild, line 1179:   Called toolchain-glibc_src_compile
 *   glibc-2.6.ebuild, line 275:   Called die
 *
 * make for x86 failed
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.6/temp/build.log'.
 * This ebuild used the following eclasses from overlays:
 *   /usr/portage/eclass/eutils.eclass
 *   /usr/portage/eclass/multilib.eclass
 *   /usr/portage/eclass/toolchain-funcs.eclass
 *   /usr/portage/eclass/portability.eclass
 *   /usr/portage/eclass/versionator.eclass
 *   /usr/portage/eclass/libtool.eclass
 *   /usr/portage/eclass/flag-o-matic.eclass
 *   /usr/portage/eclass/gnuconfig.eclass
 *

do you want the build log?
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Tue Jul 17, 2007 5:13 pm    Post subject: Reply with quote

I'm sensing that you don't have -march in your CFLAGS:
sys-libs/glibc-2.6 fails with undefined ref to __sync_fetch_and_add_4 on x86 when built with -march=i386
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
general
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jul 2007
Posts: 90

PostPosted: Tue Jul 17, 2007 6:11 pm    Post subject: Reply with quote

oh this is gentoo amd46

Code:

general@Atlantis ~ $ emerge --info
!!! Invalid PORTDIR_OVERLAY (not a dir): '/usr/portage/xeffects/trunk'
Portage 2.1.3_rc8 (default-linux/amd64/2007.0, gcc-4.1.1, glibc-2.5-r0, 2.6.20-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r8 x86_64 AMD Sempron(tm) Processor 3500+
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 17 Jul 2007 05:20:01 +0000
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-mtune=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="ftp://ftp.gtlib.gatech.edu/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 arts berkdb bitmap-fonts cdr cli cracklib crypt cups disk-partition dri dvd dvdr dvdread encode fortran gdbm gif glitz gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde libg++ lirc lm_sensors mad midi mmx mng mp3 mudflap musicbrainz mysql ncurses nls nptl nptlonly nvidia offensive ogg openal opengl openmp pam pcre pdf perl png pppd python qt-static qt4 readline reflection samba sensord session spell spl sse sse2 ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode v4l vcd vorbis xcomposite xine xinerama xml xorg xscreensaver" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keybord mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

general@Atlantis ~ $                             
Back to top
View user's profile Send private message
n3Cre0
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2007
Posts: 129

PostPosted: Tue Jul 17, 2007 7:26 pm    Post subject: Reply with quote

Same here, same error.

Error wrote:

...
echo 'libc_hidden_weak (setitimer)'; \
) | i686-pc-linux-gnu-gcc -c -I../include -I/var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/time -I/var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../ports/sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv/i386 -I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix -I../ports/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -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 -I../nptl -I../ports -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include -isystem /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC -DSHARED -DNOT_IN_libc=1 -DIS_IN_rtld=1 -DASSEMBLER -DGAS_SYNTAX -Wa,--noexecstack -Wa,--noexecstack -Wa,--noexecstack -Wa,--noexecstack -x assembler-with-cpp -o /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/time/rtld-setitimer.os -
make[4]: Leaving directory `/var/tmp/portage/portage/sys-libs/glibc-2.6/work/glibc-2.6/time'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ar cqv /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/elf/rtld-libc.aT /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/csu/rtld-check_fds.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/csu/rtld-errno.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/csu/rtld-divdi3.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/gmon/rtld-profil.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/gmon/rtld-prof-freq.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/io/rtld-xstat64.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/io/rtld-fxstat64.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/io/rtld-open.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/io/rtld-close.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/io/rtld-read.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/io/rtld-write.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/io/rtld-lseek.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/io/rtld-access.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/io/rtld-fcntl.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/io/rtld-getcwd.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/misc/rtld-getpagesize.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/misc/rtld-mmap.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/misc/rtld-munmap.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/misc/rtld-mprotect.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/nptl/rtld-libc-cancellation.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/nptl/rtld-forward.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/nptl/rtld-libc-lowlevellock.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/posix/rtld-uname.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/posix/rtld-_exit.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/posix/rtld-getpid.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/posix/rtld-environ.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/setjmp/rtld-setjmp.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/setjmp/rtld-__longjmp.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/signal/rtld-sigaction.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/stdlib/rtld-exit.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/stdlib/rtld-cxa_atexit.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/string/rtld-strchr.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/string/rtld-strcmp.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/string/rtld-strlen.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/string/rtld-strnlen.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/string/rtld-memchr.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/string/rtld-memmove.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/string/rtld-memset.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/string/rtld-mempcpy.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/string/rtld-stpcpy.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/string/rtld-memcpy.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/string/rtld-rawmemchr.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/time/rtld-setitimer.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/csu/rtld-check_fds.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/csu/rtld-errno.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/csu/rtld-divdi3.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/gmon/rtld-profil.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/gmon/rtld-prof-freq.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/io/rtld-xstat64.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/io/rtld-fxstat64.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/io/rtld-open.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/io/rtld-close.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/io/rtld-read.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/io/rtld-write.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/io/rtld-lseek.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/io/rtld-access.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/io/rtld-fcntl.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/io/rtld-getcwd.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/misc/rtld-getpagesize.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/misc/rtld-mmap.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/misc/rtld-munmap.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/misc/rtld-mprotect.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/nptl/rtld-libc-cancellation.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/nptl/rtld-forward.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/nptl/rtld-libc-lowlevellock.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/posix/rtld-uname.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/posix/rtld-_exit.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/posix/rtld-getpid.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/posix/rtld-environ.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/setjmp/rtld-setjmp.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/setjmp/rtld-__longjmp.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/signal/rtld-sigaction.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/stdlib/rtld-exit.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/stdlib/rtld-cxa_atexit.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/string/rtld-strchr.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/string/rtld-strcmp.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/string/rtld-strlen.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/string/rtld-strnlen.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/string/rtld-memchr.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/string/rtld-memmove.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/string/rtld-memset.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/string/rtld-mempcpy.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/string/rtld-stpcpy.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/string/rtld-memcpy.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/string/rtld-rawmemchr.os
a - /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/time/rtld-setitimer.os
: /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/elf/rtld-libc.aT
mv -f /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/elf/rtld-libc.aT /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/elf/rtld-libc.a
make[3]: Leaving directory `/var/tmp/portage/portage/sys-libs/glibc-2.6/work/glibc-2.6/elf'
i686-pc-linux-gnu-gcc -nostdlib -nostartfiles -r -o /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/elf/librtld.os '-Wl,-(' /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/elf/dl-allobjs.os /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/elf/rtld-libc.a -lgcc '-Wl,-)' \
-Wl,-Map,/var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/elf/librtld.os.map
i686-pc-linux-gnu-gcc -nostdlib -nostartfiles -shared -Wl,-z,now \
-Wl,-z,combreloc -Wl,-z,relro -Wl,-z,defs -Wl,--verbose 2>&1 | \
LC_ALL=C \
sed -e '/^=========/,/^=========/!d;/^=========/d' \
-e 's/\. = 0 + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
> /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/elf/ld.so.lds
i686-pc-linux-gnu-gcc -nostdlib -nostartfiles -shared -o /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/elf/ld.so \
-Wl,-z,combreloc -Wl,-z,relro -Wl,-z,defs -Wl,-z,now \
/var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/elf/librtld.os -Wl,--version-script=/var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/ld.map \
-Wl,-soname=ld-linux.so.2 -T /var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/elf/ld.so.lds
/var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/elf/librtld.os: In function `_dl_lookup_symbol_x':
(.text+0x98b3): undefined reference to `__sync_fetch_and_add_4'
/var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/elf/librtld.os: In function `_dl_lookup_symbol_x':
(.text+0x9910): undefined reference to `__sync_val_compare_and_swap_4'
/var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/elf/librtld.os: In function `_dl_profile_fixup':
(.text+0xcec1): undefined reference to `__sync_val_compare_and_swap_4'
/var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/elf/librtld.os: In function `_dl_profile_fixup':
(.text+0xcf26): undefined reference to `__sync_fetch_and_add_4'
/var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/elf/librtld.os: In function `_dl_fixup':
(.text+0xd16b): undefined reference to `__sync_val_compare_and_swap_4'
/var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/elf/librtld.os: In function `_dl_fixup':
(.text+0xd1cf): undefined reference to `__sync_fetch_and_add_4'
/var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/elf/librtld.os: In function `dl_open_worker':
dl-open.c:(.text+0x1199b): undefined reference to `__sync_val_compare_and_swap_4'
dl-open.c:(.text+0x119c8): undefined reference to `__sync_fetch_and_add_4'
/var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/elf/librtld.os: In function `_dl_close_worker':
(.text+0x128bd): undefined reference to `__sync_val_compare_and_swap_4'
/var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/elf/librtld.os: In function `_dl_close_worker':
(.text+0x128ed): undefined reference to `__sync_fetch_and_add_4'
collect2: ld returned 1 exit status
make[2]: *** [/var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/elf/ld.so] Error 1
make[2]: Leaving directory `/var/tmp/portage/portage/sys-libs/glibc-2.6/work/glibc-2.6/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/portage/sys-libs/glibc-2.6/work/glibc-2.6'
make: *** [all] Error 2
*
* ERROR: sys-libs/glibc-2.6 failed.
* Call stack:
* ebuild.sh, line 1647: Called dyn_compile
* ebuild.sh, line 988: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* glibc-2.6.ebuild, line 1179: Called toolchain-glibc_src_compile
* glibc-2.6.ebuild, line 275: Called die
*
* make for default failed
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/log/portage/sys-libs:glibc-2.6:20070717-091947.log'.
*


Snippet of the compile wrote:

* ABI: default
* CBUILD: i686-pc-linux-gnu
* CHOST: i686-pc-linux-gnu
* CTARGET: i686-pc-linux-gnu
* CBUILD_OPT:
* CTARGET_OPT:
* CC:
* CFLAGS: -mtune=i686 -pipe -O2 -fno-strict-aliasing

* Configuring GLIBC for nptl with:
--disable-stackguard-randomization
--enable-old-ssp-compat
--enable-add-ons=nptl,c_stubs,libidn,ports
--enable-kernel=2.6.9
--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
--libdir=/usr/lib
--mandir=/usr/share/man
--infodir=/usr/share/info
--libexecdir=/usr/lib/misc/glibc


emerge --info wrote:

Portage 2.1.3_rc8 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo i686)
=================================================================
System uname: 2.6.22-gentoo i686 Intel(R) Pentium(R) M processor 1.73GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Tue, 17 Jul 2007 19:00:10 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python: 2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: 2.4-r7
sys-apps/sandbox: 1.2.18.1
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.22-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="ccache confcache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
INSTALL_MASK=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS=""
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/mozilla /usr/portage/local/layman/xeffects /usr/portage/local/layman/java-overlay /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa amarok avahi avi bash-completion berkdb bitmap-fonts branding cairo cdr cli cracklib crypt cups dbus directfb divx4linux dri dvd dvdr dvdread emboss encode esd evo fam ffmpeg firefox fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal iconv ipod ipv6 isdnlog java jpeg junit kerberos ldap libg++ logrotate mad mikmod mmx mozbranding mozilla mp3 mpeg mplayer msn mudflap ncurses nls nojoystick nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session sockets socks5 spell spl sse sse2 ssl svg tcpd tetex tiff truetype truetype-fonts type1-fonts unicode vim-syntax vorbis wifi win32codecs x86 xine xml xorg xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics ps2mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fglrx vesa fbdev radeon"
Unset: CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

_________________
OS: Linux 2.6.26 i686 Gentoo v2.0.0 Sound: HDA Intel
CPU: Intel(R) Pentium(R) M processor 1.73GHz (GenuineIntel)
Disk: 95.23GB Video: ATI Radeon Mobility X700 XL with Catalyst 8.08 RAM: 1011MB
Back to top
View user's profile Send private message
general
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jul 2007
Posts: 90

PostPosted: Tue Jul 17, 2007 7:51 pm    Post subject: Reply with quote

Quote:
/var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/elf/librtld.os: In function `dl_open_worker':
dl-open.c:(.text+0x1199b): undefined reference to `__sync_val_compare_and_swap_4'
dl-open.c:(.text+0x119c8): undefined reference to `__sync_fetch_and_add_4'
/var/tmp/portage/portage/sys-libs/glibc-2.6/work/build-default-i686-pc-linux-gnu-nptl/elf/librtld.os: In function `_dl_close_worker':

your computer is infected with Emoticons lol
Back to top
View user's profile Send private message
midnite
Guru
Guru


Joined: 09 Apr 2006
Posts: 435
Location: Hong Kong

PostPosted: Tue Jul 17, 2007 8:16 pm    Post subject: Reply with quote

can this help? http://www.gentoo.org/doc/en/change-chost.xml
i am trying too ..
Back to top
View user's profile Send private message
general
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jul 2007
Posts: 90

PostPosted: Tue Jul 17, 2007 8:33 pm    Post subject: Reply with quote

midnite wrote:
can this help? http://www.gentoo.org/doc/en/change-chost.xml
i am trying too ..

could you please post your emerge --info?
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Tue Jul 17, 2007 8:38 pm    Post subject: Reply with quote

It's not CHOST and it doesn't matter that you're on amd64. Read the bug, or the output n3Cre0 posted: it fails on amd64 because you're running multilib and the library is built for both ABIs. And, lo and behold, neither of you (general and n3Cre0) have -march in your CFLAGS. I'm willing to bet it's the same for midnite.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
general
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jul 2007
Posts: 90

PostPosted: Tue Jul 17, 2007 9:03 pm    Post subject: Reply with quote

what is librtld.so? whats its fuction in the system?
Back to top
View user's profile Send private message
general
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jul 2007
Posts: 90

PostPosted: Tue Jul 17, 2007 9:09 pm    Post subject: Reply with quote

ok I set the -march flag
if gentoo desn't work when I get my new prossesor I'm going to be pissed
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Tue Jul 17, 2007 9:32 pm    Post subject: Reply with quote

general wrote:
ok I set the -march flag
if gentoo desn't work when I get my new prossesor I'm going to be pissed

It's not as if glibc-2.6 was marked stable or something...
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Tue Jul 17, 2007 9:50 pm    Post subject: Reply with quote

general wrote:
ok I set the -march flag
if gentoo desn't work when I get my new prossesor I'm going to be pissed


Then choose something generic like i686, just not i386 (without -march it defaults to i386, btw). You can still use -mtune to tweak the generated code, but if you're getting a new CPU, you may want to just wait till then. With just -mtune alone, you get -march=i386, which determines the available instructions. gcc then uses -mtune to try and
Quote:
[t]une to cpu-type everything applicable about the generated code, except for the ABI and the set of available instructions.


In other words, it will still run on any given CPU that implements the version of the x86 architecture specified by -march, but it may not run as well as it could.
Back to top
View user's profile Send private message
n3Cre0
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2007
Posts: 129

PostPosted: Wed Jul 18, 2007 7:36 pm    Post subject: Reply with quote

Changed CFLAGS then..
/etc/make.conf wrote:
#CFLAGS="-O2 -mtune=i686 -pipe"
CFLAGS="-O2 -march=i686 -pipe"


Do I need to reemerge world/system now? o.O

+ are my CFLAGS "ok" now?

EDIT: Emerge went fine now
Quote:
Portage 2.1.3_rc8 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6-r0, 2.6.22-gentoo i686)
=================================================================
System uname: 2.6.22-gentoo i686 Intel(R) Pentium(R) M processor 1.73GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Wed, 18 Jul 2007 19:30:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python: 2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: 2.4-r7
sys-apps/sandbox: 1.2.18.1
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.22-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="ccache confcache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
INSTALL_MASK=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS=""
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/mozilla /usr/portage/local/layman/xeffects /usr/portage/local/layman/java-overlay /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa amarok avahi avi bash-completion berkdb bitmap-fonts branding cairo cdr cli cracklib crypt cups dbus directfb divx4linux dri dvd dvdr dvdread emboss encode esd evo fam ffmpeg firefox fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal iconv ipod ipv6 isdnlog java jpeg junit kerberos ldap libg++ logrotate mad mikmod mmx mozbranding mozilla mp3 mpeg mplayer msn mudflap ncurses nls nojoystick nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session sockets socks5 spell spl sse sse2 ssl svg tcpd tetex tiff truetype truetype-fonts type1-fonts unicode vim-syntax vorbis wifi win32codecs x86 xine xml xorg xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics ps2mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fglrx vesa fbdev radeon"
Unset: CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS


Well.. now a dreaded reboot..

EDIT: Well I rebooted, updated world again and rebooted, and everything works :)
_________________
OS: Linux 2.6.26 i686 Gentoo v2.0.0 Sound: HDA Intel
CPU: Intel(R) Pentium(R) M processor 1.73GHz (GenuineIntel)
Disk: 95.23GB Video: ATI Radeon Mobility X700 XL with Catalyst 8.08 RAM: 1011MB
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum