avr-libc icon indicating copy to clipboard operation
avr-libc copied to clipboard

machine `aarch64-apple' not recognized

Open reznikmm opened this issue 1 year ago • 1 comments

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?

reznikmm avatar Aug 17 '24 19:08 reznikmm

  • First of all, the host is avr: --host=avr because 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.).

sprintersb avatar Aug 17 '24 20:08 sprintersb