Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 728248 - media-libs/libplacebo-2.43.0 : ../.../context.c: error: VK_PHYSICAL_DEVICE_TYPE_END_RANGE undeclared (first use in this function)
Summary: media-libs/libplacebo-2.43.0 : ../.../context.c: error: VK_PHYSICAL_DEVICE_TY...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Niklas Haas
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-06-14 15:47 UTC by Toralf Förster
Modified: 2020-07-19 16:41 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.58 KB, text/plain)
2020-06-14 15:47 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,224.80 KB, text/plain)
2020-06-14 15:47 UTC, Toralf Förster
Details
environment (environment,108.87 KB, text/plain)
2020-06-14 15:47 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,15.73 KB, application/x-bzip)
2020-06-14 15:47 UTC, Toralf Förster
Details
media-libs:libplacebo-2.43.0:20200613-000019.log (media-libs:libplacebo-2.43.0:20200613-000019.log,33.50 KB, text/plain)
2020-06-14 15:47 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,27.21 KB, application/x-bzip)
2020-06-14 15:47 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-06-14 15:47:16 UTC
../libplacebo-v2.43.0/src/vulkan/context.c: In function pl_vulkan_choose_device:
../libplacebo-v2.43.0/src/vulkan/context.c:627:10: error: VK_PHYSICAL_DEVICE_TYPE_END_RANGE undeclared (first use in this function); did you mean VK_PHYSICAL_DEVICE_TYPE_MAX_ENUM?
  627 |         [VK_PHYSICAL_DEVICE_TYPE_END_RANGE+1]    = {0},
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |          VK_PHYSICAL_DEVICE_TYPE_MAX_ENUM

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-libressl-20200605-232830

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-8.3.1
 [2] x86_64-pc-linux-gnu-10.1.0 *
clang version 10.0.0 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.9 (fallback)
  [3]   python3.8 (fallback)
  [4]   python3.6 (fallback)
  [5]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.44.0 *
  [2]   rust-1.44.0
The following VMs are available for generation-2:
1)	IcedTea JDK 3.16.0 [icedtea-8]
*)	IcedTea JDK 3.16.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   icedtea-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.0.2

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Fri 12 Jun 2020 11:05:19 PM UTC
/var/db/repos/libressl	Tue 02 Jun 2020 02:35:03 AM UTC

emerge -qpvO media-libs/libplacebo
[ebuild  N    ] media-libs/libplacebo-2.43.0  USE="lcms opengl shaderc vulkan -glslang -test" ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2020-06-14 15:47:19 UTC
Created attachment 644654 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-06-14 15:47:21 UTC
Created attachment 644656 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-06-14 15:47:24 UTC
Created attachment 644658 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-06-14 15:47:27 UTC
Created attachment 644660 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-06-14 15:47:30 UTC
Created attachment 644662 [details]
media-libs:libplacebo-2.43.0:20200613-000019.log
Comment 6 Toralf Förster gentoo-dev 2020-06-14 15:47:33 UTC
Created attachment 644664 [details]
temp.tbz2
Comment 7 Niklas Haas 2020-06-14 21:08:29 UTC
This is an issue of combining a too-new version of vulkan-headers with a too-old version of libplacebo. You can fix it by either upgrading to libplacebo 2.72 (the ebuild for which is unfortunately still sitting in a PR on github), or by downgrading vulkan-headers to a version before v1.2.140.

I'll fix this issue by making the dependency on vulkan-headers more restrictive.
Comment 8 Niklas Haas 2020-06-14 21:22:52 UTC
(In reply to Niklas Haas from comment #7)
> I'll fix this issue by making the dependency on vulkan-headers more
> restrictive.

Changed my mind, the fix is easy to backport.
Comment 9 Larry the Git Cow gentoo-dev 2020-06-18 09:23:11 UTC
The bug has been closed via the following commit(s):

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

commit 60bf2b4609439e1b3d96059102a57d2e7163ea9b
Author:     Niklas Haas <gentoo@haasn.xyz>
AuthorDate: 2020-06-17 01:41:43 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-06-18 09:13:19 +0000

    media-libs/libplacebo: backport vulkan-headers compatibility patch
    
    This patch is needed to compile older versions of libplacebo against
    versions of vulkan-headers newer than 1.2.140. It doesn't break anything
    retroactively, and doesn't change behaviour, nor installed headers, so
    we don't need to bump the revision number.
    
    Closes: https://bugs.gentoo.org/728248
    Signed-off-by: Niklas Haas <gentoo@haasn.xyz>
    Closes: https://github.com/gentoo/gentoo/pull/16243
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 ...43.0-vulkan-headers-1.2.140-compatibility.patch | 59 ++++++++++++++++++++++
 media-libs/libplacebo/libplacebo-2.43.0.ebuild     |  4 ++
 2 files changed, 63 insertions(+)
Comment 10 Andreas Sturmlechner gentoo-dev 2020-07-02 09:42:10 UTC
Any practical reasons not to cleanup? (See PR)
Comment 11 Larry the Git Cow gentoo-dev 2020-07-19 16:41:50 UTC
The bug has been referenced in the following commit(s):

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

commit 65124aa2f3dae5f5266053134ceeda3e01064bee
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-07-02 08:28:47 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-07-19 16:41:19 +0000

    media-libs/libplacebo: Drop 1.21.0-r1 and 1.29.1
    
    Bug: https://bugs.gentoo.org/728248
    Package-Manager: Portage-2.3.103, Repoman-2.3.23
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-libs/libplacebo/Manifest                    |  2 -
 media-libs/libplacebo/libplacebo-1.21.0-r1.ebuild | 55 -----------------------
 media-libs/libplacebo/libplacebo-1.29.1.ebuild    | 55 -----------------------
 3 files changed, 112 deletions(-)