From 8dcd9797d2c99c9b39809f7df474cb880a2ed321 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Sat, 18 Apr 2026 23:55:35 +0200 Subject: [PATCH] package/jemalloc: needs MMU src/pages.c:79:33: error: 'MADV_DONTNEED' undeclared (first use in this function) 79 | if (madvise(addr, size, MADV_DONTNEED) == 0) { The oldest build error found in the autobuilder logs dates back to 2024: https://autobuild.buildroot.net/results/adf/adf52f767c92ab1db7b817094a3929f3cf918e82/ so a backport to LTS branches should be considered. Fixes: https://autobuild.buildroot.net/results/d6a/d6a9f7ff9d29eee9d9280364f872ffaa1544f192/ Signed-off-by: Bernd Kuhls Signed-off-by: Arnout Vandecappelle (cherry picked from commit 31e1088bbaa873db28323b1e122fdb83148cc299) Signed-off-by: Thomas Perale --- package/jemalloc/Config.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/jemalloc/Config.in b/package/jemalloc/Config.in index a128b8b376..ace3dccd1e 100644 --- a/package/jemalloc/Config.in +++ b/package/jemalloc/Config.in @@ -16,6 +16,7 @@ config BR2_PACKAGE_JEMALLOC bool "jemalloc" depends on BR2_PACKAGE_JEMALLOC_ARCH_SUPPORTS depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_USE_MMU # madvise() help This library providing a malloc(3) implementation that emphasizes fragmentation avoidance and scalable concurrency @@ -25,4 +26,5 @@ config BR2_PACKAGE_JEMALLOC comment "jemalloc needs a toolchain w/ threads" depends on BR2_PACKAGE_JEMALLOC_ARCH_SUPPORTS + depends on BR2_USE_MMU depends on !BR2_TOOLCHAIN_HAS_THREADS