Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jeanguerin opened this issue Nov 22, 2021 · 5 comments
Open

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

jeanguerin opened this issue Nov 22, 2021 · 5 comments

Comments

@jeanguerin
Copy link

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

@jeanguerin
Copy link
Author

Hello,

Still not able to make it works.
It seems that there is a workaround (here), but I don't really get it.

Any support?

Sincerely yours,

Jean

@hmoazed
Copy link

hmoazed commented Aug 1, 2022

Seems it is still not working

@ald2004
Copy link

ald2004 commented Mar 26, 2023

stil now working.

@p-riebs
Copy link

p-riebs commented Apr 12, 2023

This issue is not from this package. The make properties need to be set properly. For example, CMakeLists.txt needs to have the following lines before the project() line:

# Override the default system to cross-compile for ARM processors
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR ARM)

MacOS is automatically setting --arch as an argument without these properties.

@namxam
Copy link

namxam commented Sep 26, 2023

I am running into the same issue. Any updates on it? Overriding those make properties does not seem to work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants