-
Notifications
You must be signed in to change notification settings - Fork 14
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
clang ias: unsupported argument '-mimplicit-it=always' to option 'Wa,' #1270
Comments
I tried removing the option, but ran into the old problem that implicit-it is absolutely required for the kernel sources. I had tried converting the sources to explicit IT instructions in the past, but eventually given up on that because there was too much to change. I assume that clang does implement implicit-it, because otherwise it would also break on a lot of user space code with inline assembly, but I could not find the correct replacement command line option. |
I found that replacing "-Wa,-mimplicit-it=always" with "-mllvm --arm-implicit-it=always" gets it to mostly build:
but this runs into a number of new issues. Attaching a log from an allmodconfig build with CONFIG_ARCH_MULTI_V6=n and CONFIG_THUMB2_KERNEL=y Some of the interesting ones:
I fixed the curve25519 crypto code using
but I don't know what to do about the others |
Is #1271 . For the
also looks like #1271 / https://reviews.llvm.org/D95586. |
Similiar to D95872, this flag can be set for the assembler directly. Move validation code into a reusable helper function. Link: https://bugs.llvm.org/show_bug.cgi?id=49023 Link: ClangBuiltLinux/linux#1270 Reported-by: Arnd Bergmann <[email protected]> Signed-off-by: Nick Desaulniers <[email protected]> Reviewed By: DavidSpickett Differential Revision: https://reviews.llvm.org/D96285
llvm-13 will be the minimum for thumb2 LLVM_IAS=1 support. We could also just remove these builds. Link: ClangBuiltLinux/linux#1270 Signed-off-by: Nick Desaulniers <[email protected]>
Similiar to D95872, this flag can be set for the assembler directly. Move validation code into a reusable helper function. Link: https://bugs.llvm.org/show_bug.cgi?id=49023 Link: ClangBuiltLinux/linux#1270 Reported-by: Arnd Bergmann <[email protected]> Signed-off-by: Nick Desaulniers <[email protected]> Reviewed By: DavidSpickett Differential Revision: https://reviews.llvm.org/D96285
Kernel builds with CONFIG_THUMB2_KERNEL and integrated assembler fail for me with
clang: error: unsupported argument '-mimplicit-it=always' to option 'Wa,'
The text was updated successfully, but these errors were encountered: