Skip to content

Microsoft.NET.Runtime.Emscripten.3.1.56.Sdk.linux-musl-x64 version 10.0.0 contains clang-19 linked against libc #121975

Closed
dotnet/emsdk
#1759

Description

@zotanmew

Describe the bug

The package Microsoft.NET.Runtime.Emscripten.3.1.56.Sdk.linux-musl-x64 contains a clang-19 binary linked against glibc (instead of musl) in the version 10.0.0. Version 9.0.11 correctly contains a binary linked against musl-libc.

To Reproduce

  1. Download the package from nuget.org and extract it
  2. Run file tools/bin/clang-19
  3. Observe that the output is ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[xxHash]=b5a2e404e8c8ecb5, stripped

Activity

  1. added
    untriaged
    on Nov 25, 2025
  2. zotanmew commented on Nov 25, 2025

    @zotanmew
    Author

    (this breaks WASM AOT for some applications)

  3. zotanmew commented on Nov 25, 2025

    @zotanmew
    Author

    I had a look at all the intermediate versions, it looks like it broke between 10.0.0-preview.3.25168.2 and 10.0.0-preview.4.25258.110.

  4. zotanmew commented on Nov 25, 2025

    @zotanmew
    Author

    I tried to bisect dotnet/emsdk but couldn't work it out in a reasonable time, so I can't provide an exact regression commit, apologies.

  5. transferred this issue fromdotnet/sdkon Nov 26, 2025
  6. marcpopMSFT commented on Nov 26, 2025

    @marcpopMSFT
    Member

    @lewing I couldn't move this to emsdk but seems like an issue with the workload packages.

  7. added
    needs-area-label
    on Nov 26, 2025
  8. dotnet-policy-service commented on Nov 26, 2025

    @dotnet-policy-service
    Contributor

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

  9. removed
    needs-area-label
    on Nov 26, 2025
  10. removed
    untriaged
    on Nov 27, 2025
  11. added this to the 10.0.x milestone on Nov 27, 2025
  12. added
    area-Workloads
    and removed on Nov 27, 2025
  13. jamescrosswell commented on Dec 3, 2025

    @jamescrosswell

    (this breaks WASM AOT for some applications)

    I think this breaks our samples when we bump the TFM to net10.0... is there a workaround or, for the time being, is the advice to revert to net9.0?

  14. zotanmew commented on Dec 9, 2025

    @zotanmew
    Author

    Looks like version 10.0.1 is also affected by this.

  15. jamescrosswell commented on Dec 10, 2025

    @jamescrosswell

    Looks like version 10.0.1 is also affected by this.

    We had to disable AOT for WASM apps in .net 10 for the time being. I think the only other option is to revert to .net 9.

  16. zotanmew commented on Apr 16, 2026

    @zotanmew
    Author

    This issue still affects Microsoft.NET.Runtime.Emscripten.3.1.56.Sdk.linux-musl-x64 version 11.0.0-preview.3.26207.106, so this is not fixed in the net11 previews.

  17. zotanmew commented on Apr 18, 2026

    @zotanmew
    Author

    The plot thickens, the azure pipeline CI builds in dotnet/emsdk seem to be unaffected, even versions older than net11-preview3. I unfortunately do not know how the actual release nuget packages get built, so unless someone has pointers I'm unable to debug this further.

  18. zotanmew commented on May 12, 2026

    @zotanmew
    Author

    We've reverted to using the debian builder and runner images for now to avoid this issue, but it is highly inconvenient.

  19. zotanmew commented on Jun 9, 2026

    @zotanmew
    Author

    It looks like both version 10.0.9 and 11.0.0-preview.5.26302.115 (which were just released) are still affected, did the change linked above not make in it for this months release, or is the issue still unfixed? cc @akoeplinger

  20. akoeplinger commented on Jun 9, 2026

    @akoeplinger
    Member

    @zotanmew correct, it was too late for 10.0.9/11.0-p5. It will be fixed in 10.0.10/11.0-p6

    From a recent CI build:

    $ file Microsoft.NET.Runtime.Emscripten.3.1.56.Sdk.linux-musl-x64.10.0.10/tools/bin/clang-19
    Microsoft.NET.Runtime.Emscripten.3.1.56.Sdk.linux-musl-x64.10.0.10/tools/bin/clang-19: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-x86_64.so.1, BuildID[xxHash]=7146ce7bf8af9dc7, stripped
    
  21. modified the milestones: 10.0.x, 10.0.10 on Jun 9, 2026
  22. locked and limited conversation to collaborators on Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-wasmarea-Workloads

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions