Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 906231 - media-libs/mesa-23.1.0: ERROR: Dependency "libclc" not found, tried pkgconfig and cmake
Summary: media-libs/mesa-23.1.0: ERROR: Dependency "libclc" not found, tried pkgconfig...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-13 00:45 UTC by Sam James
Modified: 2023-05-27 17:52 UTC (History)
9 users (show)

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


Attachments
build.log (build.log,20.64 KB, text/x-log)
2023-05-13 00:45 UTC, Sam James
Details
meson-log.txt (meson-log.txt,19.38 KB, text/plain)
2023-05-13 00:46 UTC, Sam James
Details
build.log (build.log,45.33 KB, text/x-log)
2023-05-13 09:32 UTC, Christoph Loehr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-13 00:45:58 UTC
Created attachment 861598 [details]
build.log

Run-time dependency libclc found: NO (tried pkgconfig and cmake)

../mesa-23.1.0/meson.build:768:12: ERROR: Dependency "libclc" not found, tried pkgconfig and cmake


----

Portage 3.0.47 (python 3.11.3-final-0, default/linux/amd64/17.1/hardened, gcc-13, glibc-2.37-r3, 6.1.27-adry x86_64)
=================================================================
System uname: Linux-6.1.27-adry-x86_64-11th_Gen_Intel-R-_Core-TM-_i7-11800H_@_2.30GHz-with-glibc2.37
KiB Mem:    32595964 total,  16365012 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Fri, 12 May 2023 22:31:58 +0000
Head commit of repository gentoo: e12ca9e564bddaf171819d6cfd44280b5f4735e0

Timestamp of repository emacs: Wed, 10 May 2023 18:18:27 +0000
Head commit of repository emacs: 3b12c39580dfadf767700b44e211fb61cd14a171

Timestamp of repository kde: Thu, 11 May 2023 16:47:01 +0000
Head commit of repository kde: 3d9439ff3c0a875e12f4f2e9134f662e7d7e86ac

Timestamp of repository qt: Wed, 10 May 2023 18:18:33 +0000
Head commit of repository qt: f749e98531ee910b3e07ce380a29c7a61380a27f

