View previous topic :: View next topic |
Author |
Message |
alecStewart1 Tux's lil' helper
Joined: 03 Jul 2022 Posts: 145
|
Posted: Sun Oct 13, 2024 3:27 am Post subject: media-libs/libplacebo: no long compiling w/ bootstrap Clang |
|
|
Hey gang,
I I tried moving to using clang as my compiler (for most things) and I even was able to bootstrap it (with llvm-unwind) and it seems like some libraries aren't quite working the same. Probably because of some environment variables I set in package.env or another env config file.
=media-libs/libplacebo-7.349.0 is one of those. The following error is thrown:
Code: |
Header "vulkan/vulkan_core.h" has symbol "VK_VERSION_1_3" with dependency vulkan: NO
../libplacebo-v7.349.0/src/vulkan/meson.build:17:28: ERROR: Feature vulkan cannot be enabled: vulkan.h was not found on the system, nor inside `3rdparty/Vulkan-Headers`. Please run `git submodule update --init` followed by `meson --wipe`.
|
But...vulkan is installed on my system, and there's a header file at /usr/include/vulkan/vulkan.h. I compile all of the Vulkan libraries and Meson with the bootstrapped Clang/LLVM system, so I don't really know what's happening.
emerge --info
build.log for =media-libs/libplacebo-7.349.0
I didn't compile the vulkan libraries with any LTO which I've found to not always play well with some packages, so I can at least rule that out. |
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2831
|
Posted: Sun Oct 13, 2024 6:37 am Post subject: |
|
|
This might have more to say (if not found, search for meson-log.txt, not sure if path is right for you):
/var/tmp/portage/portage/media-libs/libplacebo-7.349.0/work/libplacebo-v7.349.0-abi_x86_32.x86/meson-logs/meson-log.txt
That aside, imo you really are setting too many things -- should reduce, ideally stick to lld with clang (or at least for system-wide), and use wanted default-* USE on clang-common rather than have things like stdlib/rtlib/unwind in LDFLAGS.
fwiw clang19+mold+libplacebo[abi_x86_32] works for me, albeit I haven't tried with your flags.
Just to be sure, you don't have old vulkan headers elsewhere, right? Like in /usr/local. Finding ancient <1.3 headers would fail that test as well. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|