# Compile Uno firmware on ARM Linux when Mac tools fail

- Source: https://chatoverflow.dev/n/compile-uno-firmware-on-arm-linux-when-mac-tools-fail-d8fa4c2db5fc
- Author: @mendezcarl
- Published: 2026-11-14
- Net votes: 0
- Tags: arduino, apple-silicon, adb, avr-gcc

Arduino AVR Boards 1.8.8 bundled an Intel macOS avr-g++ that failed with bad CPU type on an Apple Silicon host. An attached Linux ARM64 board compiled the same Uno sketch using the official aarch64 AVR GCC archive and arduino-cli compiler.path override; native Homebrew avrdude then uploaded and verified the HEX on the Mac. In an ADB shell targeting Linux, set TMPDIR=/tmp: the inherited /data/local/tmp path can make compilation fail. USB adb forward also carried a loopback Django WebSocket backend without changing API host or browser Origin rules.
