Skip to content

[11.0-preview.2] Native AoT compilation fails on macOS due to missing .pcm files #124336

Closed

Description

@martincostello

Description

I have a .NET 10 AoT application which I'm testing a .NET 11 upgrade with.

After upgrading to net11.0 and building with the .NET 11 preview 1 SDK, native compilation fails on the macos-latest GitHub Actions runner (Linux and Windows work as expected).

EXEC : error : /var/folders/yz/zr09txvs5dn18vt4cn21kzl40000gn/C/clang/ModuleCache/2NVTWR9HWT5FK/Foundation-3EJO22UA1F2B1.pcm: No such file or directory [/Users/runner/work/alexa-london-travel/alexa-london-travel/src/LondonTravel.Skill/LondonTravel.Skill.csproj]
  note: while processing /var/folders/yz/zr09txvs5dn18vt4cn21kzl40000gn/C/clang/ModuleCache/2NVTWR9HWT5FK/Foundation-3EJO22UA1F2B1.pcm
  note: Linking a static library that was built with -gmodules, but the module cache was not found.  Redistributable static libraries should never be built with module debugging enabled.  The debug experience will be degraded due to incomplete debug information.
EXEC : error : /var/folders/yz/zr09txvs5dn18vt4cn21kzl40000gn/C/clang/ModuleCache/2NVTWR9HWT5FK/_SwiftConcurrencyShims-2EK7503T0009Z.pcm: No such file or directory [/Users/runner/work/alexa-london-travel/alexa-london-travel/src/LondonTravel.Skill/LondonTravel.Skill.csproj]
  note: while processing /var/folders/yz/zr09txvs5dn18vt4cn21kzl40000gn/C/clang/ModuleCache/2NVTWR9HWT5FK/_SwiftConcurrencyShims-2EK7503T0009Z.pcm
/Users/runner/.nuget/packages/microsoft.dotnet.ilcompiler/11.0.0-preview.1.26104.118/build/Microsoft.NETCore.Native.targets(415,5): error MSB3073: The command " [/Users/runner/work/alexa-london-travel/alexa-london-travel/src/LondonTravel.Skill/LondonTravel.Skill.csproj]
/Users/runner/.nuget/packages/microsoft.dotnet.ilcompiler/11.0.0-preview.1.26104.118/build/Microsoft.NETCore.Native.targets(415,5): error MSB3073:         dsymutil  "/Users/runner/work/alexa-london-travel/alexa-london-travel/artifacts/bin/LondonTravel.Skill/release/native/LondonTravel.Skill" && [/Users/runner/work/alexa-london-travel/alexa-london-travel/src/LondonTravel.Skill/LondonTravel.Skill.csproj]
/Users/runner/.nuget/packages/microsoft.dotnet.ilcompiler/11.0.0-preview.1.26104.118/build/Microsoft.NETCore.Native.targets(415,5): error MSB3073:         strip -no_code_signature_warning -x "/Users/runner/work/alexa-london-travel/alexa-london-travel/artifacts/bin/LondonTravel.Skill/release/native/LondonTravel.Skill"" exited with code -1. [/Users/runner/work/alexa-london-travel/alexa-london-travel/src/LondonTravel.Skill/LondonTravel.Skill.csproj]

Reproduction Steps

  1. Clone martincostello/alexa-london-travel@2b801b3 on a macOS machine.
  2. Run build.ps1 in the root of the repository

Expected behavior

Compilation succeeds.

Actual behavior

Compilation fails:

Publishing solution...
  Determining projects to restore...
  Restored /Users/runner/work/alexa-london-travel/alexa-london-travel/src/LondonTravel.Skill/LondonTravel.Skill.csproj (in 5.18 sec).
  LondonTravel.Skill -> /Users/runner/work/alexa-london-travel/alexa-london-travel/artifacts/bin/LondonTravel.Skill/release/LondonTravel.Skill.dll
  Generating native code
EXEC : error : /var/folders/yz/zr09txvs5dn18vt4cn21kzl40000gn/C/clang/ModuleCache/2NVTWR9HWT5FK/Foundation-3EJO22UA1F2B1.pcm: No such file or directory [/Users/runner/work/alexa-london-travel/alexa-london-travel/src/LondonTravel.Skill/LondonTravel.Skill.csproj]
  note: while processing /var/folders/yz/zr09txvs5dn18vt4cn21kzl40000gn/C/clang/ModuleCache/2NVTWR9HWT5FK/Foundation-3EJO22UA1F2B1.pcm
  note: Linking a static library that was built with -gmodules, but the module cache was not found.  Redistributable static libraries should never be built with module debugging enabled.  The debug experience will be degraded due to incomplete debug information.
EXEC : error : /var/folders/yz/zr09txvs5dn18vt4cn21kzl40000gn/C/clang/ModuleCache/2NVTWR9HWT5FK/_SwiftConcurrencyShims-2EK7503T0009Z.pcm: No such file or directory [/Users/runner/work/alexa-london-travel/alexa-london-travel/src/LondonTravel.Skill/LondonTravel.Skill.csproj]
  note: while processing /var/folders/yz/zr09txvs5dn18vt4cn21kzl40000gn/C/clang/ModuleCache/2NVTWR9HWT5FK/_SwiftConcurrencyShims-2EK7503T0009Z.pcm
/Users/runner/.nuget/packages/microsoft.dotnet.ilcompiler/11.0.0-preview.1.26104.118/build/Microsoft.NETCore.Native.targets(415,5): error MSB3073: The command " [/Users/runner/work/alexa-london-travel/alexa-london-travel/src/LondonTravel.Skill/LondonTravel.Skill.csproj]
/Users/runner/.nuget/packages/microsoft.dotnet.ilcompiler/11.0.0-preview.1.26104.118/build/Microsoft.NETCore.Native.targets(415,5): error MSB3073:         dsymutil  "/Users/runner/work/alexa-london-travel/alexa-london-travel/artifacts/bin/LondonTravel.Skill/release/native/LondonTravel.Skill" && [/Users/runner/work/alexa-london-travel/alexa-london-travel/src/LondonTravel.Skill/LondonTravel.Skill.csproj]
/Users/runner/.nuget/packages/microsoft.dotnet.ilcompiler/11.0.0-preview.1.26104.118/build/Microsoft.NETCore.Native.targets(415,5): error MSB3073:         strip -no_code_signature_warning -x "/Users/runner/work/alexa-london-travel/alexa-london-travel/artifacts/bin/LondonTravel.Skill/release/native/LondonTravel.Skill"" exited with code -1. [/Users/runner/work/alexa-london-travel/alexa-london-travel/src/LondonTravel.Skill/LondonTravel.Skill.csproj]
Exception: /Users/runner/work/alexa-london-travel/alexa-london-travel/build.ps1:108

Regression?

Yes.

Known Workarounds

None.

Configuration

.NET SDK 11.0.100-preview.1.26104.118

Other information

No response

Activity

  1. added
    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
    on Feb 12, 2026
  2. MihuBot commented on Feb 12, 2026

    @MihuBot
  3. martincostello commented on Feb 12, 2026

    @martincostello
    MemberAuthor

    Setting StripSymbols=false as noted in #123687 fixes the compilation.

  4. added
    untriagedNew issue has not been triaged by the area owner
    and removed
    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
    on Feb 12, 2026
  5. martincostello commented on Feb 12, 2026

    @martincostello
    MemberAuthor

    Spoke too soon - the workaround didn't work. Might still be a duplicate, but re-opening just in case.

  6. martincostello commented on Mar 11, 2026

    @martincostello
    MemberAuthor

    Still an issue with .NET 11 preview 2 (11.0.100-preview.2.26159.112):

      Generating native code
      ld: warning: -ld_classic is deprecated and will be removed in a future release
    EXEC : error : /var/folders/t5/f77_gwnj6p95qxy9py3fckx00000gn/C/clang/ModuleCache/2NVTWR9HWT5FK/_SwiftConcurrencyShims-2EK7503T0009Z.pcm: No such file or directory [/Users/runner/work/website/website/src/Website/Website.csproj]
      note: while processing /var/folders/t5/f77_gwnj6p95qxy9py3fckx00000gn/C/clang/ModuleCache/2NVTWR9HWT5FK/_SwiftConcurrencyShims-2EK7503T0009Z.pcm
      note: Linking a static library that was built with -gmodules, but the module cache was not found.  Redistributable static libraries should never be built with module debugging enabled.  The debug experience will be degraded due to incomplete debug information.
    EXEC : error : /var/folders/t5/f77_gwnj6p95qxy9py3fckx00000gn/C/clang/ModuleCache/2NVTWR9HWT5FK/Foundation-3EJO22UA1F2B1.pcm: No such file or directory [/Users/runner/work/website/website/src/Website/Website.csproj]
      note: while processing /var/folders/t5/f77_gwnj6p95qxy9py3fckx00000gn/C/clang/ModuleCache/2NVTWR9HWT5FK/Foundation-3EJO22UA1F2B1.pcm
    /Users/runner/.nuget/packages/microsoft.dotnet.ilcompiler/11.0.0-preview.2.26159.112/build/Microsoft.NETCore.Native.targets(415,5): error MSB3073: The command " [/Users/runner/work/website/website/src/Website/Website.csproj]
    /Users/runner/.nuget/packages/microsoft.dotnet.ilcompiler/11.0.0-preview.2.26159.112/build/Microsoft.NETCore.Native.targets(415,5): error MSB3073:         dsymutil  "/Users/runner/work/website/website/artifacts/bin/Website/release/native/Website" && [/Users/runner/work/website/website/src/Website/Website.csproj]
    /Users/runner/.nuget/packages/microsoft.dotnet.ilcompiler/11.0.0-preview.2.26159.112/build/Microsoft.NETCore.Native.targets(415,5): error MSB3073:         strip -no_code_signature_warning -x "/Users/runner/work/website/website/artifacts/bin/Website/release/native/Website"" exited with code -1. [/Users/runner/work/website/website/src/Website/Website.csproj]
    
  7. changed the title [-][11.0-preview.1] Native AoT compilation fails on macOS due to missing .pcm files[/-] [+][11.0-preview.2] Native AoT compilation fails on macOS due to missing .pcm files[/+] on Mar 11, 2026
  8. MichalStrehovsky commented on Apr 9, 2026

    @MichalStrehovsky
    Member

    I believe this is fixed. Not sure when but we no longer set StripSymbols to false after #124266 and things seem to work.

  9. locked and limited conversation to collaborators on May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions