Closed prabhatKrMishra closed 3 years ago
Based on the stack trace, this is using clang-r407598
. @pkm774 Can you share which kernel version you're building?
I cherry-picked commits from here for Clang LTO support. https://github.com/mvaisakh/android_kernel_asus_sdm660/tree/clang-LTO Commit start from https://github.com/mvaisakh/android_kernel_asus_sdm660/commit/240802f5fea8aad3019b0ff7d5b54ecfac57715f and end to https://github.com/mvaisakh/android_kernel_asus_sdm660/commit/1382a1bb60d85d41159644eb65a7d3ab914655c2 My kernel version is 4.4.205.
bummer, I can't move issues, but this would be better reported at https://github.com/ClangBuiltLinux/linux/issues.
A few red flags here:
--plugin-opt=O3
; generally the kernel uses -O2
. -O3
just enables more aggressive loop unrolling which can hurt binary size.I suspect the code in question has been removed the upstream linux kernel; the umov w14, v0.4s[0]
looks suspicious but I wasn't able to find it quickly in the kernel sources.
@pkm774 can you please refile this issue in https://github.com/ClangBuiltLinux/linux/issues; it's not specific to the NDK.
it's not specific to the NDK.
The compiler directs folks here for all crashes produced by our compiler (platform too):
PLEASE submit a bug report to https://github.com/android-ndk/ndk/issues and include the crash backtrace.
idk how freeform that config is in the LLVM build, but maybe it could be tweaked to say "$NDK_BUG_URL, $PLATFORM_BUG_URL, $KERNEL_CLANG_BUG_URL, whichever is most appropriate"? (though even better would be loading that from a file so we can customize it for each of our distributions)
this may have been fixed by commit 019cd46984d0 ("crypto: arm64/aes-ce-cipher - move assembler code to .S file") which landed in v4.16-rc1.