From 9d5cc54cdc083c77dac0058576d0b109206a4b3f Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Wed, 27 Sep 2023 09:26:58 +1000 Subject: [PATCH] Fix armv7 illegal instruction Testing indicated that the arm-linux-gnueabihf-gcc compiler was emitting a binary that used thumb2 directives that are illegal on raspberry pi. Using the arm-linux-gnueabi-gcc compiler appears to fix the issue. Added march directive to target v7. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0f6a43cdf..4058ecf7b 100644 --- a/Makefile +++ b/Makefile @@ -238,7 +238,7 @@ cross-compile-linux-arm64v8: build cross-compile-linux-arm32v7: export GOOS := linux cross-compile-linux-arm32v7: export GOARCH := arm cross-compile-linux-arm32v7: export GOARM := 7 -cross-compile-linux-arm32v7: export CC := arm-linux-gnueabihf-gcc +cross-compile-linux-arm32v7: export CC := arm-linux-gnueabi-gcc -march=armv7-a cross-compile-linux-arm32v7: STASH_OUTPUT := -o dist/stash-linux-arm32v7 cross-compile-linux-arm32v7: PHASHER_OUTPUT := -o dist/phasher-linux-arm32v7 cross-compile-linux-arm32v7: flags-release