arduino/toolchain-avr

Cannot build on M2 Macbook

realhackcraft opened this issue · 3 comments

I could run ./tools.bash
when I run ./binutils.build.bash afterwards, it printed

clang: error: unsupported option '-print-multi-os-directory'
clang: error: no input files
clang: error: unsupported option '-print-multi-os-directory'
clang: error: no input files
clang: error: unsupported option '-print-multi-os-directory'
clang: error: no input files
clang: error: unsupported option '-print-multi-os-directory'
clang: error: no input files
clang: error: unsupported option '-print-multi-os-directory'
clang: error: no input files
make[3]: Nothing to be done for `install'.
make[1]: Nothing to be done for `install-target'.

im not sure if that's intended, but it exited with code 0, so i assume its fine.

when i run ./gcc.build.bash, it exits with a none-zero code and outputed the following

configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
make: *** [all] Error 2

The exit code was 130

checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc option to accept ISO C99... none needed
checking for gcc option to accept ISO Standard C... (cached) none needed
checking how to run the C preprocessor... gcc -E
checking build system compiler gcc... config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
no
configure: error: Specified CC_FOR_BUILD doesn't seem to work
config.status: executing depfiles commands
config.status: executing libtool commands
make[1]: *** [configure-gmp] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2

i got this new error

VERSIONS

GCC: 7.3.0
AVR: 3.6.1
BUILD: arduino7
AUTOCONF: 2.64
AUTOMAKE: 1.11.1
GMP: 5.0.2
MPFR: 3.1.0
MPC: 0.9