Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 654114 - media-libs/vulkan-loader-1.1.70.0-r1 shader_validation.cpp:shader_validation.cpp:1196:15: error: ‘CapabilitySampleMaskOverrideCoverageNV’ is not a member of ‘spv’
Summary: media-libs/vulkan-loader-1.1.70.0-r1 shader_validation.cpp:shader_validation....
Status: RESOLVED INVALID
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: 2018-04-26 05:57 UTC by Peter Asplund
Modified: 2018-04-28 20:09 UTC (History)
0 users

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


Attachments
build.log (build.log,180.87 KB, text/plain)
2018-04-26 05:57 UTC, Peter Asplund
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Asplund 2018-04-26 05:57:58 UTC
Created attachment 528550 [details]
build.log

I'm unable to build vulkan-loader since the layers and spirv-tools were introduced. I've waited for the layers since I'm an aspiring Vulkan developer.

root@skare$ emerge -pqv '=media-libs/vulkan-loader-1.1.70.0-r1::gentoo'
[ebuild     U ] media-libs/vulkan-loader-1.1.70.0-r1 [1.0.61.1] USE="X layers%* wayland -demos%" ABI_X86="(64) -32 (-x32)" 

root@skare$ emerge --info '=media-libs/vulkan-loader-1.1.70.0-r1::gentoo'
Portage 2.3.31 (python 3.6.5-final-0, default/linux/amd64/17.0/desktop/gnome/systemd, gcc-7.3.0, glibc-2.26-r6, 4.14.14-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.14.14-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.4.1
KiB Mem:    12291168 total,   2725636 free
KiB Swap:   12418208 total,  12382104 free
Timestamp of repository gentoo: Wed, 25 Apr 2018 18:30:01 +0000
Head commit of repository gentoo: 1dc8557a38b42c16b34728619c94d0c89476251a
sh bash 4.4_p19
ld GNU ld (Gentoo 2.30 p1) 2.30.0
ccache version 3.3.4 [disabled]
app-shells/bash:          4.4_p19::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.14-r2::gentoo, 3.4.8-r1::gentoo, 3.5.5-r1::gentoo, 3.6.5-r1::gentoo
dev-util/ccache:          3.3.4-r1::gentoo
dev-util/cmake:           3.11.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.30-r1::gentoo
sys-devel/gcc:            7.2.0-r1::gentoo, 7.3.0-r1::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r3::gentoo
sys-kernel/linux-headers: 4.16-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r6::gentoo
Repositories:

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

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

java
    location: /var/lib/layman/java
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/java.git
    masters: gentoo
    priority: 50

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

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

sunrise
    location: /var/lib/layman/sunrise
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/sunrise-reviewed.git
    masters: gentoo
    priority: 50

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: 9999
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 

Installed sets: @esteam, @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
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/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.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/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 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=10 --with-bdeps=y --load-average=50 --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.mdfnet.se/gentoo ftp://mirror.mdfnet.se/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en sv"
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="24bpp 256-color 3dnow 3dnowext 64bit S3TC X a52 aac aacplus aalib accessibility acl acpi aio alsa amazon amd64 amr amrnb amrwb apng asf aspell autoipd avahi avi bash-completion bidi binary-drivers bluetooth bookmarks branding btrfs bzip2 c++0x cairo ccache cdda cdr cg cgi clang clangstaticanalyzer cleartype cleartype_hinting cli clutter cmake colord cover coverart crypt css cue cups curl custom-optimization cxx cycles daap dbus dconf debugger device-mapper devil dga dhclient dirac divx dmx dns dri dri3 drm dts dvd dvdr dvdread emboss encode evo exif f2fs fakevim fam fastcgi fat fbcon ffmpeg flac fluidsynth fontconfig fortran fpm freeimage freerdp ftp fuse g3dvl gaim gd gdbm gdu gflags ggi gif gimp git glamor glew glib glsl glut gmail gmailtimestamps gmedia gnome gnome-keyring gnome-online-accounts gnome-shell gold google gphoto2 gpm gstreamer gtk gtk2 gtk3 gtkhtml gvim gzip h224 h281 h323 howl-compat hpijs hwdb iconv icq icu idn imap inotify introspection iphone ipv6 jabber java java6 jingle jpeg jpeg2k kdrive lame lcms ldap libinput libnotify libsecret libsexy libssh2 libv4l libv4l2 llvm llvm-shared-libs lm_sensors mad madwifi mbox md5sum mdnsresponder-compat mh midi mikmod mime minizip mmxext mng moc mod modplug modules mozembed mozilla moznocompose moznoirc moznomail moznoroaming mozsha1 mozsvg mp2 mp3 mp4 mp4live mpeg msn multimedia musepack musicbrainz nas nautilus ncurses nemesi networkmanager new-hpcups nfsv41 nls nptl nsplugin ntfs ntfsprogs nx ofa ogg openal opencl opencore-amr openexr opengl openmp openssl opensslcrypt optimization pam pango pcntl pcre pdf pdflib perl php pidgin pipechan plasma png pnm policykit pop ppds private-headers pulseaudio pvr python python3 qml qt5 qtscript quicktime radio raw rdesktop rdp readline realmedia reiser4 reiserfs rtc s3tc samba sasl schroedinger scintilla sdl seccomp secure-delete sid sip sndfile sockets spell sql sqlite srt sse3 sse4 sse4.1 sse4.2 sse4_1 sse4_2 ssh ssl ssse3 staging startup-notification static-analyzer steamruntime subtitles subversion suid svg system-cairo system-ffmpeg system-harfbuzz system-icu system-jpeg system-libvpx system-llvm system-snappy systemd tcpd telepathy teletext tga theora threads tiff tls tracker transcode truetype udev udisks unicode upcall upnp upower usb user-session v4l v4l2 vaapi valgrind vdpau video videos vim vim-pager vim-syntax vim-with-x vorbis vte vulkan wav wavpack wayland webdav webdav-neon webdav-serf webkit webkit2 webm webp webphoto webstart widgets wifi winbind wma wma-fixed wmf wmp wxwidgets x264 x265 xanim xattr xcb xcomposite xdmcp xext xfs xinerama xkb xml xmp xrandr xv xvid zeitgeist zeroconf zip zlib zoran" ABI_X86="64" ALSA_CARDS="emu10k1 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="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" 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="libinput roccat_konextd" KERNEL="linux" 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="python2_7" PYTHON_TARGETS="python2_7 python3_5 python3_6" QEMU_SOFTMMU_TARGETS="i386 arm x86_64" QEMU_USER_TARGETS="i386 arm x86_64" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" 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, ENV_UNSET, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Peter Asplund 2018-04-26 06:44:51 UTC
I tried enabling the demos use flag but it did not help.
Comment 2 Nick Sarnie gentoo-dev 2018-04-27 22:37:29 UTC
(In reply to Peter Asplund from comment #1)
> I tried enabling the demos use flag but it did not help.

Hi Peter,

Thanks for trying out the layers USE. I have been unable to reproduce this issue with the exact same USE flags, compiler flags, GCC version, and FEATURES.

I also tried emerging the glslang, spirv-tools, and vulkan-loader with these settings.

I'm not sure what else to try.

Can you confirm that /usr/include/SPIRV/spirv.hpp has the below definitions, for example:

CapabilityGeometryShaderPassthroughNV
CapabilitySampleMaskOverrideCoverageNV
CapabilityShaderViewportIndexLayerEXT

Thanks!

Sarnex
Comment 3 Peter Asplund 2018-04-28 19:41:20 UTC
Hi, thanks for looking into it!

The file is in fact missing the defined values. It might be because I've tried installing SPIRV/Vulkan stuff before, I don't know.

root@skare$ ll
total 28K
-rw-r--r-- 1 root root 28K Jan 14  2017 spirv.hpp

I feel that the date is a bit old, based on the date of the SPIRV install.

root@skare$ eix spirv
* dev-util/SPIRV-Tools [1]
     Available versions:  (~)1.1_p1 [m]**9999(0/9999) {ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Homepage:            https://github.com/KhronosGroup/SPIRV-Tools
     Description:         GLSL reference compiler.

[I] dev-util/spirv-headers
     Available versions:  (~)1.3 **9999
     Installed versions:  1.3(11:46:11 PM 04/14/2018)
     Homepage:            https://www.khronos.org/registry/spir-v/
     Description:         Machine-readable files for the SPIR-V Registry

[I] dev-util/spirv-tools
     Available versions:  (~)2018.2-r1^t **9999^t {ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  2018.2-r1(12:20:20 AM 04/15/2018)(ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
     Homepage:            https://github.com/KhronosGroup/SPIRV-Tools
     Description:         Provides an API and commands for processing SPIR-V modules

I checked the "equery belongs" on the file and this is the answer:

root@skare$ equery belongs spirv.hpp 
 * Searching for spirv.hpp ... 
dev-util/glslang-9999 (/usr/include/SPIRV/spirv.hpp)
dev-util/spirv-headers-1.3 (/usr/include/spirv/unified1/spirv.hpp)
dev-util/spirv-headers-1.3 (/usr/include/spirv/1.2/spirv.hpp)
dev-util/spirv-headers-1.3 (/usr/include/spirv/1.0/spirv.hpp)
dev-util/spirv-headers-1.3 (/usr/include/spirv/1.1/spirv.hpp)

The date does match with the install date of the glslang, but it just hit me that having -9999 is a bit stupid since it won't automatically update with a new release! I will go back to a normal version (I have no idea why I'm running -9999) and get back to you.
Comment 4 Nick Sarnie gentoo-dev 2018-04-28 19:50:57 UTC
Hey,

I just tried glslang-9999 with the latest commit available on Jan 14th and those values in the compile error are defined in spirv.hpp. I expect that some non-Portage installation modified spirv.hpp.

Let me know if re-installing glslang works.

Thanks!
Nick
Comment 5 Peter Asplund 2018-04-28 20:07:07 UTC
It worked now, after going back to a released version of glslang! Sorry for polluting the bugtracker before checking it, but I wasn't aware of the dependency (or remembered the -9999...).
Comment 6 Nick Sarnie gentoo-dev 2018-04-28 20:08:35 UTC
(In reply to Peter Asplund from comment #5)
> It worked now, after going back to a released version of glslang! Sorry for
> polluting the bugtracker before checking it, but I wasn't aware of the
> dependency (or remembered the -9999...).

No problem, glad it works!

Closing invalid.

Sarnex
Comment 7 Peter Asplund 2018-04-28 20:09:02 UTC
I have tried building RenderDoc, Vulkan tools and SPIRV-tools myself, so it is quite possible that it has affected my environment.

I've written an ebuild for RenderDoc, I will try to get a bug in to get it into the tree.