View previous topic :: View next topic |
Author |
Message |
causality Apprentice
Joined: 03 Jun 2006 Posts: 239
|
Posted: Mon Dec 04, 2017 1:16 am Post subject: Can't compile dev-libs/libclc, missing header file |
|
|
I may have stumbled across a bug.
I wanted to try installing wine-any with the opencl USE flag just to experiment with it. Doing so pulls in dev-libs/libclc-0.2.0_pre20160921 as a dependency.
On amd64 system I am unable to emerge dev-libs/libclc. It fails 100% of the time during the build stage with the following error:
Code: | LLVM-CC nvptx--nvidiacl/lib/workitem/get_global_size.cl.bc
/usr/lib64/llvm/5/bin/clang -MMD -MF nvptx--nvidiacl/lib/workitem/get_global_size.cl.bc.d -target nvptx--nvidiacl -I`dirname ./generic/lib/workitem/get_global_size.cl` -I./generic/include -fno-builtin -D__CLC_INTERNAL -emit-llvm -c -o nvptx--nvidiacl/lib/workitem/get_global_size.cl.bc ./generic/lib/workitem/get_global_size.cl
LLVM-CC nvptx--nvidiacl/lib/image/get_image_dim.cl.bc
/usr/lib64/llvm/5/bin/clang -MMD -MF nvptx--nvidiacl/lib/image/get_image_dim.cl.bc.d -target nvptx--nvidiacl -I`dirname ./generic/lib/image/get_image_dim.cl` -I./generic/include -fno-builtin -D__CLC_INTERNAL -emit-llvm -c -o nvptx--nvidiacl/lib/image/get_image_dim.cl.bc ./generic/lib/image/get_image_dim.cl
CXX utils/prepare-builtins.o
/usr/lib64/llvm/5/bin/clang++ -MMD -MF utils/prepare-builtins.o.d -I/usr/lib64/llvm/5/include -std=c++11 -DLLVM_BUILD_GLOBAL_ISEL -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fno-exceptions -fno-rtti -c -o utils/prepare-builtins.o ./utils/prepare-builtins.cpp
./utils/prepare-builtins.cpp:1:10: fatal error: 'llvm/Bitcode/ReaderWriter.h' file not found
#include "llvm/Bitcode/ReaderWriter.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
The ebuild for dev-libs/libclc-0.2.0_pre20160921 lists ">=sys-devel/clang-3.9" and ">=sys-devel/llvm-3.9". I have version 5.0.0 of each.
EIX output for clang and clang-common:
Code: | [I] sys-devel/clang
Available versions:
(0) ~*3.4.2-r100(0/3.4) ~*3.5.2-r100(0/3.5) ~*3.6.2-r100(0/3.6) 3.7.1-r100(0/3.7) (~)3.8.1-r100(0/3.8) 3.9.1-r100(0/3.9.1)
(4) (~)4.0.1
(5) (~)5.0.0 **5.0.9999
(6) **9999
{debug default-compiler-rt default-libcxx +doc multitarget python +static-analyzer test xml z3 ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" ELIBC="musl" KERNEL="FreeBSD" LLVM_TARGETS="AArch64 AMDGPU ARM AVR BPF Hexagon Lanai MSP430 Mips NVPTX Nios2 PowerPC RISCV Sparc SystemZ WebAssembly X86 XCore" PYTHON_TARGETS="python2_7"}
Installed versions: 5.0.0(5)(10:26:39 AM 12/03/2017)(doc static-analyzer xml -debug -default-compiler-rt -default-libcxx -test -z3 ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32" KERNEL="-FreeBSD" LLVM_TARGETS="NVPTX X86 -AArch64 -AMDGPU -ARM -BPF -Hexagon -Lanai -MSP430 -Mips -PowerPC -Sparc -SystemZ -XCore" PYTHON_TARGETS="python2_7")
Homepage: https://llvm.org/
Description: C language family frontend for LLVM
[I] sys-devel/clang-runtime
Available versions:
(0) (~)3.9.0 3.9.1
(4.0.1) (~)4.0.1
(5.0.0) (~)5.0.0
(5.0.1) **5.0.9999
(6.0.0) **9999
{+compiler-rt libcxx openmp +sanitize ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
Installed versions: 5.0.0(5.0.0)(09:54:03 PM 11/30/2017)(compiler-rt openmp sanitize -libcxx ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
Homepage: https://clang.llvm.org/
Description: Meta-ebuild for clang runtime libraries |
The same for llvm:
Code: | [I] sys-devel/llvm
Available versions:
(0) ~*3.4.2-r100(0/3.4) ~*3.5.2-r100(0/3.5) ~*3.6.2-r100(0/3.6) 3.7.1-r3(0/3.7.1) (~)3.8.1-r2(0/3.8.0) 3.9.1-r1(0/3.9.1)
(4) (~)4.0.1
(5) (~)5.0.0 **5.0.9999
(6) **9999
{clang debug default-compiler-rt default-libcxx (+)doc gold libedit +libffi lldb multitarget ncurses ocaml python +sanitize +static-analyzer test xml ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" ELIBC="musl" KERNEL="Darwin FreeBSD" LLVM_TARGETS="AArch64 AMDGPU ARM AVR BPF Hexagon Lanai MSP430 Mips NVPTX Nios2 PowerPC RISCV Sparc SystemZ WebAssembly X86 XCore" PYTHON_TARGETS="python2_7" VIDEO_CARDS="radeon"}
Installed versions: 5.0.0(5)(10:51:46 PM 12/02/2017)(doc libffi ncurses -debug -gold -libedit -test ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32" KERNEL="-Darwin" LLVM_TARGETS="NVPTX X86 -AArch64 -AMDGPU -ARM -BPF -Hexagon -Lanai -MSP430 -Mips -PowerPC -Sparc -SystemZ -XCore")
Homepage: https://llvm.org/
Description: Low Level Virtual Machine
[I] sys-devel/llvm-common
Available versions: (~)4.0.1 (~)5.0.0 **5.0.9999 **9999
Installed versions: 5.0.0(08:21:21 PM 11/30/2017)
Homepage: https://llvm.org/
Description: Common files shared between multiple slots of LLVM |
Emerge --info output:
Code: | Portage 2.3.13 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-6.4.0, glibc-2.25-r9, 4.12.12-gentoo x86_64)
=================================================================
System uname: Linux-4.12.12-gentoo-x86_64-Intel-R-_Core-TM-_i5-6500_CPU_@_3.20GHz-with-gentoo-2.4.1
KiB Mem: 16371756 total, 4868724 free
KiB Swap: 2246652 total, 2246652 free
Timestamp of repository gentoo: Tue, 28 Nov 2017 00:00:01 +0000
Head commit of repository gentoo: 35e46711029df79e58aeb4a8dafc264ebb0e0385
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash: 4.3_p48-r1::gentoo
dev-lang/perl: 5.24.3::gentoo
dev-lang/python: 2.7.14::gentoo, 3.4.5::gentoo
dev-util/cmake: 3.8.2::gentoo
dev-util/pkgconfig: 0.29.2::gentoo
sys-apps/baselayout: 2.4.1-r2::gentoo
sys-apps/openrc: 0.34.10::gentoo
sys-apps/sandbox: 2.10-r4::gentoo
sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo
sys-devel/automake: 1.15.1-r1::gentoo
sys-devel/binutils: 2.29.1-r1::gentoo
sys-devel/gcc: 6.4.0::gentoo
sys-devel/gcc-config: 1.8-r1::gentoo
sys-devel/libtool: 2.4.6-r3::gentoo
sys-devel/make: 4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc: 2.25-r9::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-extra-opts:
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -finline-functions -fsched-pressure -ftree-loop-distribution -flto=4 -ffat-lto-objects -fuse-linker-plugin -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -finline-functions -fsched-pressure -ftree-loop-distribution -flto=4 -ffat-lto-objects -fuse-linker-plugin -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy cgroup config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync multilib-strict news preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O2 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--strip-debug -O2 -march=native -pipe -fomit-frame-pointer -finline-functions -fsched-pressure -ftree-loop-distribution -flto=4 -ffat-lto-objects -fuse-linker-plugin -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="3dnow 3dnowext X \ a52 aac aalib acl acpi activities alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg jpeg2k kde kipi kwallet lcms ldap libnotify lzma mad mng modules mp3 mp4 mpeg mplayer multilib mysql ncurses nptl offensive ogg opengl openmp openssl pam pango pcre pdf phonon plasma png policykit ppds python qml qt3support qt4 qt5 readline sdl seccomp session socks5 spell ssl startup-notification svg symlink tcpd tiff truetype udev udisks unicode upower usb videos vorbis widgets wmf wxwidgets x264 xattr xcb xcomposite xine xinerama xml xscreensaver xv xvid zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa" 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"
Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
|
|
|
Back to top |
|
|
ct85711 Veteran
Joined: 27 Sep 2005 Posts: 1791
|
Posted: Mon Dec 04, 2017 5:23 am Post subject: |
|
|
Looking at the bug listings, there is 2 bug reports about this specific issue, one requesting a version bump due to incompatibility with llvm-4 Bug 600104 - >=dev-libs/libclc-0.2.0_pre20160921 keywording request
On my system both of the 2017* versions compile fine for my system, so you should be able to work around this issue. Sadly, looking at the bug report asking for a version bump is looking like being ignored; so I am not holding my breath of it being addressed anytime soon. |
|
Back to top |
|
|
|
|
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
|
|