README: LNK1104 from build scripts in a deep checkout #1109
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1118"
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?
Imported from ivall/xcl. Originally posted by AlexandreSchuelter on 2026-11-24T11:59:56Z.
A 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
Imported from ivall/xcl. Originally posted by Darkkandadr on 2026-11-24T16:07:01Z.
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).
upstream-sync referenced this pull request2026-11-24 19:06:45 +00:00
upstream-sync referenced this pull request2026-11-26 05:05:05 +00:00
Pull request closed