From 508b0d26a288b428b64f70a7217ed6ba10e3fa39 Mon Sep 17 00:00:00 2001 From: Todd Kjos Date: Fri, 31 Jan 2025 17:05:38 +0000 Subject: [PATCH] ANDROID: fix kernelci build-break due to GCC plugin issue For the 32-bit ARM build of imx_v6_v7_defconfig+allmodconfig, GCC plugins don't work properly for the gcc-12 (12.2.0) toolchain used by kernelci. Work around this issue by inhibiting the use of plugins for 32-bit ARM builds. With GCC plugins enabled, 32-bit ARM builds of imx_v6_v7_defconfig+allmodconfig fail with: arm-linux-gnueabihf-ld: arch/arm/boot/compressed/atags_to_fdt.o: in function `atags_to_fdt': atags_to_fdt.c:(.text.atags_to_fdt+0x18): undefined reference to `stackleak_track_stack' Bug: 393580166 Signed-off-by: Todd Kjos Change-Id: Ic67fb5c89614f4dcc656df1da8b70fe1c016c559 --- scripts/gcc-plugins/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/gcc-plugins/Kconfig b/scripts/gcc-plugins/Kconfig index e383cda05367..5a5a29ba8a7a 100644 --- a/scripts/gcc-plugins/Kconfig +++ b/scripts/gcc-plugins/Kconfig @@ -9,6 +9,8 @@ menuconfig GCC_PLUGINS bool "GCC plugins" depends on HAVE_GCC_PLUGINS depends on CC_IS_GCC + # ANDROID: GCC_PLUGINS are broken for 32-bit ARM builds (gcc 12.2.0) + depends on !ARM depends on $(success,test -e $(shell,$(CC) -print-file-name=plugin)/include/plugin-version.h) default y help