Skip to content

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

Closed

Description

@carlossanlop

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)Ubuntu.2204.Amd64.Open@mcr.microsoft.com/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

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 1

Activity

  1. added
    arch-wasmWebAssembly architecture
    Known Build ErrorUse this to report build issues in the .NET Helix tab
    os-browserBrowser variant of arch-wasm
    os-linuxLinux OS (any supported distro)
    runtime-monospecific to the Mono runtime
    on Feb 6, 2025
  2. dotnet-policy-service commented on Feb 6, 2025

    @dotnet-policy-service
    Contributor

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

  3. carlossanlop commented on Feb 6, 2025

    @carlossanlop
    ContributorAuthor

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

  4. carlossanlop commented on Feb 10, 2025

    @carlossanlop
    ContributorAuthor

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

  5. maraf commented on Feb 17, 2025

    @maraf
    Member

    It should be resolved by #111655

  6. removed
    untriagedNew issue has not been triaged by the area owner
    on Feb 27, 2025
  7. added this to the 10.0.0 milestone on Feb 27, 2025
  8. modified the milestones: 10.0.0, 9.0.x on Feb 27, 2025
  9. maraf commented on Feb 28, 2025

    @maraf
    Member

    The latest occurrence is from 8.0 branch.

  10. maraf commented on Apr 4, 2025

    @maraf
    Member
    24-Hour Hit Count 7-Day Hit Count 1-Month Count
    0 0 1
  11. locked and limited conversation to collaborators on May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Known Build ErrorUse this to report build issues in the .NET Helix tabarch-wasmWebAssembly architecturearea-Build-monoos-browserBrowser variant of arch-wasmos-linuxLinux OS (any supported distro)runtime-monospecific to the Mono runtime

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions