Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 840773 - media-libs/shaderc-2022.1-r1 fails against >vulkan-1.2
Summary: media-libs/shaderc-2022.1-r1 fails against >vulkan-1.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Nick Sarnie
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-25 12:33 UTC by N. Andrew Walsh
Modified: 2022-08-15 11:41 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,25.41 KB, text/x-log)
2022-04-25 12:33 UTC, N. Andrew Walsh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description N. Andrew Walsh 2022-04-25 12:33:29 UTC
Created attachment 774503 [details]
build.log

build.log is attached. 

I got this error on compiling:

/var/tmp/portage/media-libs/shaderc-2022.1-r1/work/shaderc-2022.1/libshaderc_util/src/spirv_tools_wrapper.cc:41:18: error: ‘SPV_ENV_VULKAN_1_3’ was not declared in this scope; did you mean ‘SPV_ENV_VULKAN_1_2’?

and later: 

/var/tmp/portage/media-libs/shaderc-2022.1-r1/work/shaderc-2022.1/libshaderc_util/src/compiler.cc:724:42: error: ‘EShTargetVulkan_1_3’ is not a member of ‘glslang’; did you mean ‘EShTargetVulkan_1_2’?
  724 |         result.client_version = glslang::EShTargetVulkan_1_3;
      |                                          ^~~~~~~~~~~~~~~~~~~
      |                                          EShTargetVulkan_1_2
/var/tmp/portage/media-libs/shaderc-2022.1-r1/work/shaderc-2022.1/libshaderc_util/src/compiler.cc:725:51: error: ‘EShTargetSpv_1_6’ is not a member of ‘glslang’; did you mean ‘EShTargetSpv_1_5’?
  725 |         result.target_language_version = glslang::EShTargetSpv_1_6;
      |                                                   ^~~~~~~~~~~~~~~~
      |                                                   EShTargetSpv_1_5
/var/tmp/portage/media-libs/shaderc-2022.1-r1/work/shaderc-2022.1/libshaderc_util/src/compiler.cc:773:51: error: ‘EShTargetSpv_1_6’ is not a member of ‘glslang’; did you mean ‘EShTargetSpv_1_5’?
  773 |         result.target_language_version = glslang::EShTargetSpv_1_6;
      |                                                   ^~~~~~~~~~~~~~~~
      |                                                   EShTargetSpv_1_5
ninja: build stopped: subcommand failed.

I'm assuming this means that this version of shaderc doesn't work against vulkan-{headers|util} above 1.2, but maybe I'm wrong?

Thanks for the help.
Comment 1 N. Andrew Walsh 2022-04-25 12:34:20 UTC
emerge --info:

 # emerge --info
Portage 3.0.30 (python 3.10.4-final-0, default/linux/amd64/17.1, gcc-11.3.0, glibc-2.35-r4, 5.17.4-gentoo x86_64)
=================================================================
System uname: Linux-5.17.4-gentoo-x86_64-AMD_Ryzen_7_3800X_8-Core_Processor-with-glibc2.35
KiB Mem:    32781680 total,  20124568 free
KiB Swap:    3145716 total,   3144684 free
Timestamp of repository gentoo: Mon, 25 Apr 2022 06:33:24 +0000
Head commit of repository gentoo: c81c2dc33199bbb43b78723b3049bff33b38ddd2

Head commit of repository danrepo: 3abe4d13b614fdf7446baa4cd3afc0089641e748

sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
ccache version 4.5.1 [disabled]
app-misc/pax-utils:        1.3.4::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.1-r3::gentoo
dev-lang/python:           2.7.18_p13::gentoo, 3.8.13::gentoo, 3.9.12::gentoo, 3.10.4::gentoo, 3.11.0_alpha2::gentoo
dev-lang/rust-bin:         1.60.0::gentoo
dev-util/ccache:           4.5.1::gentoo
dev-util/cmake:            3.23.1::gentoo
dev-util/meson:            0.61.4-r2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.69-r5::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.15.1-r1::gentoo, 1.16.5::gentoo
sys-devel/binutils:        2.36.1-r2::gentoo, 2.37_p1-r2::gentoo, 2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           12.0.1::gentoo, 13.0.1::gentoo, 14.0.1-r1::gentoo
sys-devel/gcc:             10.3.0::gentoo, 11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/llvm:            12.0.1::gentoo, 13.0.1::gentoo, 14.0.1::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.17-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r4::gentoo
sys-libs/libselinux:       3.3::gentoo
Repositories:

gentoo
    location: /var/portage/repos
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

brave-overlay
    location: /var/portage/repos/brave-overlay
    masters: gentoo
    priority: 50

farmboy0
    location: /var/portage/repos/farmboy0
    masters: gentoo
    priority: 50

hossie
    location: /var/portage/repos/hossie
    masters: gentoo
    priority: 50

jorgicio
    location: /var/portage/repos/jorgicio
    masters: gentoo
    priority: 50

pentoo
    location: /var/portage/repos/pentoo
    masters: gentoo
    priority: 50

ppfeufer-gentoo-overlay
    location: /var/portage/repos/ppfeufer-gentoo-overlay
    masters: gentoo
    priority: 50

qt
    location: /var/portage/repos/qt
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/portage/repos/steam-overlay
    masters: gentoo
    priority: 50

stefantalpalaru
    location: /var/portage/repos/stefantalpalaru
    masters: gentoo
    priority: 50

danrepo
    location: /var/db/repos/danrepo
    sync-type: git
    sync-uri: https://github.com/ferion11/danrepo.git
    masters: gentoo
    priority: 9999

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/  https://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/  https://mirror.leaseweb.com/gentoo/  http://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.web4u.cz/ ftp://gentoo.mirror.web4u.cz/ ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://mirror.netcologne.de/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://gentoo.mneisen.org/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://mirror.netcologne.de/gentoo/ ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.ipv6.uni-muenster.de/pub/linux/distributions/gentoo ftp://gentoo.inf.elte.hu/ http://gentoo.inf.elte.hu/ http://ftp.heanet.ie/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US en_US.utf8 de de_DE de_DE.utf8"
MAKEOPTS="-j17"
PKGDIR="/var/cache/binpkgs"
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"
SHELL="/bin/bash"
USE="X Xaw3d a52 aac acl acpi aim alsa amd64 apm audiofile bash-completion bzip2 cairo cddb cdinstall cdparanoia cdr cli cracklib crypt css cups curl curlwrappers cxx dbus directfb dri dvd dvdr encode fbcon ffmpeg fftw firefox flac fortran ftp gdbm geoip gif gimp glut graphite gstreamer gtk hddtemp iconv icq ieee1394 imagemagick imap imlib ipv6 jack java javascript joystick jpeg lame latex ldap libglvnd libsamplerate libtirpc libwww lm_sensors mad matroska minimal mmx motif mp3 mpeg mplayer multilib ncurses nls nptl nsplugin offensive ogg openal opengl openmp openssl oscar pam pcre pdf perl png policykit posix python qt5 quicktime raw readline real rss scanner seccomp semantic-desktop sndfile sockets speex spell split-usr ssl suid svg symlink syslog tcl tetex theora threads tidy tiff tk translucency truetype udev unicode usb vaapi vdpau videos vorbis vulkan win32codecs wmf wxwindows x264 xattr xcomposite xetex xine xml xpm xscreensaver xulrunner xv xvid xvmc zlib" ABI_X86="64 32" ADA_TARGET="gnat_2020" ALSA_CARDS="hda-intel usb-audio" 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="mmx mmxext sse sse2" CURL_SSL="openssl" 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" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-US de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU X86" 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_9" PYTHON_TARGETS="python3_9 python3_10" RUBY_TARGETS="ruby31 ruby30" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" 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, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 2 Nick Sarnie gentoo-dev 2022-04-26 00:40:09 UTC
What version of spirv-tools (and spirv-headers) do you have installed?

If it is not 1.3.211, can you try emerging those versions and seeing if it fixes it?

Thanks,
Sarnex
Comment 3 N. Andrew Walsh 2022-04-26 06:30:42 UTC
 # emerge -pv spirv-tools spirv-headers

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-util/spirv-headers-1.5.1_p20200317::hossie  0 KiB
[ebuild   R    ] dev-util/spirv-tools-2020.2::hossie  ABI_X86="32 (64) (-x32)" 0 KiB

Total: 2 packages (2 reinstalls), Size of downloads: 0 KiB

 * IMPORTANT: 24 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

domo-kun ~ # emerge -pv spirv-tools spirv-headers

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     UD ] dev-util/spirv-headers-1.3.211::gentoo [1.5.1_p20200317::hossie] 411 KiB
[ebuild     UD ] dev-util/spirv-tools-1.3.211-r1::gentoo [2020.2::hossie] ABI_X86="32 (64) (-x32)" 2,926 KiB

Total: 2 packages (2 downgrades), Size of downloads: 3,336 KiB

WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:

