Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 689088 - dev-libs/beignet-1.3.2-r3 - CMake Error: The following variables are used in this project, but they are set to NOTFOUND [...]: CLANG_LIB
Summary: dev-libs/beignet-1.3.2-r3 - CMake Error: The following variables are used in ...
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-01 16:45 UTC by Conrad Kostecki
Modified: 2019-07-03 11:24 UTC (History)
0 users

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


Attachments
build.log (build.log,10.43 KB, text/plain)
2019-07-01 16:46 UTC, Conrad Kostecki
Details
CMakeError.log (CMakeError.log,2.25 KB, text/plain)
2019-07-01 16:47 UTC, Conrad Kostecki
Details
CMakeOutput.log (CMakeOutput.log,74.27 KB, text/plain)
2019-07-01 16:47 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-01 16:45:52 UTC
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Checking for module 'xext'
--   Found xext, version 1.3.4
-- Looking for Xext - found at /usr
-- Checking for module 'xfixes'
--   Found xfixes, version 5.0.3
-- Looking for Xfixes - found at /usr
-- Looking for OpenGL - found at /usr 19.1.1
-- Looking for EGL - found at /usr 19.1.1
-- Looking for OCL ICD header file - found
-- Found PythonInterp: /var/tmp/portage/dev-libs/beignet-1.3.2-r3/temp/python2.7/bin/python (found version "2.7.16")
-- Building with OpenCL 1.2.
CMake Warning (dev) at backend/CMakeLists.txt:13 (set):
  implicitly converting 'bool' to 'STRING' type.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at backend/CMakeLists.txt:14 (set):
  implicitly converting 'bool' to 'STRING' type.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Building mode: Release
-- use /usr/lib/libtinfo.so as terminal control library
-- <<< Gentoo configuration >>>
Build type      Release
Install path    /usr/lib/OpenCL/vendors/beignet
Compiler flags:
C               -march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -fPIC
C++             -march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -fvisibility-inlines-hidden -fPIC -std=c++0x -Wno-invalid-offsetof -fno-rtti
Linker flags:
Executable      -Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,-z,now
Module          -Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,-z,now
Shared          -Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,-z,now -Wl,-Bsymbolic -Wl,--no-undefined -L/usr/lib/llvm/7/lib

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CLANG_LIB
    linked by target "gbe" in directory /var/tmp/portage/dev-libs/beignet-1.3.2-r3/work/Beignet-1.3.2-Source/backend/src
    linked by target "gbe" in directory /var/tmp/portage/dev-libs/beignet-1.3.2-r3/work/Beignet-1.3.2-Source/backend/src
    linked by target "gbe" in directory /var/tmp/portage/dev-libs/beignet-1.3.2-r3/work/Beignet-1.3.2-Source/backend/src

