-
Notifications
You must be signed in to change notification settings - Fork 133
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
[VMR] Add cross build support #3671
Comments
FYI @Swapnali911 |
I got this working today, with two patches on top of those mentioned in previous issues, plus passing the --use-mono-runtime flag to source-build. |
OK, so, status update: The full patch I'm applying looks like this:
The csproj changes are needed for restore to work on runtime. I'm building with There is obviously a bunch of architecture confusion still in the build:
Also, the build only works with Mono runtime, because one of the things the CoreCLR build tries to build is a component called But... it seems functional for a proof-of-concept. I also tested the patch above on Mac, and got an osx-arm64 build when using |
@directhex do you have any suggestions for the top level switches? |
Probably generate the |
@directhex what do you think of PR'ing this patch and put it under the |
Is that the flag we decided on? I saw there was ongoing discussion on Teams |
We'll talk a little more just to make sure everyone agrees. I can't see it changing significantly. |
This comment was marked as duplicate.
This comment was marked as duplicate.
Since there was no pushback after our sync, let's roll with |
Hi I have tried cross build for ppc64le , but currently failing
Patch : 3671.patch Steps
|
Above error resolved for runtime after clang version is upgraded to clang-16, runtime build is successful [14:43:33.25] Building 'aspnetcore' Error : ./artifacts/obj/x64/Release/blob-feed/packages/Microsoft.NETCore.App.Host.linux-ppc64le.8.0.0-rc.2.23475.17.nupkg is available but ASP.NET is looking for Microsoft.NETCore.App.Host.linux-x64 |
@directhex Is this work largely complete? Could this be closed out? What's left? |
IMHO the broader "add support" issue is done. Any lingering bugs with
the cross build (e.g. incorrect artifact or folder names used during the
build) should be filed and fixed as distinct issues rather than keeping
this open.
|
HelloWorld program run is failing on ppc64le with tarball generated by cross building dotnet/dotnet repo |
@directhex - since the last update is 2 weeks ago, could you please share the status? Are we on track to get this finished by 14 Feb? Cheers! |
I think this can be closed. We support cross-building as a general concept, and have it working in CI. |
Today, the VMR is set up to build for linux-x64. In order to build all supported .NET configurations within the VMR, we need to have the ability to target os/architectures that are different from the build host.
T-Shirt Size: Large
The text was updated successfully, but these errors were encountered: