From 707a7026fcb906fed9b5b959e282c294afe2eb0e Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Sun, 6 Sep 2026 12:53:08 +0200 Subject: [PATCH] package/exim: disable valgrind when building with thumb1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Luca Ceresoli Tested-by: Luca Ceresoli Signed-off-by: Thomas Petazzoni (cherry picked from commit 6c4abe552f34bbbaac9139a0f5ca57de10d1cbcc) Signed-off-by: Raphaël Mélotte --- 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