[Buildroot] [PATCH 1/2] package/exim: disable valgrind when building with thumb1
From: Bernd Kuhls <hidden>
Date: 2026-09-06 10:53:18
Subsystem:
the rest · Maintainer:
Linus Torvalds
src/valgrind.h contains inline asm not compatible with thumb1 so we disable valgrind support for thumb1. Fixes: https://autobuild.buildroot.org/results/720bfa00ca926a398e901366e7ab20d08cfa9a81/ Inspired by buildroot commit 26013972ce568e55a121c21a55afce45bc0675e9. The oldest build error of this kind dates back to 2022 https://autobuild.buildroot.net/results/85d/85d8e725a31bc1a3c41b2e388a17ff439274d437/ so a backport to LTS branches should be considered. Signed-off-by: Bernd Kuhls <redacted> Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Tested-by: Luca Ceresoli <luca.ceresoli@bootlin.com> --- package/exim/exim.mk | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/package/exim/exim.mk b/package/exim/exim.mk
index 5e9746af4d..482c7ca2c1 100644
--- a/package/exim/exim.mk
+++ b/package/exim/exim.mk@@ -104,6 +104,7 @@ define EXIM_CONFIGURE_TOOLCHAIN $(call exim-config-add,HOSTCFLAGS,$(HOSTCFLAGS)) $(call exim-config-add,EXTRALIBS,$(EXIM_EXTRALIBS)) $(EXIM_FIX_IP_OPTIONS_FOR_MUSL) + $(EXIM_DISABLE_VALGRIND) endef ifneq ($(call qstrip,$(BR2_PACKAGE_EXIM_CUSTOM_CONFIG_FILE)),)
@@ -154,6 +155,13 @@ else ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),) EXIM_CFLAGS = -DNO_EXECINFO endif +# src/valgrind.h contains inline asm not compatible with thumb1 +ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y) +define EXIM_DISABLE_VALGRIND + $(call exim-config-change,NVALGRIND,1) +endef +endif + # We need the host version of macro_predef during the build, before # building it we need to prepare the makefile. define EXIM_BUILD_CMDS
--
2.47.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot