Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936272 - dev-util/intel_clc-24.1.3: Fails to compile, blocks update of media-libs/mesa (24.0.9 -> 24.1.3)
Summary: dev-util/intel_clc-24.1.3: Fails to compile, blocks update of media-libs/mesa...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-19 03:01 UTC by Alexis
Modified: 2024-07-20 07:39 UTC (History)
2 users (show)

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


Attachments
Build log (build.log.bz2,24.31 KB, application/x-bzip2)
2024-07-19 03:02 UTC, Alexis
Details
Output of `emerge --info` (emerge.info,8.59 KB, text/plain)
2024-07-19 03:03 UTC, Alexis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis 2024-07-19 03:01:13 UTC
Full build log and output of `emerge --info` to follow. gcc is 13.3.1_p20240614.

```
FAILED: src/intel/compiler/intel_clc 
x86_64-pc-linux-gnu-g++  -o src/intel/compiler/intel_clc src/intel/compiler/intel_clc.p/intel_clc.c.o src/intel/compiler/intel_clc.p/brw_kernel.c.o src/intel/compiler/intel_clc.p/elk_elk_nir_options.c.o -Wl,--as-needed -Wl,--no-undefined -march=native -O2 -pipe -fdiagnostics-color=always -Wl,-O1 -Wl,--as-needed -Wl,-rpath,/usr/lib/llvm/17/lib64 -Wl,-rpath-link,/usr/lib/llvm/17/lib64 -Wl,--start-group src/intel/common/libintel_common.a src/intel/isl/libisl.a src/intel/isl/libisl_per_hw_ver40.a src/util/libmesa_util.a src/util/libmesa_util_sse41.a src/util/blake3/libblake3.a src/c11/impl/libmesa_util_c11.a src/intel/dev/libintel_dev.a src/intel/isl/libisl_per_hw_ver50.a src/intel/isl/libisl_per_hw_ver60.a src/intel/isl/libisl_per_hw_ver70.a src/intel/isl/libisl_per_hw_ver75.a src/intel/isl/libisl_per_hw_ver80.a src/intel/isl/libisl_per_hw_ver90.a src/intel/isl/libisl_per_hw_ver110.a src/intel/isl/libisl_per_hw_ver120.a src/intel/isl/libisl_per_hw_ver125.a src/intel/isl/libisl_per_hw_ver200.a src/intel/isl/libisl_tiled_memcpy.a src/intel/isl/libisl_tiled_memcpy_sse41.a src/intel/common/libintel_clflushopt.a src/compiler/nir/libnir.a src/compiler/libcompiler.a src/compiler/spirv/libvtn.a src/compiler/clc/liblibmesaclc.a src/intel/compiler/libintel_compiler.a -Wl,--build-id=sha1 /usr/lib64/libz.so -pthread -lm -fPIC /usr/lib64/libdrm.so /usr/lib/llvm/17/lib64/libclang-cpp.so -L/usr/lib/llvm/17/lib64 -lLLVM-17 /usr/lib/llvm/17/lib64/libLLVMSPIRVLib.so /usr/lib64/libSPIRV-Tools-opt.so /usr/lib64/libSPIRV-Tools.so /usr/lib64/libSPIRV-Tools-link.so -Wl,--end-group
/usr/libexec/gcc/x86_64-pc-linux-gnu/ld: /usr/lib/llvm/17/lib64/libLLVMSPIRVLib.so: undefined reference to `__cxa_call_terminate@CXXABI_1.3.15'
collect2: error: ld returned 1 exit status
```

The build log is from an attempted compilation with the `llvm_targets_SPIRV` USE flag enabled for LLVM (17.0.6), but the same error occurs with that flag disabled.

Reproducible: Always
Comment 1 Alexis 2024-07-19 03:02:53 UTC
Created attachment 897951 [details]
Build log
Comment 2 Alexis 2024-07-19 03:03:18 UTC
Created attachment 897952 [details]
Output of `emerge --info`
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-19 03:17:01 UTC
This is from you downgrading GCC, see https://wiki.gentoo.org/wiki/Upgrading_GCC#Downgrading_GCC.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-19 03:20:42 UTC
ionen rightly points out it's not the usual error from doing that (given it looks like libcxxabi) but i'd still bet on it being the cause unless it's not the same machine you did that on?
Comment 5 Ionen Wolkens gentoo-dev 2024-07-19 03:27:58 UTC
And yes, upon closer look I don't think it is was I thought it was despite the bit more unusual error.

The GCC downgrade being the cause seems likely.
Comment 6 Alexis 2024-07-19 03:34:40 UTC
Ah, i wondered whether that might be the case. (Yes, this is on That Machine.) But i'd forgotten about revdep-rebuild. :-/ Just running that now - 243 packages to rebuild - and will report back on the result. i'll also read that wiki page in full. Thanks!
Comment 7 Alexis 2024-07-20 07:39:51 UTC
The revdep-rebuild indeed fixed the issue. :-) Thanks again!