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
Created attachment 926244 [details] build.log-25.0.4 Same error with 25.0.4-r1
Created attachment 926245 [details] emerge --info
Created attachment 926246 [details] actual use-flags Those are failing. USE="-opencl" is doing fine.
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
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