Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 199471 - sys-libs/glibc-2.6.1 fails at emerging with undefined reference to `__sync_bool_compare_and_swap_4'
Summary: sys-libs/glibc-2.6.1 fails at emerging with undefined reference to `__sync_bo...
Status: VERIFIED DUPLICATE of bug 185404
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-17 21:18 UTC by dongxu li
Modified: 2007-11-17 21:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dongxu li 2007-11-17 21:18:04 UTC
"emerge glibc" always fails with:

/var/tmp/portage/sys-libs/glibc-2.6.1/work/build-x86-x86_64-pc-linux-gnu-nptl/libc_pic.os:
In function `__fork':
(.text+0x78e6f): undefined reference to `__sync_bool_compare_and_swap_4'
/var/tmp/portage/sys-libs/glibc-2.6.1/work/build-x86-x86_64-pc-linux-gnu-nptl/libc_pic.os:
In function `nscd_getpw_r':


Reproducible: Always

Steps to Reproduce:
1. emerge glibc

Actual Results:  

emerging breaks with:

/var/tmp/portage/sys-libs/glibc-2.6.1/work/build-x86-x86_64-pc-linux-gnu-nptl/libc_pic.os:
In function `__fork':
(.text+0x78e6f): undefined reference to `__sync_bool_compare_and_swap_4'
/var/tmp/portage/sys-libs/glibc-2.6.1/work/build-x86-x86_64-pc-linux-gnu-nptl/libc_pic.os:
In function `nscd_getpw_r':

the same problem reported as,
http://unixadmintalk.com/f71/glibc-2-6-1-emerge-error-511366/

Expected Results:  
emerge glibc finishes successfully

sys-libs/glibc-2.6.1.ebuild has 

EMULTILIB="true" hard coded, and doesn't honor USE="-multilib".

manually setting EMULILIB="false" fixes the problem, and glibc builds successfully.

I got the same problem on all my amd64 machines. following is "emerge --info " from one,

# emerge --info
Portage 2.1.3.19 (default-linux/amd64/2007.0, gcc-4.2.2/amd64-vanilla, glibc-2.6.1-r0, 2.6.22-gentoo-r10 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r10 x86_64 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz
Timestamp of tree: Sat, 17 Nov 2007 16:57:01 +0000
app-admin/eselect-compiler: 2.0.0_rc2-r1
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.5.1-r3
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
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.18-r1
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -fomit-frame-pointer "
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/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://mirror.datapipe.net/gentoo ftp://mirror.datapipe.net/gentoo ftp://gentoo.mirrors.tds.net/gentoo http://64.50.236.52/ http://gentoo.mirrors.tds.net/gentoo"
LANG="en_US.UTF-8"
LINGUAS="en zh zh_CN zh_TW"
MAKEOPTS="-j3"
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/local/portage /usr/local/portage/cross-i686-pc-linux-gnu /usr/portage/local/layman/je_fro /usr/portage/local/layman/voip"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi aiglx alsa amd64 bash-completion berkdb bitmap-fonts cairo cjk cli cracklib crypt cups dbus dri dvdread encode esd fftw firefox foomaticdb fortran gdbm glitz gnome gnutls gpm gstreamer gtk hal hdaps iconv immqt-bc ipv6 isdnlog jpeg lcms led midi mmx mng motif mpeg mudflap mysql ncurses newspr nls nptl nptlonly nsplugin opengl openmp pam pcre pdf perl png pppd pulseaudio python quicktime readline reflection scanner session smp spell spl sse sse2 ssl svg symlink tcpd tetex tiff truetype truetype-fonts type1-fonts unicode userlocales v4l v4l2 vorbis wmf xcomposite xinerama xml xorg xv zlib" 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="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en zh zh_CN zh_TW" USERLAND="GNU" VIDEO_CARDS="v4l vesa apm fglrx avivo radeonhd"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-11-17 21:21:57 UTC

*** This bug has been marked as a duplicate of bug 185404 ***
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-11-17 21:23:29 UTC
> sys-devel/gcc-config: 2.0.0_rc1

Ugh... Downgrade immediately and unmerge eselect-compiler as well.