Skip to content

arm-none-eabi-gcc-10.3.1: error: arm64 #32

Description

@jeanguerin

Hello

Using you "brew install arm-none-eabi-gcc" command I just installed your toolchain.
I am running a MacOS Monterey; with Apple M1 chip.
Running cmake command I have this error :

Run Build Command(s):/usr/bin/make -f Makefile cmTC_972b1/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_972b1.dir/build.make CMakeFiles/cmTC_972b1.dir/build
    Building C object CMakeFiles/cmTC_972b1.dir/testCCompiler.c.o
    /opt/homebrew/bin/arm-none-eabi-gcc-10.3.1   -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk -o CMakeFiles/cmTC_972b1.dir/testCCompiler.c.o -c /Users/XXX/XXX/XXX/XXX/build/CMakeFiles/CMakeTmp/testCCompiler.c
    arm-none-eabi-gcc-10.3.1: error: **arm64: No such file or directory**
    arm-none-eabi-gcc-10.3.1: error: **unrecognized command-line option '-arch'; did you mean '-march='?**
    make[1]: *** [CMakeFiles/cmTC_972b1.dir/testCCompiler.c.o] Error 1
    make: *** [cmTC_972b1/fast] Error 2
    
  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:3 (project)

Is there a specific issue with Apple M1 Chip?

Sincerely yours,

Jean

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions