too long lines were shrinked: [152/3498] /var/tmp/portage/sys-devel/llvm-18.1.5-r1/temp/clang-wrappers/clang -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/sys-devel/llvm-18.1.5-r1/work/llvm_build-abi_x86_64.amd64/lib/Support/BLAKE3 -I/var/tmp/portage/sys-devel/llvm-18.1.5- [153/3498] /var/tmp/portage/sys-devel/llvm-18.1.5-r1/temp/clang-wrappers/clang -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/sys-devel/llvm-18.1.5-r1/work/llvm_build-abi_x86_64.amd64/lib/Support/BLAKE3 -I/var/tmp/portage/sys-devel/llvm-18.1.5- [154/3498] /var/tmp/portage/sys-devel/llvm-18.1.5-r1/temp/clang-wrappers/clang -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/sys-devel/llvm-18.1.5-r1/work/llvm_build-abi_x86_64.amd64/lib/Support/BLAKE3 -I/var/tmp/portage/sys-devel/llvm-18.1.5- [155/3498] /var/tmp/portage/sys-devel/llvm-18.1.5-r1/temp/clang-wrappers/clang -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/sys-devel/llvm-18.1.5-r1/work/llvm_build-abi_x86_64.amd64/lib/Support/BLAKE3 -I/var/tmp/portage/sys-devel/llvm-18.1.5- FAILED: lib/Support/BLAKE3/CMakeFiles/LLVMSupportBlake3.dir/blake3_avx512_x86-64_unix.S.o /var/tmp/portage/sys-devel/llvm-18.1.5-r1/temp/clang-wrappers/clang -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/sys-devel/llvm-18.1.5-r1/work/llvm_build-abi_x86_64.amd64/lib/Support/BLAKE3 -I/var/tmp/portage/sys-devel/llvm-18.1.5-r1/work/llv clang -cc1as: fatal error: error in backend: ZMM registers are not supported without EVEX512 [156/3498] /var/tmp/portage/sys-devel/llvm-18.1.5-r1/temp/clang-wrappers/clang -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/sys-devel/llvm-18.1.5-r1/work/llvm_build-abi_x86_64.amd64/lib/Support/BLAKE3 -I/var/tmp/portage/sys-devel/llvm-18.1.5- [157/3498] /usr/lib/llvm/18/bin/clang++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/sys-devel/llvm-18.1.5-r1/work/llvm_build-abi_x86_64.amd64/lib/Support -I/var/tmp/portage/sys-devel/llvm-18.1.5-r1/work/llvm/lib/Support -I/var/tmp/portage/sy ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 23.0_desktop-20240515-215004 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-14 * clang/llvm (if any): clang version 18.1.5 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.5 Python 3.11.9 Available Ruby profiles: [1] ruby31 (with Rubygems) * Available Rust versions: [1] rust-bin-1.77.1 * The following VMs are available for generation-2: *) Eclipse Temurin JDK 21.0.3_p9 [openjdk-bin-21] Available Java Virtual Machines: [1] openjdk-bin-21 system-vm php cli (if any): go version go1.22.3 linux/amd64 HEAD of ::gentoo commit 408dfda8b9fc4ceaf231f3d7e0565b6ce9d213e2 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Thu May 16 15:04:03 2024 +0000 2024-05-16 15:04:01 UTC emerge -qpvO sys-devel/llvm
Created attachment 893058 [details] emerge-info.txt
Created attachment 893059 [details] emerge-history.txt
Created attachment 893060 [details] environment
Created attachment 893061 [details] etc.clang.tar.xz
Created attachment 893062 [details] etc.portage.tar.xz
Created attachment 893063 [details] qlist-info.txt
Created attachment 893064 [details] sys-devel:llvm-18.1.5-r1:20240516-151454.log
Created attachment 893065 [details] temp.tar.xz
Created attachment 893066 [details] var.tmp.clang.tar.xz
Yea so the funny thing about this is the -r1 is supposed to fix this exact bug but if you're already on the non-r1 you'd be building it with a compiler that's already affected. Add -mevex512 to your CFLAGS for just this package and take it out after. The workaround from other ebuilds is below and should be added to multilib_src_configure(): # Workaround for build failure with clang-18 and -march=native without # avx512. Does not affect e.g. -march=skylake, only native (bug #931623). use amd64 && tc-is-clang && is-flagq -march=native && [[ $(clang-major-version) -ge 18 ]] && tc-cpp-is-true "!defined(__AVX512F__)" ${CXXFLAGS} && append-flags -mevex512
Well, I replaced that image. Thx.
The bug is actually in 18.1.5, the -r1 fixes it Build without -march=native, then rebuild with