From 5cb0258ce4c4a7dccd01836414560191e5416175 Mon Sep 17 00:00:00 2001 From: Justin Traglia <95511699+jtraglia@users.noreply.github.com> Date: Sat, 24 Feb 2024 04:24:47 -0600 Subject: [PATCH] Disable jemalloc when cross-building aarch64 (#6766) --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index eb9d4ed14..0c2aa5a98 100644 --- a/Makefile +++ b/Makefile @@ -85,8 +85,10 @@ op-build-native-%: # No jemalloc on Windows build-x86_64-pc-windows-gnu: FEATURES := $(filter-out jemalloc jemalloc-prof,$(FEATURES)) -# asm keccak optimizations not enabled -build-aarch64-unknown-linux-gnu: FEATURES := $(filter-out asm-keccak,$(FEATURES)) +# Disable asm-keccak optimizations and jemalloc. +# Some aarch64 systems use larger page sizes and jemalloc doesn't play well. +# See: https://github.com/paradigmxyz/reth/issues/6742 +build-aarch64-unknown-linux-gnu: FEATURES := $(filter-out asm-keccak jemalloc jemalloc-prof,$(FEATURES)) # Note: The additional rustc compiler flags are for intrinsics needed by MDBX. # See: https://github.com/cross-rs/cross/wiki/FAQ#undefined-reference-with-build-std