fix(agent): the Windows game link starts lld from the work drive, not the real folder #161
No reviewers
Labels
No labels
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Beanstalk!161
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Beanstalk:fix/windows-ld-path"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.lldfrom there, where LLVM's start is refused (its ancestors, in the user's profile, can't be listed by the sandbox). The agent'sCCC_OVERRIDE_OPTIONSalready 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-cc1already 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-prefixesfor clang's launches from Rust (docs/windows-clang.md has it for Python's).🤖 Generated with Claude Code