Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 658900 - media-libs/vulkan-loader-1.1.77.0 - fails to build
Summary: media-libs/vulkan-loader-1.1.77.0 - fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL: https://github.com/KhronosGroup/Vulka...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-24 03:33 UTC by Georgy Yakovlev
Modified: 2018-07-07 17:57 UTC (History)
6 users (show)

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


Attachments
build-abi_x86_32.x86.log (build-abi_x86_32.x86.log,71.83 KB, text/plain)
2018-06-24 03:33 UTC, Georgy Yakovlev
Details
build-abi_x86_64.amd64.log (build-abi_x86_64.amd64.log,60.06 KB, text/plain)
2018-06-24 03:50 UTC, Georgy Yakovlev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Georgy Yakovlev archtester gentoo-dev 2018-06-24 03:33:27 UTC
Created attachment 536990 [details]
build-abi_x86_32.x86.log

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

Calculating dependencies... done!
[ebuild     U  ] media-libs/vulkan-loader-1.1.77.0::gentoo [1.1.70.0-r1::gentoo] USE="X wayland -layers (-demos%*)" ABI_X86="32 (64) (-x32)" 1,478 KiB


Portage 2.3.40 (python 3.6.5-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-7.3.0, glibc-2.27-r4, 4.16.17-gentoo x86_64)
=================================================================
System uname: Linux-4.16.17-gentoo-x86_64-AMD_Ryzen_Threadripper_1950X_16-Core_Processor-with-gentoo-2.6
KiB Mem:    64809384 total,  43211144 free
KiB Swap:   16777208 total,  16777208 free
Timestamp of repository gentoo: Sun, 24 Jun 2018 02:06:20 +0000
Head commit of repository gentoo: 839147832ab728b517990b3b44a8b822719da910

Head commit of repository steam-overlay: 1237b523da636a247376b25cd4ec59c16d5b0104

sh bash 4.4_p23
ld GNU ld (Gentoo 2.30 p3) 2.30.0
distcc[32688] (dcc_mkdir) ERROR: mkdir '/tmp/portage/.distcc/state' failed: No such file or directory [disabled]
app-shells/bash:          4.4_p23::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5-r1::gentoo
dev-util/cmake:           3.11.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6::gentoo
sys-apps/openrc:          0.37::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.30-r3::gentoo
sys-devel/gcc:            7.3.0-r3::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.27-r4::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    sync-git-clone-extra-opts: -b master

gyakovlev
    location: /var/db/repos/gyakovlev
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -frecord-gcc-switches"
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"
CXXFLAGS="-march=native -O2 -pipe -frecord-gcc-switches"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--ask-enter-invalid --jobs=32  --load-average 32"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY 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="-march=native -O2 -pipe -frecord-gcc-switches"
FEATURES="assume-digests binpkg-logs buildpkg cgroup collision-protect compressdebug config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms sign splitdebug strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe -frecord-gcc-switches"
GENTOO_MIRRORS="https://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/ http://cosmos.illinois.edu/pub/gentoo/ http://lug.mtu.edu/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0"
LINGUAS="en"
MAKEOPTS="-j32 -l32"
PKGDIR="/var/cache/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="/tmp"
USE="X a52 aac acl acpi activities alsa amd64 bash-completion berkdb bluray branding bzip2 cairo cdda cdr cli crypt cups cxx dbus declarative djvu dri dts dvd dvdr elogind emboss encode epub exif fam fbcon flac fontconfig fortran gdbm gif glamor gpm gtk iconv ios ipv6 jit jpeg kde kipi kwallet lcms libnotify libtirpc lm_sensors lz4 lzma lzo mad mng mobi module-sign modules mp3 mp4 mpeg multilib ncurses nls nptl numa ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qml qt5 readline seccomp semantic-desktop smp spell ssl startup-notification svg tiff truetype udev udisks unicode upower urandom usb vaapi vdpau vim-syntax vorbis wayland widgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="32 64" 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="karbon plan sheets stage words" CAMERAS="ptp2 fuji" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a 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="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en" 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 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu radeon 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, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Georgy Yakovlev archtester gentoo-dev 2018-06-24 03:50:49 UTC
Created attachment 536992 [details]
build-abi_x86_64.amd64.log

