You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ILCompiler.ReadyToRun -> /Users/mfilippov/GitHub/runtime/artifacts/bin/ILCompiler.ReadyToRun/arm64/Debug/ILCompiler.ReadyToRun.dll
crossgen2 -> /Users/mfilippov/GitHub/runtime/artifacts/bin/coreclr/OSX.arm64.Debug/crossgen2/crossgen2.dll
/Users/mfilippov/GitHub/runtime/.dotnet/sdk/6.0.100-preview.2.21155.3/Microsoft.Common.CurrentVersion.targets(4941,5): error MSB3030: Could not copy the file "/Users/mfilippov/GitHub/runtime/artifacts/bin/coreclr/OSX.arm64.Debug/x64/libjitinterface_x64.dylib" because it was not found. [/Users/mfilippov/GitHub/runtime/src/coreclr/tools/aot/crossgen2/crossgen2_crossarch.csproj]
Build FAILED.
/Users/mfilippov/GitHub/runtime/.dotnet/sdk/6.0.100-preview.2.21155.3/Microsoft.Common.CurrentVersion.targets(4941,5): error MSB3030: Could not copy the file "/Users/mfilippov/GitHub/runtime/artifacts/bin/coreclr/OSX.arm64.Debug/x64/libjitinterface_x64.dylib" because it was not found. [/Users/mfilippov/GitHub/runtime/src/coreclr/tools/aot/crossgen2/crossgen2_crossarch.csproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:03:18.49
Build failed with exit code 1. Check errors above.
@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 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:
crossgen2 -> /home/tester/runtime/artifacts/bin/coreclr/Linux.arm64.Release/crossgen2/crossgen2.dll
/home/tester/runtime/.dotnet/sdk/6.0.100-preview.2.21155.3/Microsoft.Common.CurrentVersion.targets(4941,5): error MSB3030: Could not copy the file "/home/tester/runtime/artifacts/bin/coreclr/Linux.arm64.Release/x64/libjitinterface_x64.so" because it was not found. [/home/tester/runtime/src/coreclr/tools/aot/crossgen2/crossgen2_crossarch.csproj]
This is an arm64 machine, so the x64 binary, if it existed, wouldn't work.
@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.
Activity
danmoseley commentedon Apr 18, 2021
@davidwrighton @sdmaclea
davidwrighton commentedon Apr 19, 2021
@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.
mangod9 commentedon Apr 19, 2021
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.
mangod9 commentedon Apr 19, 2021
current workaround is to run without crossgen2:
./build.sh /p:UseCrossgen2=falsesdmaclea commentedon Apr 21, 2021
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).
omajid commentedon Apr 22, 2021
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.
davidwrighton commentedon Apr 22, 2021
@omajid do you have a requirement to be able to self-build on arm64 hardware, or is it a nice-to-have?
omajid commentedon Apr 22, 2021
@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.
davidwrighton commentedon Apr 23, 2021
This looks to be fixed by #51706 . Please let us know if that isn't the case.