fix(agent): clang gets the fetched sysroot on Linux, and a damaged Longshot clone is cloned again #59
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!59
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Beanstalk:fix/linux-sysroot-reclone"
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?
Why
With nightly-106, the Steam Deck's ZBIC build passed (#56), and its next job reached the base build. That build then stopped in Longshot's
a64emitbuild (rp_a057a1feeb378777, #637):Longshot builds its host libraries (
third_party/a64-kit/lift/build_emit.py,nx2/zbic.py) with the fetched clang, but without the fetched sysroot and lld, which the game's own compile and link name. So they need the system's C and C++ headers and linker, which SteamOS doesn't have.On Tommy's PC, after the lease losses and a
git checkoutkilled with 0xC000013A, the next job failed with "main has no commit 02608169e638". That commit is on main, and the fetch of main went through, so the clone itself is damaged.What changed
Workspace.LinuxClangOverride: on Linux, sandboxed builds getCCC_OVERRIDE_OPTIONS=# ^-Qunused-arguments ^-fuse-ld=lld ^--sysroot=<fetched sysroot>.--sysrootor-fuse-ld, like the game's, still gets its own, because the last one wins.-Qunused-argumentskeeps compile-only calls quiet about-fuse-ld.linux_tools.pyalready set the variable, or when the path has a space.Workspace.RecloneAsync). If the commit is still missing, the error quotesgit cat-file's own words.Testing
dotnet build agent/App -c Release: 0 warnings.builder/linux/linux_tools.py env --install, then ran the builds in bwrap with/usr/includeand/usr/lib/gccemptied and/usr/bin/ldhidden:build_emit.pyfails with the Deck's exact error ("'algorithm' file not found"), andzbic.py's build fails with "'string.h' file not found";liba64emit.soandzbic.soload.-Werror, so nothing else should be affected.On a Steam Deck the base build stopped in Longshot's a64emit build: "'algorithm' file not found". Longshot's host libraries (a64emit, the ZBIC reader) are compiled without the fetched sysroot and lld, so they need the system's headers and linker, which SteamOS lacks. Every clang of the Linux build now gets them first through CCC_OVERRIDE_OPTIONS; a compile that names its own --sysroot or -fuse-ld still gets that, as the last one wins. A Windows clone whose git was killed mid-checkout then lacked main's commit even after fetching main ("main has no commit 02608169e638"). The agent now removes such a clone and clones again once, and the error quotes git's own words if the commit is still missing. Assisted-by: Claude Opus 5.5 Co-Authored-By: Claude Opus 5.5 <[email protected]>