From c0589b6c5e7558fafdb443372f6a7466072736f4 Mon Sep 17 00:00:00 2001 From: Timothy Hofland Date: Sun, 15 Mar 2026 08:59:42 +0100 Subject: [PATCH] fix: dial back optimization to -O2 and disable VRP pass to bypass internal compiler error on ARM --- scripts/setup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index 656bd96..4dcad20 100644 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -294,7 +294,8 @@ echo "Cleaning old objects..." sudo -u "$REAL_USER" make clean echo "Starting compilation (Forcing C++11 for Symbol Compatibility)..." -GLOBAL_FLAGS="-Wno-error -Wno-reorder -Wno-sign-compare -Wno-delete-non-virtual-dtor -std=c++11" +# Use -O2 and -fno-tree-vrp to prevent Internal Compiler Errors (ICE) on ARM +GLOBAL_FLAGS="-Wno-error -Wno-reorder -Wno-sign-compare -Wno-delete-non-virtual-dtor -std=c++11 -O2 -fno-tree-vrp" sudo -u "$REAL_USER" make -j1 PLATFORM_CFLAGS="$GLOBAL_FLAGS" USER_CFLAGS="$GLOBAL_FLAGS" USER_CPPFLAGS="-std=c++11" cp bin/example_basic /usr/local/bin/ofxPiMapper chmod +x /usr/local/bin/ofxPiMapper