Re: [PATCH] arm64: Disable big endian builds with clang
From: Mark Rutland <mark.rutland@arm.com>
Date: 2019-08-07 13:01:59
On Tue, Aug 06, 2019 at 07:39:18PM +0100, Mark Brown wrote:
Current boot tests with clang built big endian kernels in KernelCI are showing problems with the kernel being unable to interpret big endian userspace. This is a bug and should be fixed but for now let's prevent these kernels being built, we may end up needing to add a version dependency on the compiler anyway. Signed-off-by: Mark Brown <broonie@kernel.org> --- The clang people (CCed) are aware and looking into this.
Judging by the kernel log linked in a reply, this is with: * clang version 8.0.1-svn359952-1~exp1~20190504004501.65 (branches/release_80) Is that the llvm.org binary release, or a custom build of clang? * Linux 5.3.0-rc2-next-20190730 Could we previously build a BE kernel with clang? If so, what's the last working kernel? Thanks, Mark.
quoted hunk ↗ jump to hunk
arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+)diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 990fdcbf05c7..1c32d9889e0f 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig@@ -813,6 +813,7 @@ config ARM64_PA_BITS config CPU_BIG_ENDIAN bool "Build big-endian kernel" + depends on !CC_IS_CLANG help Say Y if you plan on running a kernel in big-endian mode.-- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
_______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel