Skip to content
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

[wasm] Blazor project failing to publish on windows due to a unicode character in the path #87877

Closed
radical opened this issue Jun 21, 2023 · 3 comments
Labels
Milestone

Comments

@radical
Copy link
Member

radical commented Jun 21, 2023

Wasm.Build.Tests.Blazor.BuildPublishTests.WithDllImportInMainAssembly:

          Expected 0 exit code but got 1: C:\\helix\\work\\workitem\\e\\dotnet-latest\\dotnet.exe publish ...
          
          at Wasm.Build.Tests.CommandResult.EnsureExitCode(Int32 expectedExitCode, String messagePrefix, Boolean suppressOutput) in /_/src/mono/wasm/Wasm.Build.Tests/Common/CommandResult.cs:line 44
          at Wasm.Build.Tests.CommandResult.EnsureSuccessful(String messagePrefix, Boolean suppressOutput) in /_/src/mono/wasm/Wasm.Build.Tests/Common/CommandResult.cs:line 28
          at Wasm.Build.Tests.BuildTestBase.BlazorBuildInternal(String id, String config, Boolean publish, Boolean setWasmDevel, String[] extraArgs) in /_/src/mono/wasm/Wasm.Build.Tests/BuildTestBase.cs:line 610
          at Wasm.Build.Tests.BuildTestBase.BlazorPublish(BlazorBuildOptions options, String[] extraArgs) in /_/src/mono/wasm/Wasm.Build.Tests/BuildTestBase.cs:line 564
          at Wasm.Build.Tests.Blazor.BuildPublishTests.WithDllImportInMainAssembly(String config, Boolean build, Boolean publish) in /_/src/mono/wasm/Wasm.Build.Tests/Blazor/BuildPublishTests.cs:line 163
        --- End of stack trace from previous location ---
Fatal: Failed opening 'C:\helix\work\workitem\e\wbt\blz_dllimp_Debug_?publish\obj\Debug\net8.0\wasm\for-publish\dotnet.native.wasm' (TaskId:269)

emcc : error : 'C:\helix\work\workitem\e\dotnet-latest\packs\Microsoft.NET.Runtime.Emscripten.3.1.34.Sdk.win-x64\8.0.0-preview.6.23312.1\tools\bin\wasm-opt --post-emscripten -Oz --low-memory-unused --zero-filled-
memory --pass-arg=directize-initial-contents-immutable --strip-producers C:\helix\work\workitem\e\wbt\blz_dllimp_Debug_\u7149publish\obj\Debug\net8.0\wasm\for-publish\dotnet.native.wasm -o C:\helix\work\workitem\e\wbt\blz_dllimp_De
bug_\u7149publish\obj\Debug\net8.0\wasm\for-publish\dotnet.native.wasm -g --mvp-features --enable-exception-handling --enable-mutable-globals --enable-sign-ext --enable-simd' failed (returned 1) [C:\helix\work\workitem\e\wbt\blz_dl
limp_Debug_煉publish\blz_dllimp_Debug_煉publish.csproj]
@radical radical added this to the 8.0.0 milestone Jun 21, 2023
@ghost
Copy link

ghost commented Jun 21, 2023

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Wasm.Build.Tests.Blazor.BuildPublishTests.WithDllImportInMainAssembly:

          Expected 0 exit code but got 1: C:\\helix\\work\\workitem\\e\\dotnet-latest\\dotnet.exe publish ...
          
          at Wasm.Build.Tests.CommandResult.EnsureExitCode(Int32 expectedExitCode, String messagePrefix, Boolean suppressOutput) in /_/src/mono/wasm/Wasm.Build.Tests/Common/CommandResult.cs:line 44
          at Wasm.Build.Tests.CommandResult.EnsureSuccessful(String messagePrefix, Boolean suppressOutput) in /_/src/mono/wasm/Wasm.Build.Tests/Common/CommandResult.cs:line 28
          at Wasm.Build.Tests.BuildTestBase.BlazorBuildInternal(String id, String config, Boolean publish, Boolean setWasmDevel, String[] extraArgs) in /_/src/mono/wasm/Wasm.Build.Tests/BuildTestBase.cs:line 610
          at Wasm.Build.Tests.BuildTestBase.BlazorPublish(BlazorBuildOptions options, String[] extraArgs) in /_/src/mono/wasm/Wasm.Build.Tests/BuildTestBase.cs:line 564
          at Wasm.Build.Tests.Blazor.BuildPublishTests.WithDllImportInMainAssembly(String config, Boolean build, Boolean publish) in /_/src/mono/wasm/Wasm.Build.Tests/Blazor/BuildPublishTests.cs:line 163
        --- End of stack trace from previous location ---
Fatal: Failed opening 'C:\helix\work\workitem\e\wbt\blz_dllimp_Debug_?publish\obj\Debug\net8.0\wasm\for-publish\dotnet.native.wasm' (TaskId:269)

emcc : error : 'C:\helix\work\workitem\e\dotnet-latest\packs\Microsoft.NET.Runtime.Emscripten.3.1.34.Sdk.win-x64\8.0.0-preview.6.23312.1\tools\bin\wasm-opt --post-emscripten -Oz --low-memory-unused --zero-filled-
memory --pass-arg=directize-initial-contents-immutable --strip-producers C:\helix\work\workitem\e\wbt\blz_dllimp_Debug_\u7149publish\obj\Debug\net8.0\wasm\for-publish\dotnet.native.wasm -o C:\helix\work\workitem\e\wbt\blz_dllimp_De
bug_\u7149publish\obj\Debug\net8.0\wasm\for-publish\dotnet.native.wasm -g --mvp-features --enable-exception-handling --enable-mutable-globals --enable-sign-ext --enable-simd' failed (returned 1) [C:\helix\work\workitem\e\wbt\blz_dl
limp_Debug_煉publish\blz_dllimp_Debug_煉publish.csproj]
Author: radical
Assignees: -
Labels:

arch-wasm, area-Build-mono, test-failure

Milestone: 8.0.0

@radical
Copy link
Member Author

radical commented Jul 6, 2023

cc @ilonatommy

@ilonatommy
Copy link
Member

It's a duplicate of #83497. They got disabled then and I honestly have no idea how to fix the problem. I will devote some more time to this today and in case I have results, will post them on the original issue. Closing this one.

@ghost ghost locked as resolved and limited conversation to collaborators Aug 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants