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

[9.0][wasm] Failure in Wasm.Build.Templates.Tests.NativeBuildTests.ProjectWithDllImportsRequiringMarshalIlGen_ArrayTypeParameter #112218

Open
carlossanlop opened this issue Feb 6, 2025 · 5 comments
Assignees
Labels
arch-wasm WebAssembly architecture area-Build-mono Known Build Error Use this to report build issues in the .NET Helix tab os-browser Browser variant of arch-wasm os-linux Linux OS (any supported distro) runtime-mono specific to the Mono runtime
Milestone

Comments

@carlossanlop
Copy link
Member

carlossanlop commented Feb 6, 2025

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=939888
Build error leg or test failing: net9.0-browser-Release-wasm-Mono_Release_linux-BuildWasmApps-(Ubuntu.2204.Amd64)[email protected]/dotnet-buildtools/prereqs:ubuntu-22.04-helix-webassembly

Error Message

{
  "ErrorMessage" : "Expected 0 exit code but got 9",
  "BuildRetry" : false,
  "ExcludeConsoleLog" : false
}
   Wasm.Build.Templates.Tests.NativeBuildTests.ProjectWithDllImportsRequiringMarshalIlGen_ArrayTypeParameter(config: "Debug") [FAIL]
       Expected 0 exit code but got 9: /root/helix/work/workitem/e/dotnet-latest/dotnet run --no-silent --no-build -c Debug
      Standard Output:
      [] WasmAppHost --runtime-config /root/helix/work/workitem/e/wbt artifacts/dllimport_incompatible_c5adkit1_hxy/bin/Debug/net9.0/browser-wasm/AppBundle/dllimport_incompatible_c5adkit1_hxy.runtimeconfig.json --no-silent
      [] Running: node --experimental-wasm-simd --experimental-wasm-eh main.mjs
      [] Using working directory: /root/helix/work/workitem/e/wbt artifacts/dllimport_incompatible_c5adkit1_hxy/bin/Debug/net9.0/browser-wasm/AppBundle
      [] node: bad option: --experimental-wasm-simd
      [] node: bad option: --experimental-wasm-eh
      [] NodeJS exited with 9
      
      Stack Trace:
        /_/src/mono/wasm/Wasm.Build.Tests/Common/CommandResult.cs(51,0): at Wasm.Build.Tests.CommandResult.EnsureExitCode(Int32 expectedExitCode, String messagePrefix, Boolean suppressOutput)
        /_/src/mono/wasm/Wasm.Build.Tests/Common/CommandResult.cs(28,0): at Wasm.Build.Tests.CommandResult.EnsureSuccessful(String messagePrefix, Boolean suppressOutput)
        /_/src/mono/wasm/Wasm.Build.Tests/Templates/NativeBuildTests.cs(93,0): at Wasm.Build.Templates.Tests.NativeBuildTests.ProjectWithDllImportsRequiringMarshalIlGen_ArrayTypeParameter(String config)
           at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
           at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
...
...
x64/9.0.2/tools/emscripten/cache/sysroot/lib/wasm32-emscripten -lGL-getprocaddr -lal -lhtml5 -lbulkmemory -lstubs -lc -ldlmalloc -lcompiler_rt-wasm-sjlj -lc++-except -lc++abi-except -lunwind-except -lsockets -mllvm -combiner-global-alias-analysis=false -mllvm -wasm-enable-sjlj -mllvm -disable-lsr -mllvm -wasm-enable-eh -mllvm -exception-model=wasm /tmp/tmpolw01zanlibemscripten_js_symbols.so --export=free --export=htons --export=malloc --export=sbrk --export=memalign --export=memset --export=ntohs --export=stackAlloc --export=stackRestore --export=stackSave --export=fmod --export=atan2 --export=fma --export=pow --export=fmodf --export=atan2f --export=fmaf --export=powf --export=asin --export=asinh --export=acos --export=acosh --export=atan --export=atanh --export=cbrt --export=cos --export=cosh --export=exp --export=log --export=log2 --export=log10 --export=sin --export=sinh --export=tan --export=tanh --export=asinf --export=asinhf --export=acosf --export=acoshf --export=atanf --export=atanhf --export=cbrtf --export=cosf --export=coshf --export=expf --export=logf --export=log2f --export=log10f --export=sinf --export=sinhf --export=tanf --export=tanhf --export=stackAlloc --export=__funcs_on_exit --export=__trap --export=__cpp_exception --export=__wasm_call_ctors --export=__get_exception_message --export=free --export=stackSave --export=stackRestore --export=__thrown_object_from_unwind_exception --export=__cxa_increment_exception_refcount --export=__cxa_decrement_exception_refcount --export-if-defined=__start_em_asm --export-if-defined=__stop_em_asm --export-if-defined=__start_em_lib_deps --export-if-defined=__stop_em_lib_deps --export-if-defined=__start_em_js --export-if-defined=__stop_em_js --export-if-defined=fflush --export-table --growable-table -z stack-size=5242880 --max-memory=2147483648 --initial-memory=33554432 --no-entry --table-base=1 --global-base=1024' failed (returned 1) [/root/helix/work/workitem/e/wbt artifacts/UndefinedNativeSymbol_disabled_azaduhny_54f/UndefinedNativeSymbol_disabled_azaduhny_54f.csproj]
[] /root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/9.0.3/Sdk/BrowserWasmApp.targets(494,5): error MSB3073: The command "emcc "@/root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/9.0.3/runtimes/browser-wasm/native/src/emcc-default.rsp" -msimd128 "@/root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/9.0.3/runtimes/browser-wasm/native/src/emcc-link.rsp" "@/root/helix/work/workitem/e/wbt artifacts/UndefinedNativeSymbol_disabled_azaduhny_54f/obj/Release/net9.0/wasm/for-build/emcc-link.rsp"" exited with code 1. [/root/helix/work/workitem/e/wbt artifacts/UndefinedNativeSymbol_disabled_azaduhny_54f/UndefinedNativeSymbol_disabled_azaduhny_54f.csproj]
[] /root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/9.0.3/Sdk/BrowserWasmApp.targets(511,5): error : Use '-p:WasmAllowUndefinedSymbols=true' to allow undefined symbols [/root/helix/work/workitem/e/wbt artifacts/UndefinedNativeSymbol_disabled_azaduhny_54f/UndefinedNativeSymbol_disabled_azaduhny_54f.csproj]
[] 
[] Build FAILED.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=939888
Error message validated: [Expected 0 exit code but got 9]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 2/6/2025 1:04:56 AM UTC

Report

Build Definition Test Pull Request
974658 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.WasmTemplateTests.WorkItemExecution #108846
968148 dotnet/runtime Wasm.Build.Tests.WasmTemplateTests.ConsolePublishAndRun #112504
967594 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.WasmTemplateTests.WorkItemExecution
965015 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.WasmTemplateTests.WorkItemExecution
960844 dotnet/runtime Workloads-Wasm.Build.Tests.WasmTemplateTests.WorkItemExecution #112520
958130 dotnet/runtime Workloads-NoWebcil-Wasm.Build.Tests.WasmTemplateTests.WorkItemExecution #112504
958951 dotnet/runtime Workloads-Wasm.Build.Tests.WasmTemplateTests.WorkItemExecution
956779 dotnet/runtime Wasm.Build.Tests.WasmTemplateTests.ConsolePublishAndRun
954528 dotnet/runtime Wasm.Build.Tests.WasmTemplateTests.ConsolePublishAndRun #112520
952533 dotnet/runtime Wasm.Build.Tests.WasmTemplateTests.ConsolePublishAndRun #112516

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 1 9
@carlossanlop carlossanlop added arch-wasm WebAssembly architecture Known Build Error Use this to report build issues in the .NET Helix tab os-browser Browser variant of arch-wasm os-linux Linux OS (any supported distro) runtime-mono specific to the Mono runtime labels Feb 6, 2025
Copy link
Contributor

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

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Feb 6, 2025
@carlossanlop
Copy link
Member Author

Looks like it is also happened in the 8.0 branding PR: #112143

@carlossanlop
Copy link
Member Author

Some hits are not getting linked by Build Analysis, but the "Error message" is exactly the same I put in the json. Example:
#112176

@maraf
Copy link
Member

maraf commented Feb 17, 2025

It should be resolved by #111655

@pavelsavara pavelsavara removed the untriaged New issue has not been triaged by the area owner label Feb 27, 2025
@pavelsavara pavelsavara added this to the 10.0.0 milestone Feb 27, 2025
@pavelsavara pavelsavara modified the milestones: 10.0.0, 9.0.x Feb 27, 2025
@maraf
Copy link
Member

maraf commented Feb 28, 2025

The latest occurrence is from 8.0 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-wasm WebAssembly architecture area-Build-mono Known Build Error Use this to report build issues in the .NET Helix tab os-browser Browser variant of arch-wasm os-linux Linux OS (any supported distro) runtime-mono specific to the Mono runtime
Projects
None yet
Development

No branches or pull requests

3 participants