dev-util/spirv-headers:0

  (dev-util/spirv-headers-1.5.1_p20200317:0/0::hossie, ebuild scheduled for merge) USE="" ABI_X86="(64)" conflicts with
    ~dev-util/spirv-headers-1.3.211 required by (dev-util/spirv-tools-1.3.211-r1:0/0::gentoo, ebuild scheduled for merge) USE="" ABI_X86="32 (64) (-x32)"
    ^                       ^^^^^^^

The second is what I get when I mask the hossie overlay.
Comment 4 Nick Sarnie gentoo-dev 2022-04-26 22:27:39 UTC
I expect the problem is related to the overlay. Can you make sure all packages in the vulkan/spirv/glslang/shaderc stack are in-tree ::gentoo version?

The merge conflict is probably because your world set has the overlay version.
Comment 5 N. Andrew Walsh 2022-04-27 07:57:24 UTC
# emerge -pv vulkan-headers spirv-tools spirv-headers shaderc vulkan-loader

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-util/vulkan-headers-1.3.211::gentoo  0 KiB
[ebuild     UD ] dev-util/spirv-headers-1.3.211::gentoo [1.5.1_p20200317::hossie] 411 KiB
[ebuild   R    ] media-libs/vulkan-loader-1.3.211::gentoo  USE="X -layers -wayland" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild     UD ] dev-util/spirv-tools-1.3.211-r1::gentoo [2020.2::hossie] ABI_X86="32 (64) (-x32)" 2,926 KiB
[ebuild     U  ] media-libs/shaderc-2022.1-r1::gentoo [2022.1::gentoo] USE="-doc -test" ABI_X86="32 (64) (-x32)" 0 KiB

Total: 5 packages (1 upgrade, 2 downgrades, 2 reinstalls), Size of downloads: 3,336 KiB

WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:

dev-util/spirv-headers:0

  (dev-util/spirv-headers-1.5.1_p20200317:0/0::hossie, ebuild scheduled for merge) USE="" ABI_X86="(64)" conflicts with
    ~dev-util/spirv-headers-1.3.211 required by (dev-util/spirv-tools-1.3.211-r1:0/0::gentoo, ebuild scheduled for merge) USE="" ABI_X86="32 (64) (-x32)"
    ^                       ^^^^^^^
--------------------
only the spirv packages are from the hossie overlay. Now that they're blocked, should I try emerging, and see if it works?
Comment 6 N. Andrew Walsh 2022-04-27 08:08:52 UTC
update: nope, that didn't help :(
Comment 7 Nick Sarnie gentoo-dev 2022-04-27 20:50:29 UTC
So right now it's failing with all in tree versions of all vulkan stack packages?

If so, can you send your /usr/include/spirv-tools/libspirv.h and /usr/include/glslang/Public/ShaderLang.h
Comment 8 Andreas Sturmlechner gentoo-dev 2022-07-19 12:00:22 UTC
I've checked versions since shaderc failed to build again, and there were:
> dev-util/glslang-11.6.0
> dev-util/spirv-tools-1.3.211-r1

Don't ask me why they were not scheduled for upgrade, but after manually throwing them to emerge, the following build compiled fine:

> [ebuild     U ] dev-util/spirv-headers-1.3.216 [1.3.211]
> [ebuild     UD] dev-util/glslang-1.3.216 [11.6.0] ABI_X86="(64) -32 (-x32)" 
> [ebuild     U ] dev-util/spirv-tools-1.3.216 [1.3.211-r1] ABI_X86="(64) -32 (-x32)" 
> [ebuild  N    ] media-libs/shaderc-2022.1-r1  USE="-doc -test" ABI_X86="(64) -32 (-x32)"
Comment 9 Nick Sarnie gentoo-dev 2022-07-19 13:40:30 UTC
I'll add a revbump to depend on 216 I guess
Comment 10 Larry the Git Cow gentoo-dev 2022-07-19 13:49:09 UTC
The bug has been closed via the following commit(s):

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

commit 095f33774f3b399659569b99d89d569d63effc7c
Author:     Nick Sarnie <sarnex@gentoo.org>
AuthorDate: 2022-07-19 13:48:25 +0000
Commit:     Nick Sarnie <sarnex@gentoo.org>
CommitDate: 2022-07-19 13:48:25 +0000

    media-libs/shaderc: Bump deps
    
    Closes: https://bugs.gentoo.org/840773
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Nick Sarnie <sarnex@gentoo.org>

 media-libs/shaderc/shaderc-2022.1-r2.ebuild | 92 +++++++++++++++++++++++++++++
 1 file changed, 92 insertions(+)