Repository navigation
Closed
Labels
arch-wasmWebAssembly architecturearea-Build-mononeeds-further-triageIssue has been initially triaged, but needs deeper consideration or reconsideration
Milestone
Description
Describe the bug
In my docker container, the dotnet publish command fails here:
...
dotnet/sdk#19 22.00 [29/29] System.Private.CoreLib.dll -> System.Private.CoreLib.dll.bc
dotnet/sdk#19 22.07 /usr/share/dotnet/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/6.0.0-rc.1.21451.13/Sdk/WasmApp.Native.targets(394,5): error MSB3073: The command "emcc --version" exited with code 1. [/src/Client/example1.Client.csproj]
------
executor failed running [/bin/sh -c dotnet publish "example1.Server.csproj" -c Release -o /app/publish]: exit code: 1
C:\git\example1>
To Reproduce
Create blazor wasm project with
dotnet new blazorwasm --hosted
-
Add a Dockerfile with the dotnet 6 sdk
- Install the wasm-tools workload
-
Update the Client project file to include:
<RunAOTCompilation>true</RunAOTCompilation>build the image
See this repo: https://github.com/veertien/example-blazor-aot
Exceptions (if any)
error MSB3073: The command "emcc --version" exited with code 1.
Further technical details
docker run mcr.microsoft.com/dotnet/sdk:6.0 dotnet --info
.NET SDK (reflecting any global.json):
Version: 6.0.100-rc.1.21458.32
Commit: d7c22323c4
Runtime Environment:
OS Name: debian
OS Version: 11
OS Platform: Linux
RID: debian.11-x64
Base Path: /usr/share/dotnet/sdk/6.0.100-rc.1.21458.32/
Host (useful for support):
Version: 6.0.0-rc.1.21451.13
Commit: d7619cd4b1
.NET SDKs installed:
6.0.100-rc.1.21458.32 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.0-rc.1.21452.15 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.0-rc.1.21451.13 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Reacted by Olivier Lefebvre, veertien and ymijorski
Metadata
Metadata
Assignees
Labels
arch-wasmWebAssembly architecturearea-Build-mononeeds-further-triageIssue has been initially triaged, but needs deeper consideration or reconsideration
Activity
pranavkm commentedon Oct 11, 2021
FYI @radical
radical commentedon Oct 11, 2021
@veertien Could you please share the binlog? Run the build with
-bladding to the command line, and attach the generatedmsbuild.binlog.veertien commentedon Oct 15, 2021
@radical , attached is the msbuild.binlog you requested.
msbuild.zip
radical commentedon Oct 15, 2021
@veertien thank you for the log! From the log:
Python is not installed, or not available in
$PATH.note to self: fix our targets to better surface the error from
emcc --version.radical commentedon Nov 1, 2021
Installing python, and making sure that it is in
PATHshould fix this issue. Please re-open, if it doesn't.Closing this based on the above, and opened an issue for surfacing the errors to the user - #61067 .