Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 689170 - dev-libs/opencl-clang-8.0.0 - ld: cannot find -lclangARCMigrate
Summary: dev-libs/opencl-clang-8.0.0 - ld: cannot find -lclangARCMigrate
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-02 17:35 UTC by Conrad Kostecki
Modified: 2019-07-03 13:45 UTC (History)
0 users

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


Attachments
build.log (build.log,29.29 KB, text/plain)
2019-07-02 17:36 UTC, Conrad Kostecki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Conrad Kostecki gentoo-dev 2019-07-02 17:35:08 UTC
[ 92%] Linking CXX shared library libcommon_clang.so
/usr/bin/cmake -E cmake_link_script CMakeFiles/common_clang.dir/link.txt --verbose=1
/usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -m32 -fPIC -march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -fvisibility-inlines-hidden  -Wl,-rpath-link,  -Wl,-O3 -Wl,--gc-sections -Wl,--no-undefined -Wl,-Bsymbolic -Wl,--version-script=/var/tmp/portage/dev-libs/opencl-clang-8.0.0/work/opencl-clang-8.0.0/common_clang.map -Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,-z,now -shared -Wl,-soname,libcommon_clang.so.8 -o libcommon_clang.so.8 CMakeFiles/common_clang.dir/common_clang.cpp.o CMakeFiles/common_clang.dir/options.cpp.o CMakeFiles/common_clang.dir/pch_mgr.cpp.o CMakeFiles/common_clang.dir/options_compile.cpp.o cl_headers/CMakeFiles/cl_headers.dir/opencl-c.h.cpp.o  -L/usr/lib/llvm/8/lib -Wl,-rpath,"\$ORIGIN/../lib" -lclangBasic -lclangCodeGen -lclangDriver -lclangFrontend -lclangFrontendTool -lclangCodeGen -lclangRewriteFrontend -lclangARCMigrate -lclangStaticAnalyzerFrontend -lclangStaticAnalyzerCheckers -lclangStaticAnalyzerCore -lclangCrossTU -lclangIndex -lclangFrontend -lclangDriver -lclangParse -lclangSerialization -lclangSema -lclangAnalysis -lclangEdit -lclangFormat -lclangToolingInclusions -lclangToolingCore -lclangRewrite -lclangASTMatchers -lclangAST -lclangLex -lclangBasic -ldl -lLLVMSPIRVLib /usr/lib/llvm/8/lib/libLLVMDemangle.so.8 /usr/lib/llvm/8/lib/libLLVMTableGen.so.8 /usr/lib/llvm/8/lib/libLLVMFuzzMutate.so.8 /usr/lib/llvm/8/lib/libLLVMIRReader.so.8 /usr/lib/llvm/8/lib/libLLVMCodeGen.so.8 /usr/lib/llvm/8/lib/libLLVMSelectionDAG.so.8 /usr/lib/llvm/8/lib/libLLVMAsmPrinter.so.8 /usr/lib/llvm/8/lib/libLLVMMIRParser.so.8 /usr/lib/llvm/8/lib/libLLVMGlobalISel.so.8 /usr/lib/llvm/8/lib/libLLVMBinaryFormat.so.8 /usr/lib/llvm/8/lib/libLLVMBitReader.so.8 /usr/lib/llvm/8/lib/libLLVMBitWriter.so.8 /usr/lib/llvm/8/lib/libLLVMTransformUtils.so.8 /usr/lib/llvm/8/lib/libLLVMInstrumentation.so.8 /usr/lib/llvm/8/lib/libLLVMAggressiveInstCombine.so.8 /usr/lib/llvm/8/lib/libLLVMInstCombine.so.8 /usr/lib/llvm/8/lib/libLLVMScalarOpts.so.8 /usr/lib/llvm/8/lib/libLLVMipo.so.8 /usr/lib/llvm/8/lib/libLLVMVectorize.so.8 /usr/lib/llvm/8/lib/libLLVMObjCARCOpts.so.8 /usr/lib/llvm/8/lib/libLLVMCoroutines.so.8 /usr/lib/llvm/8/lib/libLLVMLinker.so.8 /usr/lib/llvm/8/lib/libLLVMAnalysis.so.8 /usr/lib/llvm/8/lib/libLLVMLTO.so.8 /usr/lib/llvm/8/lib/libLLVMMCParser.so.8 /usr/lib/llvm/8/lib/libLLVMMCDisassembler.so.8 /usr/lib/llvm/8/lib/libLLVMMCA.so.8 /usr/lib/llvm/8/lib/libLLVMObjectYAML.so.8 /usr/lib/llvm/8/lib/libLLVMOption.so.8 /usr/lib/llvm/8/lib/libLLVMOptRemarks.so.8 /usr/lib/llvm/8/lib/libLLVMDebugInfoDWARF.so.8 /usr/lib/llvm/8/lib/libLLVMDebugInfoMSF.so.8 /usr/lib/llvm/8/lib/libLLVMDebugInfoCodeView.so.8 /usr/lib/llvm/8/lib/libLLVMDebugInfoPDB.so.8 /usr/lib/llvm/8/lib/libLLVMSymbolize.so.8 /usr/lib/llvm/8/lib/libLLVMExecutionEngine.so.8 /usr/lib/llvm/8/lib/libLLVMInterpreter.so.8 /usr/lib/llvm/8/lib/libLLVMMCJIT.so.8 /usr/lib/llvm/8/lib/libLLVMOrcJIT.so.8 /usr/lib/llvm/8/lib/libLLVMRuntimeDyld.so.8 /usr/lib/llvm/8/lib/libLLVMTarget.so.8 /usr/lib/llvm/8/lib/libLLVMX86CodeGen.so.8 /usr/lib/llvm/8/lib/libLLVMX86AsmParser.so.8 /usr/lib/llvm/8/lib/libLLVMX86Disassembler.so.8 /usr/lib/llvm/8/lib/libLLVMX86AsmPrinter.so.8 /usr/lib/llvm/8/lib/libLLVMX86Desc.so.8 /usr/lib/llvm/8/lib/libLLVMX86Info.so.8 /usr/lib/llvm/8/lib/libLLVMX86Utils.so.8 /usr/lib/llvm/8/lib/libLLVMAsmParser.so.8 /usr/lib/llvm/8/lib/libLLVMLineEditor.so.8 /usr/lib/llvm/8/lib/libLLVMProfileData.so.8 /usr/lib/llvm/8/lib/libLLVMCoverage.so.8 /usr/lib/llvm/8/lib/libLLVMPasses.so.8 /usr/lib/llvm/8/lib/libLLVMTextAPI.so.8 /usr/lib/llvm/8/lib/libLLVMDlltoolDriver.so.8 /usr/lib/llvm/8/lib/libLLVMLibDriver.so.8 /usr/lib/llvm/8/lib/libLLVMXRay.so.8 /usr/lib/llvm/8/lib/libLLVMWindowsManifest.so.8 /usr/lib/llvm/8/lib/libLTO.so.8 /usr/lib/llvm/8/lib/libOptRemarks.so.8 -lclangCodeGen -lclangDriver -lclangFrontend -lclangFrontendTool -lclangRewriteFrontend -lclangARCMigrate -lclangStaticAnalyzerFrontend -lclangStaticAnalyzerCheckers -lclangStaticAnalyzerCore -lclangCrossTU -lclangIndex -lclangParse -lclangSerialization -lclangSema -lclangAnalysis -lclangEdit -lclangFormat -lclangToolingInclusions -lclangToolingCore -lclangRewrite -lclangASTMatchers -lclangAST -lclangLex -ldl -lLLVMSPIRVLib /usr/lib/llvm/8/lib/libLLVMSupport.so.8 /usr/lib/llvm/8/lib/libLLVMCore.so.8 /usr/lib/llvm/8/lib/libLLVMMC.so.8 /usr/lib/llvm/8/lib/libLLVMObject.so.8
/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lclangARCMigrate
/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lclangStaticAnalyzerFrontend
/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lclangStaticAnalyzerCheckers
/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lclangStaticAnalyzerCore
/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lclangARCMigrate
/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lclangStaticAnalyzerFrontend
/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lclangStaticAnalyzerCheckers
/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lclangStaticAnalyzerCore
collect2: Fehler: ld gab 1 als Ende-Status zurück
make[2]: *** [CMakeFiles/common_clang.dir/build.make:201: libcommon_clang.so.8] Fehler 1
make[2]: Verzeichnis „/var/tmp/portage/dev-libs/opencl-clang-8.0.0/work/opencl-clang-8.0.0-abi_x86_32.x86“ wird verlassen
make[1]: *** [CMakeFiles/Makefile2:74: CMakeFiles/common_clang.dir/all] Fehler 2
make[1]: Verzeichnis „/var/tmp/portage/dev-libs/opencl-clang-8.0.0/work/opencl-clang-8.0.0-abi_x86_32.x86“ wird verlassen
make: *** [Makefile:130: all] Fehler 2
 * ERROR: dev-libs/opencl-clang-8.0.0::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-libs/opencl-clang-8.0.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/opencl-clang-8.0.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/opencl-clang-8.0.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/opencl-clang-8.0.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/opencl-clang-8.0.0/work/opencl-clang-8.0.0-abi_x86_32.x86'
 * S: '/var/tmp/portage/dev-libs/opencl-clang-8.0.0/work/opencl-clang-8.0.0'
Comment 1 Conrad Kostecki gentoo-dev 2019-07-02 17:36:07 UTC
Created attachment 581796 [details]
build.log
Comment 2 Conrad Kostecki gentoo-dev 2019-07-02 17:36:12 UTC
Portage 2.3.68 (python 3.7.3-final-0, default/linux/amd64/17.1/desktop, gcc-9.1.0, glibc-2.29-r2, 5.1.15-gentoo x86_64)
=================================================================
System uname: Linux-5.1.15-gentoo-x86_64-Intel-R-_Core-TM-_i7-6600U_CPU_@_2.60GHz-with-gentoo-2.6
KiB Mem:    32645096 total,  28784084 free
KiB Swap:   17301500 total,  17301500 free
Timestamp of repository gentoo: Mon, 01 Jul 2019 00:45:01 +0000
Head commit of repository gentoo: f4ec2290fbd19606061cdaa667dd20df65335c36
sh bash 5.0_p7
ld GNU ld (Gentoo 2.32 p2) 2.32.0
distcc 3.3.2 x86_64-pc-linux-gnu [disabled]
ccache version 3.7.1 [enabled]
app-shells/bash:          5.0_p7::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.8::gentoo, 3.7.3::gentoo
dev-util/ccache:          3.7.1::gentoo
dev-util/cmake:           3.14.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.17::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.1.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: --exclude-from=/etc/portage/rsync_excludes