actually it's not only x86_32

64bin only build fails as well.
Comment 2 jospezial 2018-06-24 11:01:26 UTC
I think it has something to do with:

https://github.com/KhronosGroup/Vulkan-Loader/commit/6113978aa3b48a7e9f1d4289f1ab13aefae9f070

"loader: Add support for get display properties2"


It looks as something is not up to date.

/var/tmp/portage/media-libs/vulkan-loader-1.1.77.0/work/Vulkan-Loader-c71d5027a9d7fe4b170c0ff69bad67efd1d530cf/loader/wsi.c: In function ‘vkGetPhysicalDeviceDisplayProperties2KHR’:
/var/tmp/portage/media-libs/vulkan-loader-1.1.77.0/work/Vulkan-Loader-c71d5027a9d7fe4b170c0ff69bad67efd1d530cf/loader/wsi.c:1611:18: error: ‘VkLayerInstanceDispatchTable’ {aka ‘const struct VkLayerInstanceDispatchTable_’} has no member named ‘GetPhysicalDeviceDisplayProperties2KHR’; did you mean ‘GetPhysicalDeviceDisplayPropertiesKHR’?
     return disp->GetPhysicalDeviceDisplayProperties2KHR(unwrapped_phys_dev, pPropertyCount, pProperties);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                  GetPhysicalDeviceDisplayPropertiesKHR
/var/tmp/portage/media-libs/vulkan-loader-1.1.77.0/work/Vulkan-Loader-c71d5027a9d7fe4b170c0ff69bad67efd1d530cf/loader/wsi.c: In function ‘vkGetPhysicalDeviceDisplayPlaneProperties2KHR’:
/var/tmp/portage/media-libs/vulkan-loader-1.1.77.0/work/Vulkan-Loader-c71d5027a9d7fe4b170c0ff69bad67efd1d530cf/loader/wsi.c:1660:18: error: ‘VkLayerInstanceDispatchTable’ {aka ‘const struct VkLayerInstanceDispatchTable_’} has no member named ‘GetPhysicalDeviceDisplayPlaneProperties2KHR’; did you mean ‘GetPhysicalDeviceDisplayPlanePropertiesKHR’?
     return disp->GetPhysicalDeviceDisplayPlaneProperties2KHR(unwrapped_phys_dev, pPropertyCount, pProperties);
Comment 3 Nick Sarnie gentoo-dev 2018-06-24 12:49:37 UTC
Thanks for the report.

I had this issue but I thought I broke my vulkan install somehow.

Can you send me the output of:

ls /usr/include/vulkan


Thanks
Comment 4 klaus818 2018-06-24 13:05:52 UTC
ls /usr/include/vulkan
vk_layer_dispatch_table.h  vulkan_intel.h
Comment 5 Nick Sarnie gentoo-dev 2018-06-24 13:10:11 UTC
(In reply to klaus818 from comment #4)
> ls /usr/include/vulkan
> vk_layer_dispatch_table.h  vulkan_intel.h

Thanks. A couple of questions.

1) Did you uninstall vulkan-headers after the vulkan-loader install failed?

2) What happens if you rename vk_layer_dispatch_table.h to vk_layer_dispatch_table.h.bak and then try emerging vulkan-loader-1.1.77.0?

Thanks,
Sarnex
Comment 6 klaus818 2018-06-24 13:35:45 UTC
It doesn't change anything, if I uninstall vulkan-headers, because it is installed before the next build of vulkan-loader.

emerge -uDNva world

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

Calculating dependencies                ... done!            
[ebuild  N     ] dev-util/vulkan-headers-1.1.77.0::gentoo  0 KiB
[ebuild     U  ] media-libs/vulkan-loader-1.1.77.0::gentoo [1.1.70.0-r1::gentoo] USE="X wayland -layers (-demos%)" ABI_X86="(64) -32 (-x32)" 0 KiB
[blocks b      ] <=media-libs/vulkan-loader-1.1.70.0-r999 ("<=media-libs/vulkan-loader-1.1.70.0-r999" is blocking dev-util/vulkan-headers-1.1.77.0)

