-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Blazor AOT compilation fails on Emscripten target when run in containers #54342
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsDescribe the bugWhen trying to build a Blazor Wasm client project in a container, the AOT step fails on an To ReproduceRepo: https://github.com/timheuer/PictureFixer/ (docker branch) Ensure Docker Desktop installed Exceptions (if any)All steps succeed until the
Further technical details
|
Now that Preview 5 is public, removing the nightly SDK and using this docker file:
I get a different error:
|
note to self: I hit this |
Just to be clear this is the SDK failing to update the workload manifest for microsoft.net.sdk.tvos and then failing to roll back as well it has nothing to to with wasm
means it updated the wasm aot workload manifest correctly then it failed updating the the next manifest. |
Cool, seems like that one is known...the original fail on Emscripten is the bigger concern here. |
After email discussion, I've filed a new SDK issue for the workload installation failure we're seeing here: dotnet/sdk#18450 |
I'm fairly sure the emscripten failure there was a preview4 linux problem that we fixed. Unfortunately testing that is difficult because nightlies of the SDK are even more broken with workloads
|
@lewing if you add |
@timheuer yeah the cross-link failure is that the manifest update is trying to move across mounts rather than copy+remove it shouldn't be difficult to solve now that it is identified. The larger issue is that there are are many moving pieces around workloads that are under active development and something going wrong at almost any step can break things in hard to understand ways. |
@lewing is there anything I can provide more for this emscripten one here? this doesn't feel like a workload one, but rather a fail on a target based on me looking. Happy to provide verbose logs and such, but it feels clear where it is failing...just not sure how to determine the why. |
@timheuer I'm fairly sure the problem is that your container doesn't contain python and we don't include python on linux. We can add a descriptive error in this case. If you want to upload the binlog we can double check. |
Interesting @lewing! How is this working locally for me on Windows when I don't have Python either? Modifying the Dockerfile to add:
Gets me past the
Is this due to the other workload issues you note? |
@timheuer what was the output of |
All success, no errors...the detail log goes away from the output so I can't copy it here, but no errors and everything was installing. |
nope #54651 |
@timheuer Can you try with preview6? |
@radical I tried with using all the public preview6 tags/images and it all works using this docker file (below all this) key points are
without the
dockerfile:
|
Oh, looks like the fix wasn't in preview6. But is in the latest builds (rc1). |
I tried the dockerfile, and it downloads IIUC, it's dotnet/sdk#19080, and dotnet/aspnetcore#34571
|
Update the asset definitions as described dotnet/aspnetcore#34577 |
Based on @javiercn's suggestion, I changed: <StaticWebAsset Include="@(JavaScriptModules->'%(FullPath)')"
SourceType="Discovered" SourceId="$(PackageId)" RelativePath="%(RelativePath)"
AssetKind="All"
AssetMode="All"
AssetRole="Primary"
OriginalItemSpec="@(JavaScriptModules->'%(Identity)'))"
BasePath="$(StaticWebAssetBasePath)" ContentRoot="$(MSBuildProjectDirectory)" /> And I tried the dockerfile, which now downloads @timheuer Could you please confirm that this works for you now? |
No still failing...this docker file:
and results in this error:
Looks like I'm hitting #55935 but I've added |
the workload name changed in preview7 use 'wasm-tools' now. |
Okay with that knowledge I'm able to complete this build now cleanly even without |
Based on this, closing the issue. |
Describe the bug
When trying to build a Blazor Wasm client project in a container, the AOT step fails on an
emcc
exit code. These same steps work fine in a CI pipeline (GitHub Actions)To Reproduce
Repo: https://github.com/timheuer/PictureFixer/ (docker branch)
Dockerfile: https://github.com/timheuer/PictureFixer/blob/docker/PictureFixer/Dockerfile
Ensure Docker Desktop installed
run
docker build .
from within the PictureFixer/PictureFixer locationExceptions (if any)
All steps succeed until the
dotnet publish
phase which emits:Further technical details
The text was updated successfully, but these errors were encountered: