Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 605704 - dev-libs/icu-58.2 fails to link on MacOS Sierra w/clang-3.8.1 due to missing symbol
Summary: dev-libs/icu-58.2 fails to link on MacOS Sierra w/clang-3.8.1 due to missing ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-14 16:17 UTC by Stuart Shelton
Modified: 2021-01-06 13:39 UTC (History)
0 users

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


Attachments
build.log for failing icu-58.2 package (build.log.gz,10.91 KB, application/x-gzip)
2017-01-30 16:05 UTC, Stuart Shelton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2017-01-14 16:17:50 UTC
Attempting to build icu-58.2 on MacOS Sierra with clang-3.8.1 fails with:

Undefined symbols for architecture x86_64:
  "_icudt58_dat", referenced from:
      openCommonData(char const*, int, UErrorCode*) in udata.o
ld: symbol(s) not found for architecture x86_64
x86_64-apple-darwin16-clang-3.8: error: linker command failed with exit code 1

... also noting that gcc doesn't grok the '-std=c++14' which the ebuild force-sets (although there's a bug for this in the main tracker) and using the platform compiler suite via Xcode command-line tools breaks more even earlier.

Dropping the c++14 line from the ebuild and attempting to build with gcc throws more errors - but ultimately fails in the same place with the same error, with either binutils-apple-6.3 or binutils-apple-7.3.1.


Build output:

...

config.status: creating common/Makefile
   clang++	 ...  /Volumes/Scratch/tmp/portage/dev-libs/icu-58.2/work/icu/source/common/errorcode.cpp

...

   clang	 ...  /Volumes/Scratch/tmp/portage/dev-libs/icu-58.2/work/icu/source/common/ubiditransform.c
   clang++	 ...  /Volumes/Scratch/tmp/portage/dev-libs/icu-58.2/work/icu/source/common/pluralmap.cpp
/opt/gentoo/usr/bin/clang++ -dynamiclib -dynamic -arch x86_64 -march=core-avx-i -fcolor-diagnostics -O3 -pipe -fno-builtin -Wno-implicit-function-declaration -mmacosx-version-min=10.12 -std=c++14 -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long    -fvisibility=hidden -L/opt/gentoo/usr/lib -L /usr/lib -v    -Wl,-compatibility_version -Wl,58 -Wl,-current_version -Wl,58.2 -install_name /opt/gentoo/usr/lib/libicuuc.58.dylib -o ../lib/libicuuc.58.2.dylib errorcode.o putil.o umath.o utypes.o uinvchar.o umutex.o ucln_cmn.o uinit.o uobject.o cmemory.o charstr.o cstr.o udata.o ucmndata.o udatamem.o umapfile.o udataswp.o ucol_swp.o utrace.o uhash.o uhash_us.o uenum.o ustrenum.o uvector.o ustack.o uvectr32.o uvectr64.o ucnv.o ucnv_bld.o ucnv_cnv.o ucnv_io.o ucnv_cb.o ucnv_err.o ucnvlat1.o ucnv_u7.o ucnv_u8.o ucnv_u16.o ucnv_u32.o ucnvscsu.o ucnvbocu.o ucnv_ext.o ucnvmbcs.o ucnv2022.o ucnvhz.o ucnv_lmb.o ucnvisci.o ucnvdisp.o ucnv_set.o ucnv_ct.o resource.o uresbund.o ures_cnv.o uresdata.o resbund.o resbund_cnv.o ucurr.o messagepattern.o ucat.o locmap.o uloc.o locid.o locutil.o locavailable.o locdispnames.o locdspnm.o loclikely.o locresdata.o bytestream.o stringpiece.o stringtriebuilder.o bytestriebuilder.o bytestrie.o bytestrieiterator.o ucharstrie.o ucharstriebuilder.o ucharstrieiterator.o dictionarydata.o appendable.o ustr_cnv.o unistr_cnv.o unistr.o unistr_case.o unistr_props.o utf_impl.o ustring.o ustrcase.o ucasemap.o ucasemap_titlecase_brkiter.o cstring.o ustrfmt.o ustrtrns.o ustr_wcs.o utext.o unistr_case_locale.o ustrcase_locale.o unistr_titlecase_brkiter.o ustr_titlecase_brkiter.o normalizer2impl.o normalizer2.o filterednormalizer2.o normlzr.o unorm.o unormcmp.o loadednormalizer2impl.o chariter.o schriter.o uchriter.o uiter.o patternprops.o uchar.o uprops.o ucase.o propname.o ubidi_props.o ubidi.o ubidiwrt.o ubidiln.o ushape.o uscript.o uscript_props.o usc_impl.o unames.o utrie.o utrie2.o utrie2_builder.o bmpset.o unisetspan.o uset_props.o uniset_props.o uniset_closure.o uset.o uniset.o usetiter.o ruleiter.o caniter.o unifilt.o unifunct.o uarrsort.o brkiter.o ubrk.o brkeng.o dictbe.o filteredbrk.o rbbi.o rbbidata.o rbbinode.o rbbirb.o rbbiscan.o rbbisetb.o rbbistbl.o rbbitblb.o serv.o servnotf.o servls.o servlk.o servlkf.o servrbf.o servslkf.o uidna.o usprep.o uts46.o punycode.o util.o util_props.o parsepos.o locbased.o cwchar.o wintz.o dtintrv.o ucnvsel.o propsvec.o ulist.o uloc_tag.o icudataver.o icuplug.o listformatter.o ulistformatter.o sharedobject.o simpleformatter.o unifiedcache.o uloc_keytype.o ubiditransform.o pluralmap.o -L../lib -L../stubdata -licudata -lpthread -lm 
clang version 3.8.1 (tags/RELEASE_381/final)
Target: x86_64-apple-darwin16.3.0
Thread model: posix
InstalledDir: /opt/gentoo/usr/bin
 "/opt/gentoo/usr/bin/ld" -demangle -dynamic -dylib -arch x86_64 -dylib_install_name /opt/gentoo/usr/lib/libicuuc.58.dylib -dynamic -macosx_version_min 10.12.0 -o ../lib/libicuuc.58.2.dylib -L/opt/gentoo/usr/lib -L/usr/lib -L../lib -L../stubdata -compatibility_version 58 -current_version 58.2 errorcode.o putil.o umath.o utypes.o uinvchar.o umutex.o ucln_cmn.o uinit.o uobject.o cmemory.o charstr.o cstr.o udata.o ucmndata.o udatamem.o umapfile.o udataswp.o ucol_swp.o utrace.o uhash.o uhash_us.o uenum.o ustrenum.o uvector.o ustack.o uvectr32.o uvectr64.o ucnv.o ucnv_bld.o ucnv_cnv.o ucnv_io.o ucnv_cb.o ucnv_err.o ucnvlat1.o ucnv_u7.o ucnv_u8.o ucnv_u16.o ucnv_u32.o ucnvscsu.o ucnvbocu.o ucnv_ext.o ucnvmbcs.o ucnv2022.o ucnvhz.o ucnv_lmb.o ucnvisci.o ucnvdisp.o ucnv_set.o ucnv_ct.o resource.o uresbund.o ures_cnv.o uresdata.o resbund.o resbund_cnv.o ucurr.o messagepattern.o ucat.o locmap.o uloc.o locid.o locutil.o locavailable.o locdispnames.o locdspnm.o loclikely.o locresdata.o bytestream.o stringpiece.o stringtriebuilder.o bytestriebuilder.o bytestrie.o bytestrieiterator.o ucharstrie.o ucharstriebuilder.o ucharstrieiterator.o dictionarydata.o appendable.o ustr_cnv.o unistr_cnv.o unistr.o unistr_case.o unistr_props.o utf_impl.o ustring.o ustrcase.o ucasemap.o ucasemap_titlecase_brkiter.o cstring.o ustrfmt.o ustrtrns.o ustr_wcs.o utext.o unistr_case_locale.o ustrcase_locale.o unistr_titlecase_brkiter.o ustr_titlecase_brkiter.o normalizer2impl.o normalizer2.o filterednormalizer2.o normlzr.o unorm.o unormcmp.o loadednormalizer2impl.o chariter.o schriter.o uchriter.o uiter.o patternprops.o uchar.o uprops.o ucase.o propname.o ubidi_props.o ubidi.o ubidiwrt.o ubidiln.o ushape.o uscript.o uscript_props.o usc_impl.o unames.o utrie.o utrie2.o utrie2_builder.o bmpset.o unisetspan.o uset_props.o uniset_props.o uniset_closure.o uset.o uniset.o usetiter.o ruleiter.o caniter.o unifilt.o unifunct.o uarrsort.o brkiter.o ubrk.o brkeng.o dictbe.o filteredbrk.o rbbi.o rbbidata.o rbbinode.o rbbirb.o rbbiscan.o rbbisetb.o rbbistbl.o rbbitblb.o serv.o servnotf.o servls.o servlk.o servlkf.o servrbf.o servslkf.o uidna.o usprep.o uts46.o punycode.o util.o util_props.o parsepos.o locbased.o cwchar.o wintz.o dtintrv.o ucnvsel.o propsvec.o ulist.o uloc_tag.o icudataver.o icuplug.o listformatter.o ulistformatter.o sharedobject.o simpleformatter.o unifiedcache.o uloc_keytype.o ubiditransform.o pluralmap.o -licudata -lpthread -lm -lc++ -lSystem
