Repository navigation
A tree bundle's build reads the interfaces its modules import on demand (compiler-bundle failed on windows-x86_64) - #3397
Merged
Merged
Conversation
…nd, as a compile of the same sources does. Read whole, the Windows runtime's pthread_self took the name LlvmBridge's own extern declares ('pthread_self' is not imported), and compiler-bundle failed on windows-x86_64 (nightly run 44052619700), taking both internals lanes with it
This was referenced Nov 17, 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.
Nightly run 44052619700 (main a3559f2), windows-x86_64,
:test:compiler-bundlefailed, andinternals-testsandinternals-compiler-testswere skipped with it. A regression from #3393.Cause. Any
--bundle-corpusbuild read every interface it imports whole. For a migrated corpus that is its own interface check. For a tree bundle it meant the runtime's interface was read whole while the tree's modules were compiled from source; the Windows runtime defines apthread_self, which then took the nameLlvmBridge.w's ownextern fn pthread_selfdeclares. An ordinary compile of the same sources reads the runtime's interface on demand and has no such clash.Fix. A tree bundle's build reads the interfaces its modules import on demand, as a compile of those sources does; its interface check reads the bundle's own sections whole and the others on demand, so both fingerprint passes see one set of declarations. A runtime call the compiler emits on its own has no declaration in such a unit; the manifest records the runtime's own contract for it (it was emitted against this compiler's runtime).
Evidence.
with check out/compiler-bundle/root.w --target x86_64-w64-windows-gnu --bundle-corpus tree:…gave the nightly's error on main; it is ok with the fix (and foraarch64-linux-gnu). A plaincheck src/main.wfor the Windows target was ok before and after.internals-tests123 files ok,internals-compiler-tests3 files ok; the two fingerprints agree.:release-checksgreen.The Windows build itself is confirmed only by the next nightly.