-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Build failure with -march=native on Intel Core i5 13600KF (error in backend: ZMM registers are not supported without EVEX512) #91076
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
CC @phoebewang |
@llvm/issue-subscribers-backend-x86 Author: Kostadin (kostadinsh)
LLVM fails to build when using `-march=native` on an Intel Core i5 13600KF, reproducible both on master at https://github.com/llvm/llvm-project/commit/cb015b9ec9446b3a1303980c095fa442d5e46fbf and version 18.1.5
Output from `echo | clang -E - -march=native -###
|
I think the error is expected. Using I think it doesn't make sense to compile |
the -mavx512vl flag wasn't added by me tho. It was added by the build system somehow. |
Same for me, i have no idea why clang trying to compile avx512 file, but in fact - clang is trying to use -mavx512vl specifically for blake3_avx512_x86-64_unix.S.o |
I'm not familar with cmake settings. Maybe file another issue to cmake? |
@phoebewang Let me describe the situation when such problems appear. First, we have some libraries/applications use runtime cpu dispatching -- essentially building some code with different architecture flags and then selecting between implementations in runtime by querying cpuid. Build systems for such projects are intentionally configured to inject additional flags during the build -- flags like
Well, it might as well be when we have a single party, but in this case there are two parties and intentions of both of them are somewhat reasonable. Then we have a question regarding consistency.
It appears to me that it would be better either to explicitly disallow usage of |
…et doesn't support AVX512 Users want `-march=sandybridge -mavx512f -mavx512vl` behaves the same as `-march=native -mavx512f -mavx512vl` on a sandybridge target. Fixes: llvm#91076
@llvm/issue-subscribers-clang-driver Author: Kostadin (kostadinsh)
LLVM fails to build when using `-march=native` on an Intel Core i5 13600KF, reproducible both on master at https://github.com/llvm/llvm-project/commit/cb015b9ec9446b3a1303980c095fa442d5e46fbf and version 18.1.5
Output from `echo | clang -E - -march=native -###
|
Makes sense to me. Created #91694 for this, PTAL, thanks! |
I also hit this issue and submitted a bug report for it to Gentoo's Bugzilla instance; that's https://bugs.gentoo.org/931656. |
LLVM fails to build when using
-march=native
on an Intel Core i5 13600KF, reproducible both on master at cb015b9 and version 18.1.5Output from `echo | clang -E - -march=native -###
complete build log from portage
The text was updated successfully, but these errors were encountered: