Repository navigation
[11.0-preview.2] Native AoT compilation fails on macOS due to missing .pcm files #124336
Copy link
Copy link
Closed
Closed
Copy link
Labels
Description
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
- Clone martincostello/alexa-london-travel@2b801b3 on a macOS machine.
- Run
build.ps1in 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
Reactions are currently unavailable
Activity
MihuBot commentedon Feb 12, 2026
I'm a bot. Here is a possible duplicate issue (I may be wrong):
martincostello commentedon Feb 12, 2026
Setting
StripSymbols=falseas noted in #123687 fixes the compilation.martincostello commentedon Feb 12, 2026
Spoke too soon - the workaround didn't work. Might still be a duplicate, but re-opening just in case.
martincostello commentedon Mar 11, 2026
Still an issue with .NET 11 preview 2 (
11.0.100-preview.2.26159.112):[-][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[/+]MichalStrehovsky commentedon Apr 9, 2026
I believe this is fixed. Not sure when but we no longer set StripSymbols to false after #124266 and things seem to work.