fix(agent): the Windows link's lld is named on the work drive in llvm-mingw's own config files #166
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!166
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Beanstalk:fix/windows-cfg-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?
#165 (a listing of the folders above the data folder) did not change the Windows link: nightly-282's reports (rp_0981d05acd15b81c, rp_8422c0fbf6673061) fail the same way, lld started from
<home>/AppData/Local/<user>/data/builder/tools/tools/llvm-mingw/bin/ld.lld. The sandbox can list neitherC:\norC:\Users, and LLVM's start looks upUsers(an 8.3-like name) inC:\: a program started from the real folder cannot start, whatever is listed below. Only clang starting lld from the work drive can work, and the probe shows the sandbox starts lld from there (lld --version exit 0, and the plain link fromclang.exeexit 0).Longshot's builder removes
CCC_OVERRIDE_OPTIONSfrom every compiler it runs, so the agent names the linker where the builder cannot take it out: llvm-mingw's own config files (bin/*.cfg, which clang reads from its folder:x86_64-w64-windows-gnu.cfg,mingw32-common.cfg, …). Before each sandboxed command on Windows with the work drive, the agent puts a block in each of them:(
WinDrive.WithLinkerOnDrive; the drive letter is the run's, an earlier block is replaced, forward slashes because a config file reads a backslash as an escape.) clang then startsld.lld.exeby that path, as it is. A file the agent cannot write stays as it was.The folder listing of #165 stays (it is harmless, and what a sandbox started from the real folder would need for the folders it can change); say if you want it taken out again.
Not built or run here (this PC's rules);
WinDrive.WithLinkerOnDrivehas checks.🤖 Generated with Claude Code