Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519362 - sys-libs/db-5.1.25, sys-libs/db-5.2.28, sys-libs/db-5.2.36, sys-libs/db-5.2.42 fail to build with clang due to redefinition of '__atomic_compare_exchange'
Summary: sys-libs/db-5.1.25, sys-libs/db-5.2.28, sys-libs/db-5.2.36, sys-libs/db-5.2.4...
Status: RESOLVED DUPLICATE of bug 417547
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 OS X
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2014-08-07 23:52 UTC by Stuart Shelton
Modified: 2014-08-08 01:17 UTC (History)
1 user (show)

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 Stuart Shelton 2014-08-07 23:52:31 UTC
Possibly the patch from Bug 417547 needs to be ported to the Prefix tree?

libtool: compile:  /opt/gentoo/usr/bin/clang -c -I. -I/Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src -arch x86_64 -march=core-avx-i -mmacosx-version-min=10.9 -fcolor-diagnostics -ftrapv -O3 -pipe /Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/btree/bt_compress.c  -fno-common -DPIC -o .libs/bt_compress.o
In file included from /Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/mutex/mut_tas.c:11:
In file included from ./db_int.h:1089:
In file included from /Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/dbinc/mutex.h:15:
In file included from /Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/dbinc/mutex_int.h:12:
/Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/dbinc/atomic.h:179:19: error: definition of builtin function '__atomic_compare_exchange'
static inline int __atomic_compare_exchange(
                  ^
In file included from /Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/mutex/mut_pthread.c:11:
In file included from ./db_int.h:1089:
In file included from /Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/dbinc/mutex.h:15:
In file included from /Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/dbinc/mutex_int.h:12:
/Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/dbinc/atomic.h:179:19: error: definition of builtin function '__atomic_compare_exchange'
static inline int __atomic_compare_exchange(
                  ^
In file included from /Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/btree/bt_compress.c:9:
In file included from ./db_int.h:1089:
In file included from /Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/dbinc/mutex.h:15:
In file included from /Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/dbinc/mutex_int.h:12:
/Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/dbinc/atomic.h:179:19: error: definition of builtin function '__atomic_compare_exchange'
static inline int __atomic_compare_exchange(
                  ^
In file included from /Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/lang/db185/db185.c:11:
In file included from ./db_int.h:1089:
In file included from /Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/dbinc/mutex.h:15:
In file included from /Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/dbinc/mutex_int.h:12:
/Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/dbinc/atomic.h:179:19: error: definition of builtin function '__atomic_compare_exchange'
static inline int __atomic_compare_exchange(
                  ^
1 error generated.
1 error generated.
In file included from /Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/btree/bt_conv.c:11:
In file included from ./db_int.h:1089:
In file included from /Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/dbinc/mutex.h:15:
In file included from /Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/dbinc/mutex_int.h:12:
/Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/dbinc/atomic.h:179:19: error: definition of builtin function '__atomic_compare_exchange'
static inline int __atomic_compare_exchange(
                  ^
Makefile:2182: recipe for target 'mut_pthread.lo' failed
make: *** [mut_pthread.lo] Error 1
make: *** Waiting for unfinished jobs....
Makefile:2190: recipe for target 'mut_tas.lo' failed
make: *** [mut_tas.lo] Error 1
In file included from /Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/btree/bt_curadj.c:11:
In file included from ./db_int.h:1089:
In file included from /Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/dbinc/mutex.h:15:
In file included from /Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/dbinc/mutex_int.h:12:
/Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/dbinc/atomic.h:179:19: error: definition of builtin function '__atomic_compare_exchange'
static inline int __atomic_compare_exchange(
                  ^
In file included from /Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/btree/bt_compare.c:46:
In file included from ./db_int.h:1089:
In file included from /Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/dbinc/mutex.h:15:
In file included from /Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/dbinc/mutex_int.h:12:
/Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/src/dbinc/atomic.h:179:19: error: definition of builtin function '__atomic_compare_exchange'
static inline int __atomic_compare_exchange(
                  ^
/Volumes/Scratch/tmp/portage/sys-libs/db-5.2.42/work/db-5.2.42/lang/db185/db185.c:71:7: warning: case value not in enumerated type 'DBTYPE' [-Wswitch]
        case 0:                                 /* DB_BTREE */
             ^
1 warning and 1 error generated.
Makefile:1892: recipe for target 'db185.lo' failed
make: *** [db185.lo] Error 1
1 error generated.
Makefile:1842: recipe for target 'bt_conv.lo' failed
make: *** [bt_conv.lo] Error 1
1 error generated.
1 error generated.
Makefile:1838: recipe for target 'bt_compare.lo' failed
make: *** [bt_compare.lo] Error 1
1 error generated.
Makefile:1840: recipe for target 'bt_compress.lo' failed
make: *** [bt_compress.lo] Error 1
Makefile:1844: recipe for target 'bt_curadj.lo' failed
make: *** [bt_curadj.lo] Error 1
emake failed
 * ERROR: sys-libs/db-5.2.42::gentoo_prefix failed (compile phase):
 *   make failed
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called __call-ebuildshell 'src_compile'
 *   environment, line 294:  Called src_compile
 *   environment, line 4973:  Called die
 * The specific snippet of code:
 *       emake || die "make failed"
 * 
 * If you need support, post the output of `emerge --info '=sys-libs/db-5.2.42::gentoo_prefix'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/db-5.2.42::gentoo_prefix'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =db-5.2.42

$ emerge --info =db-5.2.42
Portage 2.2.10.1-prefix (python 2.7.6-final-0, prefix/darwin/macos/10.9/x64, gcc-4.2.1, unavailable, 13.3.0 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Darwin-13.3.0-x86_64-i386-64bit
Timestamp of tree: Thu, 07 Aug 2014 22:07:31 +0000
app-shells/bash:      4.2_p45-r1
dev-lang/python:      2.7.6-r1::srcshelton
dev-util/cmake:       2.8.12.2-r1
dev-util/pkgconfig:   0.28-r2
sys-devel/autoconf:   2.69
sys-devel/automake:   1.14
sys-devel/gcc-config: 1.8-r00.1
sys-devel/libtool:    2.4.2-r1
sys-devel/make:       4.0-r1
Repositories: gentoo_prefix timebomb_overlay
ACCEPT_KEYWORDS="amd64 amd64-linux x64-macos ~x64-macos"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-apple-darwin13"
CFLAGS="-arch x86_64 -march=core-avx-i -mmacosx-version-min=10.9 -fcolor-diagnostics -ftrapv -O3 -pipe"
CHOST="x86_64-apple-darwin13"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-arch x86_64 -march=core-avx-i -mmacosx-version-min=10.9 -fcolor-diagnostics -ftrapv -O3 -pipe"
DISTDIR="/opt/gentoo/usr/portage/distfiles"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs buildpkg candy clean-logs collision-protect compress-build-logs compressdebug config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles force-prefix merge-sync news nostrip parallel-fetch parallel-install preserve-libs protect-owned sfperms split-elog split-log splitdebug strict stricter unknown-features-warn unmerge-backup unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LC_ALL="C"
LDFLAGS="-Wl,-dead_strip_dylibs"
MAKEOPTS="-j7"
PKGDIR="/opt/gentoo/usr/portage/packages/clang"
PORTAGE_CONFIGROOT="/opt/gentoo/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/Volumes/Scratch/tmp"
PORTDIR="/opt/gentoo/usr/portage"
PORTDIR_OVERLAY="/opt/gentoo/usr/portage/local/timebomb"
USE="aqua berkdb bzip2 clang coreaudio cracklib crypt cvs cxx expat gdbm git gmp iconv icu idn ipv6 libedit lzma lzo mercurial mmx mmxext modules mpfr ncurses nls objc objc++ openmp pcre perl prefix python python2 readline sqlite sse sse2 ssl subversion threads unicode vim-syntax x64-macos xml zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="Darwin" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC
Comment 1 Christoph Junghans (RETIRED) gentoo-dev 2014-08-08 01:17:08 UTC
Not a prefix issue.

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