-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Revert "Enable symbol stripping for crossgen2" #82881
Conversation
This reverts commit 6a218ab.
Any links to log or issues tracking these intermittent failures? |
I'm on Xcode 14.2. These are the warnings (treated as errors) show up and fail the build (that EXEC task is the one which invokes crossgen2 -> /Users/am11/projects/runtime/artifacts/bin/coreclr/osx.arm64.Debug/crossgen2/crossgen2.dll
Generating native code
EXEC : error : (arm64) could not find object file symbol for symbol __Z19InitializeCpuCGroupv [/Users/am11/projects/runtime/src/coreclr/tools/aot/crossgen2/crossgen2.csproj]
EXEC : error : (arm64) could not find object file symbol for symbol __ZN6CGroup10InitializeEv [/Users/am11/projects/runtime/src/coreclr/tools/aot/crossgen2/crossgen2.csproj]
EXEC : error : (arm64) could not find object file symbol for symbol __Z16CleanupCpuCGroupv [/Users/am11/projects/runtime/src/coreclr/tools/aot/crossgen2/crossgen2.csproj]
EXEC : error : (arm64) could not find object file symbol for symbol __ZN6CGroup7CleanupEv [/Users/am11/projects/runtime/src/coreclr/tools/aot/crossgen2/crossgen2.csproj]
EXEC : error : (arm64) could not find object file symbol for symbol __Z11GetCpuLimitPj [/Users/am11/projects/runtime/src/coreclr/tools/aot/crossgen2/crossgen2.csproj]
EXEC : error : (arm64) could not find object file symbol for symbol __ZN6CGroup11GetCpuLimitEPj [/Users/am11/projects/runtime/src/coreclr/tools/aot/crossgen2/crossgen2.csproj]
EXEC : error : (arm64) could not find object file symbol for symbol __ZN6CGroup17FindCGroupVersionEv [/Users/am11/projects/runtime/src/coreclr/tools/aot/crossgen2/crossgen2.csproj]
EXEC : error : (arm64) could not find object file symbol for symbol __ZN6CGroup14FindCGroupPathEPFbPKcE [/Users/am11/projects/runtime/src/coreclr/tools/aot/crossgen2/crossgen2.csproj]
EXEC : error : (arm64) could not find object file symbol for symbol __ZN6CGroup21IsCGroup1CpuSubsystemEPKc [/Users/am11/projects/runtime/src/coreclr/tools/aot/crossgen2/crossgen2.csproj]
EXEC : error : (arm64) could not find object file symbol for symbol __ZN6CGroup18FindHierarchyMountEPFbPKcEPPcS5_ [/Users/am11/projects/runtime/src/coreclr/tools/aot/crossgen2/crossgen2.csproj]
EXEC : error : (arm64) could not find object file symbol for symbol __ZN6CGroup26FindCGroupPathForSubsystemEPFbPKcE [/Users/am11/projects/runtime/src/coreclr/tools/aot/crossgen2/crossgen2.csproj]
EXEC : error : (arm64) could not find object file symbol for symbol __ZN6CGroup18GetCGroup1CpuLimitEPj [/Users/am11/projects/runtime/src/coreclr/tools/aot/crossgen2/crossgen2.csproj]
EXEC : error : (arm64) could not find object file symbol for symbol __ZN6CGroup18GetCGroup2CpuLimitEPj [/Users/am11/projects/runtime/src/coreclr/tools/aot/crossgen2/crossgen2.csproj]
EXEC : error : (arm64) could not find object file symbol for symbol __ZN6CGroup18ReadCpuCGroupValueEPKc [/Users/am11/projects/runtime/src/coreclr/tools/aot/crossgen2/crossgen2.csproj]
EXEC : error : (arm64) could not find object file symbol for symbol __ZN6CGroup15ComputeCpuLimitExxPj [/Users/am11/projects/runtime/src/coreclr/tools/aot/crossgen2/crossgen2.csproj]
EXEC : error : (arm64) could not find object file symbol for symbol __ZN6CGroup25ReadLongLongValueFromFileEPKcPx [/Users/am11/projects/runtime/src/coreclr/tools/aot/crossgen2/crossgen2.csproj]
EXEC : error : (arm64) could not find object file symbol for symbol __ZL16s_cgroup_version [/Users/am11/projects/runtime/src/coreclr/tools/aot/crossgen2/crossgen2.csproj]
EXEC : error : (arm64) could not find object file symbol for symbol __ZL17s_cpu_cgroup_path [/Users/am11/projects/runtime/src/coreclr/tools/aot/crossgen2/crossgen2.csproj]
crossgen2 -> /Users/am11/projects/runtime/artifacts/bin/coreclr/osx.arm64.Debug/crossgen2/osx-arm64/publish/
Emitting R2R PE file: /Users/am11/projects/runtime/artifacts/obj/Microsoft.NETCore.App.Crossgen2/Debug/net8.0/osx-arm64/S.P.C.tmp
/Users/am11/projects/runtime/artifacts/obj/Microsoft.NETCore.App.Crossgen2/Debug/net8.0/osx-arm64/output/ -> /Users/am11/projects/runtime/artifacts/packages/Debug/Shipping//dotnet-crossgen2-8.0.0-dev-osx-arm64.tar.gz
Successfully created package '/Users/am11/projects/runtime/artifacts/packages/Debug/Shipping/Microsoft.NETCore.App.Crossgen2.osx-arm64.8.0.0-dev.nupkg'.
Successfully created package '/Users/am11/projects/runtime/artifacts/packages/Debug/Shipping/Microsoft.NETCore.App.Crossgen2.osx-arm64.8.0.0-dev.symbols.nupkg'.
...
Build failed with exit code 1. Check errors above. It is about static libs (.a files) sometimes not keeping all the symbols which the final linkage needs. I think the main issue with these So far I have found few options to resolve these flaky
Sooner rather than later, people building runtime locally on M1 machines will start noticing this so I thought it's better to just revert it and continue investigating possible solutions in the background. |
Ok, thanks for being on top of these issues. |
…dotnet#82881)" This reverts commit 13853e5.
Causing intermittent failures on macOS.