-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/dev-libs/beignet-1.3.2-r3/work/Beignet-1.3.2-Source-abi_x86_32.x86/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/dev-libs/beignet-1.3.2-r3/work/Beignet-1.3.2-Source-abi_x86_32.x86/CMakeFiles/CMakeError.log".
 * ERROR: dev-libs/beignet-1.3.2-r3::gentoo failed (configure phase):
 *   cmake failed
 *
 * Call stack:
 *     ebuild.sh, line  125:  Called src_configure
 *   environment, line 3647:  Called cmake-multilib_src_configure
 *   environment, line  968:  Called multilib-minimal_src_configure
 *   environment, line 2182:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *   environment, line 2409:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 2112:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 2110:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *   environment, line  637:  Called multilib-minimal_abi_src_configure
 *   environment, line 2176:  Called multilib_src_configure
 *   environment, line 2635:  Called cmake-utils_src_configure
 *   environment, line 1145:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 *
 * If you need support, post the output of `emerge --info '=dev-libs/beignet-1.3.2-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/beignet-1.3.2-r3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/beignet-1.3.2-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/beignet-1.3.2-r3/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/beignet-1.3.2-r3/work/Beignet-1.3.2-Source-abi_x86_32.x86'
 * S: '/var/tmp/portage/dev-libs/beignet-1.3.2-r3/work/Beignet-1.3.2-Source'
Comment 1 Conrad Kostecki gentoo-dev 2019-07-01 16:46:56 UTC
Created attachment 581618 [details]
build.log
Comment 2 Conrad Kostecki gentoo-dev 2019-07-01 16:47:08 UTC
Created attachment 581620 [details]
CMakeError.log
Comment 3 Conrad Kostecki gentoo-dev 2019-07-01 16:47:19 UTC
Created attachment 581622 [details]
CMakeOutput.log
Comment 4 Conrad Kostecki gentoo-dev 2019-07-01 16:47:37 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:    32645112 total,  11491092 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-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: --exclude-from=/etc/portage/rsync_excludes
    sync-rsync-verify-metamanifest: yes

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 /etc/vmware-installer"
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 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 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" CPU_FLAGS_X86="aes avx avx2 mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" 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 5 Marek Szuba archtester gentoo-dev 2019-07-02 08:06:35 UTC
This is a known problem but unfortunately one that only affects certain users and I have repeatedly found impossible to reproduce. The best I can suggest at this point is to try and debug the CMake module which tries to locate Clang, if you find anything interesting please report it to the original bug (feel free to reopen it).

By the way, on your CPU I would very much recommend using dev-libs/intel-neo instead of Beignet. Annoyingly, virtual/opencl has not been updated to include NEO yet so you might have to add dev-libs/beignet to package.provided to prevent it from being pulled in by the dependency tree.

*** This bug has been marked as a duplicate of bug 664342 ***
Comment 6 Conrad Kostecki gentoo-dev 2019-07-02 08:25:35 UTC
(In reply to Marek Szuba from comment #5)
> By the way, on your CPU I would very much recommend using dev-libs/intel-neo
> instead of Beignet. Annoyingly, virtual/opencl has not been updated to
> include NEO yet so you might have to add dev-libs/beignet to
> package.provided to prevent it from being pulled in by the dependency tree.

Yeah, but what I can see, due ABI_X86="32 64" here, it will always pull beignet instead of intel-neo. But If I disable ABI_x86="32", wine won't run any 32-bit applications and thus I can't compile with opencl?
Comment 7 Marek Szuba archtester gentoo-dev 2019-07-02 09:59:46 UTC
Correct. Or to be precise you could still compile Wine with 32-bit and OpenCL support by using dev-libs/ocl-icd as the OpenCL provider but 32-bit Windows applications will not see any NEO-powered GPUs.
Comment 8 Conrad Kostecki gentoo-dev 2019-07-02 11:07:19 UTC
(In reply to Marek Szuba from comment #7)
> Correct. Or to be precise you could still compile Wine with 32-bit and
> OpenCL support by using dev-libs/ocl-icd as the OpenCL provider but 32-bit
> Windows applications will not see any NEO-powered GPUs.

This would make is possible not to install dev-libs/beignet, but use wine with ABI_X86="32 64"?

I don't need opencl for 32-bit in wine, only 64-bit matters to me, but I have still some 32-bit apps, so I need support for that.

But when I do look at virtual/opencl (even the -r7 from bgo), I don't see, how I could drop dev-libs/beignet in this constellation?

The dep cycle would still force dev-libs/beignet? Or do you mean, add dev-libs/beignet to package.provided, but 32-bit wine would still compile with opencl, if i install among intel-neo also ocl-icd?
Comment 9 Conrad Kostecki gentoo-dev 2019-07-03 06:47:50 UTC
Found the cause.
 
dev-libs/beignet has missing deps.
It must depend on sys-devel/clang[static-analyzer].

After I recompiled sys-devel/clang with USE="static-analyzer", I was able to compile dev-libs/beignet.
Comment 10 Marek Szuba archtester gentoo-dev 2019-07-03 11:00:01 UTC
THANK YOU! I have just, at long last, managed to reproduce the problem. Will push a fix soon.
Comment 11 Larry the Git Cow gentoo-dev 2019-07-03 11:24:56 UTC
The bug has been closed via the following commit(s):

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

commit e0a1cd1844cfe63968e68442a42d460967ac4426
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2019-07-03 11:21:07 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2019-07-03 11:21:07 +0000

    dev-libs/beignet: depend on sys-devel/clang[static-analyzer]
    
    Turns out that the absence of static-analyzer among sys-devel/clang USE
    flags causes a configure-time error. The flag in question is enabled by
    default so only a subset of users has been affected.
    
    Many thanks to Conrad Kostecki for having finally identified the source
    of this problem!
    
    Closes: https://bugs.gentoo.org/664342
    Closes: https://bugs.gentoo.org/689088
    Signed-off-by: Marek Szuba <marecki@gentoo.org>
    Package-Manager: Portage-2.3.66, Repoman-2.3.11

 dev-libs/beignet/beignet-1.3.2-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)