fix(agent): the Windows game link starts lld from the work drive, not the real folder #161

Merged
HumanBean merged 1 commit from HumanBean/Beanstalk:fix/windows-ld-path into main 2026-11-28 10:01:40 +00:00
Owner

nightly-278's first Windows report (rp_373b4e3bfc6fd42f, nightly-278-d882b17d) is the first to get through the game's Rust (#160) and to compile the game to 93%. It then stops at the game's link: The game did not link: <data>/builder/tools/tools/llvm-mingw/bin/ld.lld: Permission denied (link_failed).

That is Longshot #910 again, for the linker: clang resolves its own folder through the work drive back to the real one (canonical prefixes) and starts ld.lld from there, where LLVM's start is refused (its ancestors, in the user's profile, can't be listed by the sandbox). The agent's CCC_OVERRIDE_OPTIONS already has -B<drive>\bin (the linker looked up there first); the report shows that is not enough for this link.

Fix: the override also names the linker outright, --ld-path=<drive>\...\llvm-mingw\bin\ld.lld.exe, so clang starts that path as given, on the drive, whose folders #156 made listable. (The override is read before canonical prefixes are decided for the arguments it adds, which is why -fintegrated-cc1 already works for the compile.)

Not built or run here (this PC's rules). If the link still fails the report will say what it started instead; the next step would be -no-canonical-prefixes for clang's launches from Rust (docs/windows-clang.md has it for Python's).

🤖 Generated with Claude Code

nightly-278's first Windows report (rp_373b4e3bfc6fd42f, nightly-278-d882b17d) is the first to get through the game's Rust (#160) and to compile the game to 93%. It then stops at the game's link: `The game did not link: <data>/builder/tools/tools/llvm-mingw/bin/ld.lld: Permission denied (link_failed)`. That is Longshot #910 again, for the linker: clang resolves its own folder through the work drive back to the real one (canonical prefixes) and starts `ld.lld` from there, where LLVM's start is refused (its ancestors, in the user's profile, can't be listed by the sandbox). The agent's `CCC_OVERRIDE_OPTIONS` already has `-B<drive>\bin` (the linker looked up there first); the report shows that is not enough for this link. Fix: the override also names the linker outright, `--ld-path=<drive>\...\llvm-mingw\bin\ld.lld.exe`, so clang starts that path as given, on the drive, whose folders #156 made listable. (The override is read before canonical prefixes are decided for the arguments it adds, which is why `-fintegrated-cc1` already works for the compile.) Not built or run here (this PC's rules). If the link still fails the report will say what it started instead; the next step would be `-no-canonical-prefixes` for clang's launches from Rust (docs/windows-clang.md has it for Python's). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(agent): the Windows game link starts lld from the work drive, not the real folder
Some checks failed
CI / Conventional Commit title (pull_request) Successful in 5s
CI / Workflow lint (actionlint) (pull_request) Successful in 5s
CI / Coordinator tests (pull_request) Failing after 1m47s
CI / Agent build and checks (pull_request) Successful in 2m31s
CI / Coordinator image (pull_request) Successful in 14s
97704adebc
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Beanstalk!161
No description provided.