-
Notifications
You must be signed in to change notification settings - Fork 200
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
[NativeAOT-LLVM] Publishing Hello World for WebAssembly target on Windows arm64 fails #2121
Comments
This is same problem as #2119 . The project is not publishing Windows Arm64 and Apple M1 packages yet. |
... OK, so I am running out of machines now ... 😅 |
This might be easier than MacOS. If you want to get the prerequisites and try
could start from there? |
You may be able to work around this by installing x64 SDK on Arm64 machine, and use the existing x64 package. dotnet/sdk#22380 has more details about this config. |
OK.
And changed the package back to: Now, when I run the
Maybe I am still missing a piece...? Thanks! |
What if you force it with <OSHostArch>$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture.ToString().ToLowerInvariant)</OSHostArch>
<!-- OSArchitecture does not report the true OS architecture for x86 and x64 processes running on Windows ARM64. -->
<!-- The following condition checks those cases. -->
<OSHostArch Condition="$([MSBuild]::IsOSPlatform('Windows')) and
$([System.Environment]::GetEnvironmentVariable('PROCESSOR_ARCHITECTURE', EnvironmentVariableTarget.Machine)) == 'ARM64'">arm64</OSHostArch> |
We agreed that this is not the expected behavior. dotnet/runtime#79253 tracks fixing it. |
This brings this error:
|
This is the package publish failing problem. The last PR that was merged should fix it, but we'll have to wait a few hours to be sure. |
⏱️... |
Can you see whether the build and publishing succeeded now @yowl ? |
@ChristianWeyer You can check at https://dev.azure.com/dnceng/public/_artifacts/feed/dotnet-experimental - but there is no new package yet. @jkotas is helping out a lot with getting it working, hang in there! |
@ChristianWeyer tada: |
:-) Now we have:
|
The host runtime package doesn't have the necessary Jit. This is quite odd; building the package locally puts it there... |
... how could this be solved? |
With more I think I see what is going on. The runtime package on our hands is the one published by the This is a bit tricky. The way this works, we need to publish two runtime packages: the host one and the One idea could be to build the host package as part of @yowl thoughts? (Edit: I will be offline for the next 10+ hours) |
My first thought is how I manage to so completely break things from one merge to the next .
Sent from Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: SingleAccretion ***@***.***>
Sent: Saturday, December 17, 2022 5:06:13 PM
To: dotnet/runtimelab ***@***.***>
Cc: Scott Waye ***@***.***>; Mention ***@***.***>
Subject: Re: [dotnet/runtimelab] [NativeAOT-LLVM] Publishing Hello World for WebAssembly target on Windows arm64 fails (Issue #2121)
With more .yaml fixes, as all things should be.
I think I see what is going on. The runtime package on our hands is the one published by the not for Wasm configuration, so that is why it doesn't have the required cross-targeting Jit.
This is a bit tricky. The way this works, we need to publish two runtime packages: the host one and the WASM one. The WASM one is currently published by the Browser_wasm_win configuration. The host one - by the corresponding host configuration.
One idea could be to build the host package as part of Browser_wasm_win as well. It would be consistent with how the rest of the build is set up (it first builds the WASM part, then the host part). But then we would need to disable the building of host packages from the host configuration (otherwise they'd collide).
@yowl<https://github.com/yowl> thoughts?
—
Reply to this email directly, view it on GitHub<#2121 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAUYCKPTJUTDYNME5J2ESDTWNY2NLANCNFSM6AAAAAATA74734>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I went ahead with the proposed fix in #2133. |
I hit the same issue even on x64:
|
Please try with the latest packages. |
With the latest packages (7.0.0-dev) it can be published, but the |
I can confirm all of this. |
publish is now copying the wasm and js with the latest packages |
I'm also running into the issue on linux-x64 using
|
Unfortunately, we do not currently support compiling on not-Windows. It would require some (believed to be significant) work to make CoreCLR+LLVM build work there (see #1797). |
When trying to publish the Hello World project (https://github.com/dotnet/runtimelab/tree/feature/NativeAOT-LLVM/samples/HelloWorld) for WebAssembly target on a Windows ARM machine, with this command:
I get this error:
Did anyone ever see this?
Thanks!
The text was updated successfully, but these errors were encountered: