README: LNK1104 from build scripts in a deep checkout #1118
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1118
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1118/head"
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?
@AlexandreSchuelter on GitHub · 2026-11-24 11:59 UTC · original
readme-long-path-lnk1104→main· +4 −0 · 1 files · 1 commits · closed without mergingA first build in a deep folder failed with
LNK1104on a build script, and nothing in the README, issues or PRs mentions it. This adds a short note under Building and usage: the symptom, thatLongPathsEnableddoes not help (link.exeis not long-path aware), and the fix (a short clone path orCARGO_TARGET_DIR).What is in it
README.md: a Long paths bullet under Building and usage (4 lines)Tested
LongPathsEnabled=1; Rust 1.100.0stable-x86_64-pc-windows-msvc, VS 2022 Build Tools 17.14 (MSVC 14.44)target\:cargo build --workspace --releasefailed withLNK1104ontarget\release\build\proc-macro2\<hash>\out\build_script_build.exe(263 characters)47efa2ewith a 198-characterCARGO_TARGET_DIR:cargo build -p xclfailed withLNK1104on thebuild_script_build.exeofwindows_x86_64_msvc,quoteandserde_json\targetCARGO_TARGET_DIRat 109 characters the same checkout builds;cargo test --workspace --no-fail-fast -- --test-threads=4(debug) on47efa2e: 738 passed, 3 failed, 41 ignored, no SKIPPED GPU tests. The 3 failures are the RDNA2 packed-mip test fixed by #470 / #1028 and its twoPoisonErrorcascades (#673)Regression run
Not needed: README only.
Not tested
AI use
@Darkkandadr on GitHub · 2026-11-24 16:07 UTC · original
I hit the same failure on a first build, with a newer toolchain. The note matches what I saw.
Tested
LongPathsEnabled=1. Rust 1.96.0stable-x86_64-pc-windows-msvc. VS Build Tools 2026 (18.12.1) and Windows SDK 10.0.26100.0, freshly installed.target\,cargo build --workspaceonmain930e8b4:LINK : fatal error LNK1104ontarget\debug\build\libc-<hash>\build_script_build-<hash>.exe. The build scripts ofwindows_x86_64_msvc,proc-macro2,quoteandserde_corefailed the same way.CARGO_TARGET_DIR=C:\Users\<me>\AppData\Local\Temp\xcltbuilt without warnings or errors.The README change is 4 lines and only text, and I read it before testing.
Run and written with Claude Code (Claude Opus 5.5).
Pull request closed