-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Build is broken on Apple Silicon #51447
Comments
@sdmaclea Can you take this? I don't have access to any Mac hardware much less any hardware with Apple Silicon. Presumably we could either disable build of the cross-arch variant of crossgen2 when building on actual arm64 apple hardware (which is what I would suggest), or ensure that the x64 native components were built as they are when we build on x64. You may also need to adjust the rules for running crossgen2 in our build so that the crossgen compiler used is the arm64 one, but that shouldn't be difficult either. |
this is known issue till we get the native arm64 sdk enabled for macos arm64 builds. Believe that is waiting on various runtime stability fixes. |
current workaround is to run without crossgen2: |
This is working with macOS 11.3 which just release + updating to global json to the .NET6 preview3 sdk and building natively. I would guess the glbal.json update is partially gated by the monthly infra breaking change cycle (which might want to be shifted for the preview release schedule). |
I am also seeing this on Fedora 32, building on arm64:
This is an arm64 machine, so the x64 binary, if it existed, wouldn't work. |
@omajid do you have a requirement to be able to self-build on arm64 hardware, or is it a nice-to-have? |
@davidwrighton We have shipped .NET Core 3.1 and .NET 5.0 as a part of Fedora on arm64. Fedora doesn't use cross-compilation. All our builds of .NET for arm64 are done on arm64. It's more of a requirement than a nice-to-have (though it isn't urgent for an in-development version of .NET). We are also trying to get this working on RHEL, but there are other issues preventing us, like #43349. RHEL has the same policy of build-on-arm64-for-arm64 instead of cross compilation. |
This looks to be fixed by #51706 . Please let us know if that isn't the case. |
Description
./build.sh fail with error:
Configuration
Apple Mac Mini with M1 chip. macOS 11.2.3 (20D91)
Regression?
Yes
Other information
Looks like it connected with #51349
The text was updated successfully, but these errors were encountered: