Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 954778 - media-libs/mesa-25.0.4 and -r1 suddenly do not compile with opencl USE flag
Summary: media-libs/mesa-25.0.4 and -r1 suddenly do not compile with opencl USE flag
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-27 11:49 UTC by Karl Ernst Brunk
Modified: 2025-05-04 04:54 UTC (History)
2 users (show)

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


Attachments
build.log-25.0.4 (build.log.xz,58.87 KB, application/x-xz)
2025-04-27 11:54 UTC, Karl Ernst Brunk
Details
emerge --info (emerge-info,16.60 KB, text/plain)
2025-04-27 11:55 UTC, Karl Ernst Brunk
Details
actual use-flags (actual-use-flags.txt,403 bytes, text/plain)
2025-04-27 11:57 UTC, Karl Ernst Brunk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Ernst Brunk 2025-04-27 11:49:39 UTC
mesa-25.0.4 versions can't compile with opencl-Flag after april 17. This was the last date i merged 25.0.4 with same llvm:19 without problem.

Reproducible: Always

Steps to Reproduce:
1.emerge media-libs/mesa with opencl enabled
2.
3.
Actual Results:  
error while compiling - see build.log

Expected Results:  
should compile

There must have been some changes between 17.04 and today that cause the problem.
With the update to 25.0.4-r1 problems started.
But even 25.0.4 does produce the same now.
I tried compiling
1. without mold -> same error
2.  -llvm -> compiles fine
3.  -opencl -> compiles fine
4. +llvm -opencl -> compiles fine
Comment 1 Karl Ernst Brunk 2025-04-27 11:54:05 UTC
Created attachment 926244 [details]
build.log-25.0.4

Same error with 25.0.4-r1
Comment 2 Karl Ernst Brunk 2025-04-27 11:55:58 UTC
Created attachment 926245 [details]
emerge --info
Comment 3 Karl Ernst Brunk 2025-04-27 11:57:15 UTC
Created attachment 926246 [details]
actual use-flags

Those are failing.
USE="-opencl" is doing fine.
Comment 4 Paul Zander 2025-04-27 12:08:56 UTC
Comment on attachment 926244 [details]
build.log-25.0.4

mold: error: undefined symbol: clang::getClangFullVersion()
>>> referenced by rusticl.a858af6d97028b4d-cgu.12
>>>               src/gallium/frontends/rusticl/librusticl.a(rusticl.rusticl.a858af6d97028b4d-cgu.12.rcgu.o):(rusticl::core::program::get_disk_cache::h214fe4983506ea54)
mold: error: undefined symbol: llvm::writeSpirv(llvm::Module*, SPIRV::TranslatorOpts const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)
>>> referenced by rusticl.a858af6d97028b4d-cgu.12
>>>               src/gallium/frontends/rusticl/librusticl.a(rusticl.rusticl.a858af6d97028b4d-cgu.12.rcgu.o):(rusticl::core::program::get_disk_cache::h214fe4983506ea54)
collect2: error: ld returned 1 exit status
Comment 5 Karl Ernst Brunk 2025-05-03 22:34:35 UTC
Today mesa 25.0.5 was out.
The reported error also happens there. Without opencl use-flag it comiles.

One other thing concerning the bugs title : mold should not be mentioned there.
The Linker is not causing the problem. So the title as is is misleading.
cheers