Skip to content

[upstream #1118] README: LNK1104 from build scripts in a deep checkout - #41

Closed
ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1118
Closed

ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1118

Conversation

@ufoptg

@ufoptg ufoptg commented Nov 24, 2026

Copy link
Copy Markdown
Owner

A first build in a deep folder failed with LNK1104 on a build script, and nothing in the README, issues or PRs mentions it. This adds a short note under Building and usage: the symptom, that LongPathsEnabled does not help (link.exe is not long-path aware), and the fix (a short clone path or CARGO_TARGET_DIR).

What is in it

  • README.md: a Long paths bullet under Building and usage (4 lines)

Tested

Regression run
Not needed: README only.

Not tested

  • The exact threshold for every dependency's build-script path (only the 60–78 range above)
  • Windows 10, other Visual Studio / MSVC versions

AI use

  • Claude Code (Claude Opus 5.5): found the cause, wrote the note, ran the builds and tests above and drafted this description

Mirror of xcl-dev#1118 (auto-synced, do not edit).

Cargo's build-script paths under target\ add 60-78 characters past the
target directory (measured on this tree). With a checkout path of 186
characters, link.exe failed with LNK1104 on
target\release\build\proc-macro2\<hash>\out\build_script_build.exe
(263 characters), with LongPathsEnabled=1 in the registry. A
CARGO_TARGET_DIR of 109 characters built and tested fine. Reproduced on
47efa2e with a 198-character CARGO_TARGET_DIR.

Assisted-by: Claude Code (Claude Opus 5.5)
@ufoptg

ufoptg commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Upstream PR xcl-dev#1118 was closed or merged.

@ufoptg ufoptg closed this Nov 25, 2026
@ufoptg
ufoptg deleted the upstream-pr/1118 branch November 25, 2026 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants