Summary: | sys-devel/llvm-18.1.5-r1 - clang -cc1as: fatal error: error in backend: ZMM registers are not supported without EVEX512 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | LLVM support project <llvm> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | 2073201758GD, joe, mike, toralf |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-info.txt
emerge-history.txt environment etc.clang.tar.xz etc.portage.tar.xz qlist-info.txt sys-devel:llvm-18.1.5-r1:20240516-151454.log temp.tar.xz var.tmp.clang.tar.xz |
Description
Toralf Förster
2024-05-16 16:32:47 UTC
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 |