The port overrides framework option CPUTYPE which isn't desirable, having a quick look it seems like you should disable MI_OPT_ARCH and enable MI_OPT_SIMD with C/CXXFLAGS for it to work as expected. Another option would be removing MI_OPT_ARCH_FLAGS in CMakeLists.txt
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=8ecb76bb8a7bcfe804ae528045db2cdefb0e2d63 commit 8ecb76bb8a7bcfe804ae528045db2cdefb0e2d63 Author: Emanuel Haupt <ehaupt@FreeBSD.org> AuthorDate: 2025-03-29 13:27:35 +0000 Commit: Emanuel Haupt <ehaupt@FreeBSD.org> CommitDate: 2025-03-29 13:27:35 +0000 devel/mimalloc: Update to 3.0.3 * Update to 3.0.3 * Disable optimizations [1] PR: 285593 [1] devel/mimalloc/Makefile | 2 +- devel/mimalloc/distinfo | 6 +-- devel/mimalloc/files/patch-CMakeLists.txt | 62 ++++++++++++++++++---- .../files/patch-src_prim_unix_prim.c (gone) | 12 ----- devel/mimalloc/pkg-plist | 1 + 5 files changed, 58 insertions(+), 25 deletions(-)
Committed, together with an update. Thanks.