Repository navigation
cross windows metadata: mangle clang_main for the target SDK - #2471
Merged
Merged
Conversation
Seed cross run 39220664542 reached the final link and failed with undefined clang_main/with_clang_main. Both cross Windows metadata generators hardcoded the Visual Studio C++ mangling, but the current windows-aarch64 SDK is a windows-gnu build whose libclangMain.a carries the Itanium symbol. Pass the same gnu fact the native metadata derives from libclang.a; a libclang.lib SDK keeps the MSVC spelling.
Contributor
Author
|
Battery GREEN on eb256b2: |
ehartford
marked this pull request as ready for review
October 19, 2026 16:41
ehartford
added a commit
that referenced
this pull request
Oct 19, 2026
Seed cross run 39288117180 is green from main 35afb3a (#2470/#2471) against the windows-gnu SDK f137ee12. It published with-windows-aarch64.exe sha256 f27e7459c0039682e6b228e60abfbbcc750eb2a1dd61531269f08cb65380c967 to the seed-windows-aarch64 prerelease; the same bytes are promoted to the pinned nightly-20261015-local-1-efcb91c30a6a release the lanes fetch from. seed.lock and the three workflow pins (via tools/bump_seed_pins.w) now name that digest. The native windows-aarch64 lane verifies it next; #2305 closes only on that green. Co-authored-by: Eric Hartford <[email protected]>
This was referenced Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #2470. Seed cross run 39220664542 got past the C-runtime selection and failed at the final link with:
lld-link: error: <root>: undefined symbol: int __cdecl clang_main(int, char **, struct llvm::ToolContext const &)lld-link: error: undefined symbol: with_clang_mainRoot cause: both cross Windows
llvm_ld.rspgenerators calledcomp_clang_main_link_lines(..., windows_gnu_sdk=false, ...), emitting the MSVC-mangled?clang_main@@...name. The current windows-aarch64 SDK is a windows-gnu build, solibclangMain.acarries the Itanium_Z10clang_main...symbol and the/include://alternatename:lines named a symbol that does not exist. The generators now pass the same gnu fact the native metadata derives (libclangends with/lib/libclang.a); a Visual Studio-builtlibclang.libSDK keeps the MSVC spelling.Evidence:
build.w/lib/std/build.wcheck under the installed compiler, the pinned seed, and the fresh release compiler; seed-driven:gategreen (build store disabled for the same mixed-generation restore seen on #2470). Battery evidence will be posted before ready. #2305 remains open until the seed publishes and the native windows-aarch64 lane is green.