Undefined symbols for architecture x86_64:
  "_icudt58_dat", referenced from:
      openCommonData(char const*, int, UErrorCode*) in udata.o
ld: symbol(s) not found for architecture x86_64
x86_64-apple-darwin16-clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [Makefile:211: ../lib/libicuuc.58.2.dylib] Error 1
make[1]: Leaving directory '/Volumes/Scratch/tmp/portage/dev-libs/icu-58.2/work/icu/source-abi_x86_64.amd64/common'
make: *** [Makefile:143: all-recursive] Error 2
 * ERROR: dev-libs/icu-58.2::gentoo_prefix failed (compile phase):
 *   emake failed


emerge --info:

Portage 2.2.28-prefix (python 2.7.12-final-0, prefix/darwin/macos/10.12/x64, gcc-4.2.1, unavailable, 16.3.0 x86_64)
=================================================================
System uname: Darwin-16.3.0-x86_64-i386-64bit
Timestamp of repository gentoo_prefix: Sat, 14 Jan 2017 13:57:51 +0000
sh bash 4.3_p48-r1
app-shells/bash:      4.3_p48-r1:: gentoo_prefix
dev-lang/perl:        5.22.2:: gentoo_prefix
dev-lang/python:      2.7.12:: gentoo_prefix
dev-util/cmake:       3.7.1::gentoo_prefix
dev-util/pkgconfig:   0.29.1::gentoo_prefix
sys-devel/autoconf:   2.69::gentoo_prefix
sys-devel/automake:   1.14.1::gentoo_prefix, 1.15::gentoo_prefix
sys-devel/gcc-config: 1.8-r1::gentoo_prefix
sys-devel/libtool:    2.4.6-r1::gentoo_prefix
sys-devel/make:       4.2.1::gentoo_prefix
Repositories:

gentoo_prefix
    location: /opt/gentoo/var/db/repo/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix
    priority: -1000
    aliases: gentoo

ACCEPT_KEYWORDS="amd64 amd64-linux x64-macos ~x64-macos"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-apple-darwin16"
CC="/opt/gentoo/usr/bin/clang"
CFLAGS="-arch x86_64 -march=core-avx-i -fcolor-diagnostics -O3 -pipe -fno-builtin -Wno-implicit-function-declaration -mmacosx-version-min=10.12"
CHOST="x86_64-apple-darwin16"
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/ssl/certs /etc/terminfo /opt/gentoo/etc/ssl/certs"
CXX="/opt/gentoo/usr/bin/clang++"
CXXFLAGS=" -arch x86_64 -march=core-avx-i -fcolor-diagnostics -O3 -pipe -fno-builtin -Wno-implicit-function-declaration -mmacosx-version-min=10.12"
DISTDIR="/opt/gentoo/var/cache/portage/dist"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs buildpkg candy case-insensitive-fs 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 unprivileged userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LC_ALL="C"
LDFLAGS="-Wl,-dead_strip_dylibs -L/opt/gentoo/usr/lib -L/usr/lib"
MAKEOPTS="-j7"
PKGDIR="/opt/gentoo/var/cache/portage/pkg/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 --exclude=/.git"
PORTAGE_TMPDIR="/Volumes/Scratch/tmp"
USE="aqua berkdb bzip2 clang coreaudio cracklib crypt cvs cxx expat gdbm git gmp http2 iconv icu idn ipv6 jemalloc libcxx libedit lto lzma lzo mercurial mmx mmxext modules mpfr ncurses nls objc objc++ openmp pcre perl pgo prefix prefix-guest python python2 readline sqlite sse sse2 ssl subversion threads unicode vim-syntax x64-macos xml zlib" ABI_X86="64" 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" CPU_FLAGS_X86="mmx sse sse2 ssse3" 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" LINGUAS="en en_GB" LLVM_TARGETS="X86 AMDGPU" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby21" 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
Comment 1 Fabian Groffen gentoo-dev 2017-01-29 12:35:35 UTC
which clang-3.9.1 this installed fine for me.
Comment 2 Stuart Shelton 2017-01-30 16:05:48 UTC
Created attachment 461902 [details]
build.log for failing icu-58.2 package

Build log for failing icu-58.2 built with clang-3.9.1 on MacOS 10.12.2
Comment 3 Stuart Shelton 2017-01-30 16:06:06 UTC
Hmm - still broken with exactly the same error with clang-3.9.1 :(

Build log attached...

(In reply to Fabian Groffen from comment #1)
> which clang-3.9.1 this installed fine for me.
Comment 4 Fabian Groffen gentoo-dev 2021-01-06 13:39:11 UTC
current state of the tree doesn't exhibit these problems