Total: 2 packages (1 upgrade, 1 new), Size of downloads: 0 KiB
Conflict: 1 block

After I renamed vk_layer_dispatch_table.h, I was able to build vulkan-loader-1.1.77.0.
Comment 7 klaus818 2018-06-24 13:42:10 UTC
Now I have:
ls -l /usr/include/vulkan/
insgesamt 2312
-rw-r--r-- 1 root root    5373 13. Jun 23:31 vk_icd.h
-rw-r--r-- 1 root root   25295 24. Jun 15:32 vk_layer_dispatch_table.h
-rw-r--r-- 1 root root   24298  1. Jun 23:54 vk_layer_dispatch_table.h.bak
-rw-r--r-- 1 root root    6998 13. Jun 23:31 vk_layer.h
-rw-r--r-- 1 root root    3279 13. Jun 23:31 vk_platform.h
-rw-r--r-- 1 root root    1913 13. Jun 23:31 vk_sdk_platform.h
-rw-r--r-- 1 root root    4729 13. Jun 23:31 vulkan_android.h
-rw-r--r-- 1 root root  370247 13. Jun 23:31 vulkan_core.h
-rw-r--r-- 1 root root    1590 13. Jun 23:31 vulkan.h
-rw-r--r-- 1 root root 1851880 13. Jun 23:31 vulkan.hpp
-rw-r--r-- 1 root root    2588 16. Jun 07:23 vulkan_intel.h
-rw-r--r-- 1 root root    1754 13. Jun 23:31 vulkan_ios.h
-rw-r--r-- 1 root root    1784 13. Jun 23:31 vulkan_macos.h
-rw-r--r-- 1 root root    2241 13. Jun 23:31 vulkan_mir.h
-rw-r--r-- 1 root root    1729 13. Jun 23:31 vulkan_vi.h
-rw-r--r-- 1 root root    2307 13. Jun 23:31 vulkan_wayland.h
-rw-r--r-- 1 root root   11236 13. Jun 23:31 vulkan_win32.h
-rw-r--r-- 1 root root    2325 13. Jun 23:31 vulkan_xcb.h
-rw-r--r-- 1 root root    2305 13. Jun 23:31 vulkan_xlib.h
-rw-r--r-- 1 root root    1845 13. Jun 23:31 vulkan_xlib_xrandr.h
Comment 8 Scott Short 2018-06-24 13:59:42 UTC
(In reply to klaus818 from comment #6)
> It doesn't change anything, if I uninstall vulkan-headers, because it is
> installed before the next build of vulkan-loader.
> 
> emerge -uDNva world
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies                ... done!            
> [ebuild  N     ] dev-util/vulkan-headers-1.1.77.0::gentoo  0 KiB
> [ebuild     U  ] media-libs/vulkan-loader-1.1.77.0::gentoo
> [1.1.70.0-r1::gentoo] USE="X wayland -layers (-demos%)" ABI_X86="(64) -32
> (-x32)" 0 KiB
> [blocks b      ] <=media-libs/vulkan-loader-1.1.70.0-r999
> ("<=media-libs/vulkan-loader-1.1.70.0-r999" is blocking
> dev-util/vulkan-headers-1.1.77.0)
> 
> Total: 2 packages (1 upgrade, 1 new), Size of downloads: 0 KiB
> Conflict: 1 block
> 
> After I renamed vk_layer_dispatch_table.h, I was able to build
> vulkan-loader-1.1.77.0.

Confirmed. Renaming vk_layer_dispatch_table.h corrected my build also.
Comment 9 Nick Sarnie gentoo-dev 2018-06-24 14:00:25 UTC
Thanks. I know the problem but I need to think about the solution.

The workaround is to manually rename/remove /usr/include/vulkan/vk_layer_dispatch_table.h.

Sarnex
Comment 10 jospezial 2018-06-24 14:28:06 UTC
there is an upstream bug:
https://github.com/KhronosGroup/Vulkan-Loader/issues/42

using the live ebuilds of mesa,vulkan-headers and vulkan-loader did not help.
Comment 11 Nick Sarnie gentoo-dev 2018-06-24 14:29:25 UTC
Yeah, the problem is the build system will use the already-installed header, but as it has changed in the version we are building, it errors out. I am reporting this upstream.

Sarnex
Comment 12 Larry the Git Cow gentoo-dev 2018-06-24 14:42:03 UTC
The bug has been referenced in the following commit(s):

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

commit 131a721a341f10793685db777fa14f58a10de026
Author:     Nick Sarnie <sarnex@gentoo.org>
AuthorDate: 2018-06-24 14:40:30 +0000
Commit:     Nick Sarnie <sarnex@gentoo.org>
CommitDate: 2018-06-24 14:41:45 +0000

    profiles/package.mask: Mask media-libs/vulkan-loader-1.1.77.0
    
    Bug: https://bugs.gentoo.org/658900
    
    Signed-off-by: Nick Sarnie <sarnex@gentoo.org>

 profiles/package.mask | 5 +++++
 1 file changed, 5 insertions(+)
Comment 13 Larry the Git Cow gentoo-dev 2018-07-07 17:56:33 UTC
The bug has been closed via the following commit(s):

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

commit 9f3d37f64f6bd0476404d702a92b035bfd75cff5
Author:     Nick Sarnie <sarnex@gentoo.org>
AuthorDate: 2018-07-07 17:24:25 +0000
Commit:     Nick Sarnie <sarnex@gentoo.org>
CommitDate: 2018-07-07 17:51:58 +0000

    media-libs/vulkan-loader: Backport upstream patch
    
    Also update dep in 9999
    
    Fixes: https://bugs.gentoo.org/658900
    
    Package-Manager: Portage-2.3.41, Repoman-2.3.9

 ...1.77.0-loader-Rework-include-dependencies.patch | 54 ++++++++++++++++++++++
 .../vulkan-loader/vulkan-loader-1.1.77.0.ebuild    |  4 +-
 media-libs/vulkan-loader/vulkan-loader-9999.ebuild |  2 +-
 3 files changed, 58 insertions(+), 2 deletions(-)

Additionally, it has been referenced in the following commit(s):

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

commit a56846aa6198c91ec9bd380d18e4da93646120df
Author:     Nick Sarnie <sarnex@gentoo.org>
AuthorDate: 2018-07-07 17:50:47 +0000
Commit:     Nick Sarnie <sarnex@gentoo.org>
CommitDate: 2018-07-07 17:52:13 +0000

    media-libs/vulkan-layers: Backport patch to fix build on 1.1.77.0
    
    Same issue as media-libs/vulkan-loader-1.1.77.0
    
    Bug: https://bugs.gentoo.org/658900
    Package-Manager: Portage-2.3.41, Repoman-2.3.9

 ...1.77.0-layers-Rework-include-dependencies.patch | 68 ++++++++++++++++++++++
 .../vulkan-layers/vulkan-layers-1.1.77.0.ebuild    |  3 +-
 media-libs/vulkan-layers/vulkan-layers-9999.ebuild |  2 +-
 3 files changed, 71 insertions(+), 2 deletions(-)

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

commit b94c25afec87bf003dc506f34a81697764320b8d
Author:     Nick Sarnie <sarnex@gentoo.org>
AuthorDate: 2018-07-07 17:22:28 +0000
Commit:     Nick Sarnie <sarnex@gentoo.org>
CommitDate: 2018-07-07 17:22:28 +0000

    dev-util/vulkan-headers: Revbump 1.1.77.0 for patch
    
    Backport patch to fix upstream bug
    
    Bug: https://bugs.gentoo.org/658900
    Package-Manager: Portage-2.3.41, Repoman-2.3.9

 ...aders-1.1.77.0-r1-Remove-loader-layer-dep.patch | 38 ++++++++++++++++++++++
 .../vulkan-headers-1.1.77.0-r1.ebuild              | 27 +++++++++++++++
 2 files changed, 65 insertions(+)
Comment 14 Nick Sarnie gentoo-dev 2018-07-07 17:57:12 UTC
This should be fixed. Please try again.

Thanks,
Sarnex