crossdev
    location: /usr/local/crossdev
    masters: gentoo

serenity
    location: /usr/local/portage
    masters: gentoo

sattvik
    location: /var/lib/layman/sattvik
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/user/sattvik.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

tlp
    location: /var/lib/layman/tlp
    sync-type: laymansync
    sync-uri: git://github.com/dywisor/tlp-portage.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n --with-bdeps=y"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-frecord-gcc-switches"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox protect-owned sandbox sfperms sign strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-frecord-gcc-switches"
GENTOO_MIRRORS="https://mirror.netcologne.de/gentoo/"
INSTALL_MASK="/etc/systemd/* /etc/xinetd.d/* /usr/lib/systemd/*"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,-z,now"
LINGUAS="de de_DE"
MAKEOPTS="-j5 -l4"
PKGDIR="/var/cache/binpkgs"
PORTAGE_BUNZIP2_COMMAND="pbunzip2"
PORTAGE_BZIP2_COMMAND="pbzip2"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9e"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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="/var/tmp"
USE="X a52 aac aalib accessibility acl adns alsa amd64 berkdb bidi bluetooth bzip2 cairo calendar caps cdda cddb cgi cjk cracklib crypt cups curl cvs cxx dbus dga djvu dri dts dv dvb dvd eds encode exif fbcon ffmpeg fftw flac fontconfig fortran ftp gd gdbm geolocation gif git gmp gnome-keyring gnutls gphoto2 gpm graphviz gsm gstreamer gtk iconv icu idn ieee1394 imagemagick imap imlib inotify introspection ipv6 java javascript jbig jemalloc jit joystick jpeg jpeg2k lame latex lcms ldap libass libcaca libnotify libsamplerate lm_sensors lua luajit lzma lzo mad maildir matroska mhash mikmod milter mmap mms mng modplug mono mp3 mpeg mplayer mtp musepack mysql mysqli ncurses networkmanager nls nntp nptl nsplugin offensive ogg openal openexr opengl openmp opus orc oss pam pcre pdf perl pie png policykit posix postscript pulseaudio python qt5 quicktime raw rdp readline rtmp samba sasl scanner sctp sdl seccomp session slang slp smartcard sndfile snmp soap sockets sound sox speex spell sqlite ssl startup-notification subversion suid svg symlink syslog taglib tcpd theora threads tiff truetype udev udisks unicode upnp usb v4l vaapi vcd vdpau vim-syntax vnc vorbis vpx wavpack wayland webkit webp wifi wmf wxwidgets x264 xattr xcb xcomposite xface xft xinetd xml xmp xpm xscreensaver xv xvid zeroconf zip zlib zsh-completion zstd" ABI_X86="32 64" COLLECTD_PLUGINS="apcups battery cgroups conntrack contextswitch cpu cpufreq cpusleep df disk dns entropy ethstat exec fhcount filecount gps hddtemp hugepages interface ipc ipmi iptables irq load lvm java mcelog md memory mysql netlink nfs nginx ntpd openldap openvpn ping postgresql processes protocols rrdcached sensors serial smart snmp swap syslog tcpconns thermal turbostat unixsock uptime users wireless" CPU_FLAGS_X86="aes avx avx2 mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="garmin garmintxt nmea0183" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de de_DE" LCD_DEVICES="cfontzpacket crystalfontz glcd2usb hd44780 lcd2usb" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" NGINX_MODULES_HTTP="access auth_basic autoindex brotli browser charset fancyindex fastcgi geo geoip geoip2 gunzip gzip gzip_static headers_more image_filter javascript limit_conn limit_req map metrics proxy realip referer rewrite secure_link sticky stub_status upload_progress upstream_keepalive vhost_traffic_status xslt" NGINX_MODULES_MAIL="imap pop3 smtp" NGINX_MODULES_STREAM="access geo geoip geoip2 javascript limit_conn map realip return ssl_preread" PHP_TARGETS="php7-3" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6 python3_7" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby26" SANE_BACKENDS="hp net" USERLAND="GNU" VIDEO_CARDS="i965 intel iris"
Unset:  CC, CPPFLAGS, CTARGET, CXX, PORTAGE_BINHOST
Comment 3 Conrad Kostecki gentoo-dev 2019-07-02 21:07:30 UTC
Found the cause.

dev-libs/opencl-clang has missing deps.
It must depend on sys-devel/clang[static-analyzer].
Comment 4 Larry the Git Cow gentoo-dev 2019-07-03 13:45:59 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f7fa39637544d8700741fe8bd6a16b07607e145

commit 7f7fa39637544d8700741fe8bd6a16b07607e145
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2019-07-03 11:28:51 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2019-07-03 13:43:26 +0000

    dev-libs/opencl-clang: depend on sys-devel/clang[static-analyzer]
    
    Turns out that the absence of static-analyzer among sys-devel/clang USE
    flags causes build-time linker errors. The flag in question is enabled by
    default so only a subset of users has been affected.
    
    Closes: https://bugs.gentoo.org/689170
    Signed-off-by: Marek Szuba <marecki@gentoo.org>
    Package-Manager: Portage-2.3.66, Repoman-2.3.11

 dev-libs/opencl-clang/opencl-clang-8.0.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)