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

CMake Error: 'arm64' is an unsupported architecture #108987

Open
successgo opened this issue Oct 17, 2024 · 4 comments
Open

CMake Error: 'arm64' is an unsupported architecture #108987

successgo opened this issue Oct 17, 2024 · 4 comments
Labels
area-Infrastructure-coreclr untriaged New issue has not been triaged by the area owner

Comments

@successgo
Copy link

Hi friends,

I'm trying to open dotnet runtime coreclr directory with CLion, but I got the below error, how to fix this.

/Applications/CLion.app/Contents/bin/cmake/mac/aarch64/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=/Applications/CLion.app/Contents/bin/ninja/mac/aarch64/ninja -G Ninja -S /Users/gdc/Sandbox/dotnet-runtime-9.0.0-rc.2.24473.5/src/coreclr -B /Users/gdc/Sandbox/dotnet-runtime-9.0.0-rc.2.24473.5/src/coreclr/cmake-build-debug
-- The C compiler identification is AppleClang 16.0.0.16000026
-- The CXX compiler identification is AppleClang 16.0.0.16000026
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /Users/gdc/Sandbox/dotnet-runtime-9.0.0-rc.2.24473.5/eng/native/functions.cmake:7 (message):
  'arm64' is an unsupported architecture.
Call Stack (most recent call first):
  /Users/gdc/Sandbox/dotnet-runtime-9.0.0-rc.2.24473.5/eng/native/configureplatform.cmake:112 (clr_unknown_arch)
  /Users/gdc/Sandbox/dotnet-runtime-9.0.0-rc.2.24473.5/eng/native/configuretools.cmake:1 (include)
  /Users/gdc/Sandbox/dotnet-runtime-9.0.0-rc.2.24473.5/eng/native/configurecompiler.cmake:5 (include)
  CMakeLists.txt:7 (include)


-- Configuring incomplete, errors occurred!

[Finished]

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Oct 17, 2024
Copy link
Contributor

Tagging subscribers to this area: @hoyosjs
See info in area-owners.md if you want to be subscribed.

@huoyaoyuan
Copy link
Member

The error message is misleading. The real reason is necessary arguments aren't passed to cmake.

The IDE support of CMakePresets.json was done by me, and I only added Windows.

@successgo
Copy link
Author

successgo commented Oct 18, 2024

Hi @huoyaoyuan I appreciate your hard work.

Sorry I don't know much about CMake and dotnet runtime, can I ask you or someone else to add IDE support for macOS, and linux maybe ?

@huoyaoyuan
Copy link
Member

I can try to add similar configurations when I'm available, but it requires other folks to test it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Infrastructure-coreclr untriaged New issue has not been triaged by the area owner
Projects
Status: No status
Development

No branches or pull requests

2 participants