Can you please generate binary file for ARM (Raspberry pi 3B) not ARM64?

Viewed 107

I tried to do cross platform build in macOS, but failed.

% GOOS=linux GOARCH=arm make generate
fork/exec /var/folders/cr/_sc_r8bs0wl6wx4r4q4_jg1m0000gn/T/go-build3349446480/b001/exe/wire: exec format error
cmd/wire_gen.go:25: running "go": exit status 1
make: *** [generate] Error 1
1 Answers

I tried to cross-compile on MacOS. Maybe wire doesn't support arm, just build it directly, no need to generate.

GOOS=linux GOARCH=arm go build -o answer ./cmd/answer
file answer
answer: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, Go BuildID=0QZokWCbPWft_SWioRkr/bD3pznpbFH6hGtb30xKZ/VSTtNyajKFGTFWtyLf_b/Kvd8D2Gan-ehr3mN-Rcz, with debug_info, not stripped