sh bash 5.2_p15-r2
ld GNU ld (Gentoo 2.40 p5) 2.40.0
ccache version 4.8 [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.1-r1::gentoo
dev-lang/python:           2.7.18_p16-r1::gentoo, 3.9.16_p3::gentoo, 3.10.11::gentoo, 3.11.3::gentoo
dev-lang/rust-bin:         1.69.0::gentoo
dev-util/ccache:           4.8::gentoo
dev-util/cmake:            3.26.3::gentoo
dev-util/meson:            1.1.0::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/openrc:           0.47.1::gentoo
sys-apps/sandbox:          2.30-r1::gentoo
sys-devel/autoconf:        2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r1::gentoo, 16.0.3::gentoo
sys-devel/gcc:             11.3.1_p20230511::gentoo, 12.3.0::gentoo, 13.1.1_p20230506::gentoo
sys-devel/gcc-config:      2.10::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo, 16.0.3::gentoo
sys-devel/llvm:            15.0.7::gentoo, 16.0.3::gentoo
sys-devel/make:            4.4.1::gentoo
sys-kernel/linux-headers:  6.3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False
    sync-git-clone-extra-opts: -b stable -c gc.reflogExpire=0 -c gc.reflogExpireUnreachable=0 -c gc.rerereresolved=0 -c gc.rerereunresolved=0 -c gc.pruneExpire=now
    sync-git-verify-commit-signature: yes

emacs
    location: /var/db/repos/emacs
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/emacs.git
    masters: gentoo
    volatile: False

kde
    location: /var/db/repos/kde
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/kde.git
    masters: gentoo
    volatile: False

local
    location: /var/db/repos/local
    masters: gentoo
    volatile: False

qt
    location: /var/db/repos/qt
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/qt.git
    masters: gentoo
    volatile: False

sam_c
    location: /home/sjames/git/overlay
    masters: gentoo
    volatile: True

Installed sets: @sam-emacs, @sam-fonts, @sam-fortune
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -ggdb3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /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 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -ggdb3"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going=y --complete-graph --deep --changed-deps-report=y --usepkg=y --usepkg-exclude sys-fs/zfs --usepkg-exclude sys-fs/zfs-kmod --usepkg-exclude nvidia-drivers --usepkg-exclude gentoo-kernel --implicit-system-deps=n"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg compressdebug config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles installsources ipc-sandbox mount-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/distfiles.gentoo.org/ http://mirrors.soeasyto.com/distfiles.gentoo.org/ https://mirror.bytemark.co.uk/gentoo/"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="en en_GB en_US"
MAKEOPTS="-j16"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="xz"
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/portage"
RUSTFLAGS="-C target-cpu=native"
SHELL="/bin/bash"
USE="PIC X a52 aac acl acpi activities aes alsa amd64 avx avx2 avx512bw avx512cd avx512dq avx512f avx512vbmi avx512vl bash-completion bluetooth branding bzip2 cairo caps cdda cdr cet clang cli crypt dbus declarative dist-kernel dri dts dvd dvdr elogind emacs encode exif f16c flac fma3 fortran gdbm gif gles2 gmp gpm graphite gtk gui hardened hunspell iconv icu ipv6 iwd jit jpeg kde kwallet lcms libglvnd libnotify libtirpc lto mad mmx mmxext mng mp3 mp4 mpeg multilib ncurses networkmanager nptl ogg opengl openmp pam pango pclmul pcre pdf pgo pic pie pipewire plasma png policykit popcnt ppds pulseaudio qml qt5 rdrand readline screencast sdl seccomp semantic-desktop sha smartcard sound spell split-usr sse sse2 sse3 sse4_1 sse4_2 ssl ssp ssse3 startup-notification svg syslog system-av1 system-binutils system-boost system-bootstrap system-cairo system-clang system-digest system-ffmpeg system-harfbuzz system-heimdal system-icu system-jpeg system-jsoncpp system-leveldb system-libevent system-libs system-libvpx system-libyaml system-lz4 system-mitkrb5 system-sqlite system-ssl system-tbb system-uulib system-webp system-zlib test-rust tiff truetype udev udisks unicode upower usb vaapi verify-sig vorbis vulkan wayland widgets x264 xattr xcb xft xml xtpax xv xvid zlib zsh-completion zstd" ABI_X86="32 64" ADA_TARGET="gnat_2021" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 avx512f avx512dq avx512cd avx512bw avx512vl avx512vbmi f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-GB en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11 python3_10 python3_8 python3_9" RUBY_TARGETS="ruby30 ruby31 ruby32" USERLAND="GNU" VIDEO_CARDS="intel i965 iris nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-13 00:46:24 UTC
Created attachment 861599 [details]
meson-log.txt
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-13 03:11:33 UTC
I think the issue here is USE="vulkan llvm video_cards_intel" which in the ebuild results in -Dintel-clc=enabled, but we're not depending on libclc in that case.
Comment 3 Christoph Loehr 2023-05-13 09:32:00 UTC
Created attachment 861635 [details]
build.log

(In reply to Sam James from comment #2)
> I think the issue here is USE="vulkan llvm video_cards_intel" which in the
> ebuild results in -Dintel-clc=enabled, but we're not depending on libclc in
> that case.

Making libclc a dependency seems not to solve the problem. 

I had the same issue and installed dev-libs/libclc-16.0.3 to solve it.

Configure works, but now compile bails out with this message:

ERROR: libclc shader missing. Consider installing the libclc package

See snippet from build.log attached

CHL
Comment 4 Petr Šabata 2023-05-13 11:36:57 UTC
(In reply to Christoph Loehr from comment #3)
> Created attachment 861635 [details]
> build.log
> 
> (In reply to Sam James from comment #2)
> > I think the issue here is USE="vulkan llvm video_cards_intel" which in the
> > ebuild results in -Dintel-clc=enabled, but we're not depending on libclc in
> > that case.
> 
> Making libclc a dependency seems not to solve the problem. 
> 
> I had the same issue and installed dev-libs/libclc-16.0.3 to solve it.
> 
> Configure works, but now compile bails out with this message:
> 
> ERROR: libclc shader missing. Consider installing the libclc package
> 
> See snippet from build.log attached
> 
> CHL

Make sure you build libclc with USE=spirv.
Comment 5 Christoph Loehr 2023-05-13 14:24:38 UTC
(In reply to Petr Šabata from comment #4)

> Make sure you build libclc with USE=spirv.

Thanks, that worked.

CHL
Comment 6 Larry the Git Cow gentoo-dev 2023-05-13 17:03:13 UTC
The bug has been closed via the following commit(s):

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

commit f123e9823effa97371014375576f27efdede3928
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2023-05-13 17:00:56 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2023-05-13 17:03:09 +0000

    media-libs/mesa: Depend on libclc for Intel Vulkan
    
    And limit it to amd64-only, since upstream only enables ray tracing for
    amd64.
    
    Closes: https://bugs.gentoo.org/906231
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 media-libs/mesa/mesa-23.1.0.ebuild | 9 ++++++++-
 media-libs/mesa/mesa-9999.ebuild   | 9 ++++++++-
 2 files changed, 16 insertions(+), 2 deletions(-)
Comment 7 Dmitry Derevyanko 2023-05-27 17:45:36 UTC
Probably "llvm" should also be checked. Worked without llvm before and now depends on libclc and clang.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-27 17:52:37 UTC
(In reply to Dmitry Derevyanko from comment #7)
> Probably "llvm" should also be checked. Worked without llvm before and now
> depends on libclc and clang.

I don't understand what you mean here, but please file a new bug if you have an issue, rather than re-using a different bug.