avr-libc
avr-libc copied to clipboard
machine `aarch64-apple' not recognized
Hello! I'm trying to build avr-libc on Mac OS X with GCC 14.1. The build fails with error:
$ cd /Users/runner/work/GNAT-FSF-builds/GNAT-FSF-builds/sbx/avr-elf-darwin/avrlibc/build
$ /bin/sh ../src/configure --host=avr --prefix=/Users/runner/work/GNAT-FSF-builds/GNAT-FSF-builds/sbx/avr-elf-darwin/avrlibc/install --target=avr --build=aarch64-apple-darwin23.6.0
checking build system type... Invalid configuration `aarch64-apple-darwin23.6.0': machine `aarch64-apple' not recognized
How to fix this?
-
First of all, the host is avr:
--host=avrbecause AVR-LibC's code is supposed to run on AVR. -
No target specification is required.
-
What happens when you just don't specify
--build? Or maybe--build=`../src/config.guess`? The build system type doesn't actually matter much; you can build AVR-LibC on Linux and use the so built libc on Windows; all what's required are the GNU tools on build (and shell, make etc.).