Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 935443 - dev-build/meson-1.5.0_rc2 does not link all dependencies: media-libs/libplacebo fails to compile: context.c:(.text+<snip>): undefined reference to vkGetInstanceProcAddr
Summary: dev-build/meson-1.5.0_rc2 does not link all dependencies: media-libs/libplace...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Eli Schwartz
URL:
Whiteboard:
Keywords:
: 935445 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-07-04 07:18 UTC by Toralf Förster
Modified: 2024-07-25 04:25 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.47 KB, text/plain)
2024-07-04 07:18 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,222.49 KB, text/plain)
2024-07-04 07:18 UTC, Toralf Förster
Details
environment (environment,140.62 KB, text/plain)
2024-07-04 07:18 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.19 KB, application/x-xz)
2024-07-04 07:18 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,37.66 KB, application/x-xz)
2024-07-04 07:18 UTC, Toralf Förster
Details
media-libs:libplacebo-7.349.0:20240703-224558.log (media-libs:libplacebo-7.349.0:20240703-224558.log,85.03 KB, text/plain)
2024-07-04 07:18 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,59.51 KB, application/x-xz)
2024-07-04 07:18 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,35.42 KB, application/x-xz)
2024-07-04 07:18 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 2024-07-04 07:18:32 UTC
too long lines were shrinked:

[71/73] x86_64-pc-linux-gnu-gcc -Isrc/libplacebo.so.349.p -Isrc -I../libplacebo-v7.349.0/src -Isrc/include -I../libplacebo-v7.349.0/src/include -I/usr/include -I../libplacebo-v7.349.0/3rdparty/fast_float/include -Isrc/opengl/include -I../libplacebo-v7.349.0/src/opengl/include -Isrc/shaders -Isrc/vul
[72/73] x86_64-pc-linux-gnu-gcc -Isrc/libplacebo.so.349.p -Isrc -I../libplacebo-v7.349.0/src -Isrc/include -I../libplacebo-v7.349.0/src/include -I/usr/include -I../libplacebo-v7.349.0/3rdparty/fast_float/include -Isrc/opengl/include -I../libplacebo-v7.349.0/src/opengl/include -Isrc/shaders -Isrc/vul
[73/73] x86_64-pc-linux-gnu-g++  -o src/libplacebo.so.349 src/libplacebo.so.349.p/meson-generated_.._renderer.c.o src/libplacebo.so.349.p/meson-generated_.._shaders.c.o src/libplacebo.so.349.p/meson-generated_.._shaders_colorspace.c.o src/libplacebo.so.349.p/meson-generated_.._shaders_custom.c.o src
FAILED: src/libplacebo.so.349 
x86_64-pc-linux-gnu-g++  -o src/libplacebo.so.349 src/libplacebo.so.349.p/meson-generated_.._renderer.c.o src/libplacebo.so.349.p/meson-generated_.._shaders.c.o src/libplacebo.so.349.p/meson-generated_.._shaders_colorspace.c.o src/libplacebo.so.349.p/meson-generated_.._shaders_custom.c.o src/libplac
/usr/libexec/gcc/x86_64-pc-linux-gnu/ld: src/libplacebo.so.349.p/vulkan_context.c.o: in function `pl_vk_inst_create':
context.c:(.text+0x2261): undefined reference to `vkGetInstanceProcAddr'
/usr/libexec/gcc/x86_64-pc-linux-gnu/ld: context.c:(.text+0x25c3): undefined reference to `vkGetInstanceProcAddr'
/usr/libexec/gcc/x86_64-pc-linux-gnu/ld: src/libplacebo.so.349.p/vulkan_context.c.o: in function `pl_vulkan_choose_device':

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_gnome-20240629-070503

  UNMASKED:
  ~dev-libs/icu-75.1
  ~dev-libs/icu-layoutex-75.1
    Requested by sam
  <dev-build/meson-9999
    Please re-assign to ztrawhcse@ if you cannot reproduced it with regular meson.
  >=sys-libs/ncurses-6.5
    Requested by sam
  ~dev-lang/perl-5.40.0
  ~virtual/perl-Archive-Tar-3.20.10_rc
  ~virtual/perl-CPAN-Meta-Requirements-2.143.0
  ~virtual/perl-Compress-Raw-Bzip2-2.212.0
  ~virtual/perl-DB_File-1.859.0
  ~virtual/perl-Data-Dumper-2.189.0
  ~virtual/perl-Devel-PPPort-3.720.0
  ~virtual/perl-Exporter-5.780.0
  ~virtual/perl-ExtUtils-CBuilder-0.280.240
  ~virtual/perl-ExtUtils-Manifest-1.750.0
  ~virtual/perl-File-Spec-3.900.0
  ~virtual/perl-HTTP-Tiny-0.88.0
  ~virtual/perl-IO-1.550.0
  ~virtual/perl-IO-Compress-2.212.0
  ~virtual/perl-IO-Socket-IP-0.420.0
  ~virtual/perl-IO-Zlib-1.150.0
  ~virtual/perl-Math-BigInt-2.3.2
  ~virtual/perl-Math-BigInt-FastCalc-0.501.800
  ~virtual/perl-Math-BigRat-2.3.2
  ~virtual/perl-Module-CoreList-5.202.406.90
  ~virtual/perl-Module-Metadata-1.0.38
  ~virtual/perl-Pod-Simple-3.450.0
  ~virtual/perl-Safe-2.460.0
  ~virtual/perl-Socket-2.38.0
  ~virtual/perl-Test-Harness-3.480.0
  ~virtual/perl-Test-Simple-1.302.199
  ~virtual/perl-Text-Tabs+Wrap-2024.1.0
  ~virtual/perl-Time-HiRes-1.977.700
  ~virtual/perl-Time-Local-1.350.0
  ~virtual/perl-autodie-2.370.0
  ~virtual/perl-bignum-0.670.0
  ~virtual/perl-podlators-5.10.200_rc
  ~virtual/perl-threads-2.400.0
  ~virtual/perl-threads-shared-1.690.0
  ~virtual/perl-version-0.993.0
    Requested by dilfridge and sam

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 18.1.8
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.8
Python 3.12.4
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.79.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.11_p9 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.3_p9 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.412_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.22.5 linux/amd64

  HEAD of ::gentoo
commit 77e963ea1161220653e536d0a5c37c436f18b9c9
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Jul 3 22:03:59 2024 +0000

    2024-07-03 22:03:58 UTC

emerge -qpvO media-libs/libplacebo
[ebuild  N    ] media-libs/libplacebo-7.349.0  USE="lcms opengl shaderc vulkan xxhash -glslang -libdovi -llvm-libunwind -test -unwind" ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2024-07-04 07:18:33 UTC
Created attachment 896928 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-07-04 07:18:36 UTC
Created attachment 896929 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-07-04 07:18:37 UTC
Created attachment 896930 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-07-04 07:18:38 UTC
Created attachment 896931 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-07-04 07:18:39 UTC
Created attachment 896932 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-07-04 07:18:40 UTC
Created attachment 896933 [details]
media-libs:libplacebo-7.349.0:20240703-224558.log
Comment 7 Toralf Förster gentoo-dev 2024-07-04 07:18:42 UTC
Created attachment 896934 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2024-07-04 07:18:43 UTC
Created attachment 896935 [details]
temp.tar.xz
Comment 9 Ionen Wolkens gentoo-dev 2024-07-04 07:34:29 UTC
*** Bug 935445 has been marked as a duplicate of this bug. ***
Comment 10 Ionen Wolkens gentoo-dev 2024-07-04 07:38:59 UTC
Haven't investigated yet, but I can only reproduce if I build using meson-9999, so re-assigning as instructed.
Comment 11 Ionen Wolkens gentoo-dev 2024-07-04 07:47:45 UTC
(In reply to Ionen Wolkens from comment #10)
> Haven't investigated yet, but I can only reproduce if I build using
> meson-9999, so re-assigning as instructed.
Or 1.5.0_rc2, assumed 9999 was used given it was in the former summary but seems this is doing <9999 so it pulled the rc
Comment 12 Ionen Wolkens gentoo-dev 2024-07-04 08:29:01 UTC
6d713e40f81512eadb0cc4654408d90cb22ba774 is the first bad commit
commit 6d713e40f81512eadb0cc4654408d90cb22ba774
Author: Dylan Baker <dylan@pnwbakers.com>
Date:   Wed Mar 13 13:30:34 2024 -0700

    dependency: define equality and hash operators for Dependency
    
    When a dependency is copied and its name is changed, we still need a way
    to say "this is the same dependency", which we now have.

 mesonbuild/dependencies/base.py | 12 ++++++++++++
 1 file changed, 12 insertions(+)
Comment 13 Eli Schwartz gentoo-dev 2024-07-05 21:11:56 UTC
libvulkan.so is dropped from the compile command line, as a result of that bisected commit. Haven't investigated why.
Comment 14 Eli Schwartz gentoo-dev 2024-07-05 21:21:28 UTC
I plan to revert the regressing commit for the final release.
Comment 15 Eli Schwartz gentoo-dev 2024-07-05 22:36:54 UTC
Revert landed in meson on git master.
Comment 16 Ionen Wolkens gentoo-dev 2024-07-06 06:51:57 UTC
libplacebo has a path where it compiles a dummy version of the vulkan bit and thus drops libvulkan, and in this case it's doing actual vulkan support and should not drop it... but for some reason the condition failed w/ that commit

Aka:

    vulkan_link = vulkan_link.require(vulkan_loader.found() and vulkan_build.allowed())
Comment 17 Eli Schwartz gentoo-dev 2024-07-25 04:25:45 UTC
This was indeed fixed in 1.5.0, closing.