Skip to content

link: a host that is also a cross tag carries its runtime twice; it joins and registers once - #2507

Merged
ehartford merged 1 commit into
mainfrom
rt-twin-slot
Oct 21, 2026
Merged

ehartford merged 1 commit into
mainfrom
rt-twin-slot

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Linux fixpoint and the linux-aarch64 compiler link failed with 20 duplicate symbols: the native rt slot and rt@linux_x86_64 are both the target's on a Linux host and the same wo_rt.o joined twice. One join, one registration. Verified on eric-5090 (fixpoint) and the Mac battery; posted below.

…oins and registers once

Since #2500 every compiler embeds `rt@<tag>` for the cross tags beside its
native `rt` slot. On a Linux host both are this target's (the native
slot's "" and linux_x86_64 both resolve to it), so the stage3 link took the
same extracted wo_rt.o twice — 20 duplicate symbols at the Linux fixpoint,
the same at the linux-aarch64 compiler link; the Mac has no darwin tag and
never saw it. The runtime joins once (the first slot for the target) and
its interface registers once.
@ehartford

Copy link
Copy Markdown
Contributor Author

Battery GREEN on f1c94bf (325 s, this Mac); gate 164 s. On eric-5090 at the same commit: build rc=0, fixpoint rc=0 (the step that failed with 20 duplicate symbols).

@ehartford
ehartford marked this pull request as ready for review October 21, 2026 03:19
@ehartford
ehartford merged commit 763d0e5 into main Oct 21, 2026
@ehartford
ehartford deleted the rt-twin-slot branch October 21, 2026 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant