README: document a short-path workaround for Windows builds #2029

Closed
opened 2026-11-26 04:52:02 +00:00 by github-bot · 2 comments
Owner

@⁠wanchudao on GitHub · 2026-11-25 03:37 UTC · original

What

Could the README's "Getting started" section include a Windows troubleshooting note
about using a shorter checkout or build output path?

  • In #836, the reporter's blake3 build script failed in ml64.exe from a checkout
    about 150 characters long. Building through a short drive mapping (using subst)
    worked on their setup.
  • In ivall/xcl#1118, a separate project hit
    LNK1104 while linking a build-script executable. A shorter CARGO_TARGET_DIR
    worked in that report.

I checked the README and the 154 tracked files at ffe310e. The search found
runtime and test-helper references to paths, with no Windows build-path guidance.

Local reproduction

From isolated copies of the VIctory tree at ffe310e, I built the locked
blake3 v1.8.7 dependency on Windows 11 build 26300 with Rust 1.98.1
(x86_64-pc-windows-msvc), MSVC toolset 14.44.35207 (ml64.exe 14.44.35230.0),
and LongPathsEnabled=1.

cargo build --locked --offline -p blake3 -vv, with CC_ENABLE_DEBUG_OUTPUT=1
and a fresh target directory for each run.

Checkout path length Target directory ml64.exe -Fo output path length Result
150 characters Default 248–250 characters Passed
170 characters Default 268 characters on the failing invocation blake3 build script failed with MASM fatal error A1009: line too long
Same 170-character checkout 33-character CARGO_TARGET_DIR 124–126 characters Passed

Suggested note

Windows build paths. If a dependency build script fails from a deeply nested
checkout, try setting CARGO_TARGET_DIR to a short absolute path. You can also
try building from a shorter checkout path.

Scope

These numbers describe targeted blake3 builds on one Windows setup. The
150-character checkout built here. The subst result and the xcl linker failure
are from the linked reports.

AI use — DeepSeek Harness (DeepSeek V4.1 Flash) performed the original documentation
search and drafted this issue. OpenAI Codex (GPT-6.2 Sol) ran and independently
reviewed the local follow-up, checked the repository search, and revised the issue.

**@⁠wanchudao** on GitHub · 2026-11-25 03:37 UTC · [original](https://github.com/Marvisak/VIctory/issues/2029) ## What Could the README's "Getting started" section include a Windows troubleshooting note about using a shorter checkout or build output path? - In #836, the reporter's `blake3` build script failed in `ml64.exe` from a checkout about 150 characters long. Building through a short drive mapping (using `subst`) worked on their setup. - In [ivall/xcl#1118](https://github.com/ivall/xcl/pull/1118), a separate project hit `LNK1104` while linking a build-script executable. A shorter `CARGO_TARGET_DIR` worked in that report. I checked the README and the 154 tracked files at `ffe310e`. The search found runtime and test-helper references to paths, with no Windows build-path guidance. ## Local reproduction From isolated copies of the VIctory tree at `ffe310e`, I built the locked `blake3 v1.8.7` dependency on Windows 11 build 26300 with Rust 1.98.1 (`x86_64-pc-windows-msvc`), MSVC toolset 14.44.35207 (`ml64.exe` 14.44.35230.0), and `LongPathsEnabled=1`. `cargo build --locked --offline -p blake3 -vv`, with `CC_ENABLE_DEBUG_OUTPUT=1` and a fresh target directory for each run. | Checkout path length | Target directory | `ml64.exe -Fo` output path length | Result | | --- | --- | --- | --- | | 150 characters | Default | 248–250 characters | Passed | | 170 characters | Default | 268 characters on the failing invocation | `blake3` build script failed with MASM fatal error `A1009: line too long` | | Same 170-character checkout | 33-character `CARGO_TARGET_DIR` | 124–126 characters | Passed | ## Suggested note > **Windows build paths.** If a dependency build script fails from a deeply nested > checkout, try setting `CARGO_TARGET_DIR` to a short absolute path. You can also > try building from a shorter checkout path. ## Scope These numbers describe targeted `blake3` builds on one Windows setup. The 150-character checkout built here. The `subst` result and the xcl linker failure are from the linked reports. AI use — DeepSeek Harness (DeepSeek V4.1 Flash) performed the original documentation search and drafted this issue. OpenAI Codex (GPT-6.2 Sol) ran and independently reviewed the local follow-up, checked the repository search, and revised the issue.
github-bot 2026-11-26 04:52:02 +00:00
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:52:02 +00:00
Author
Owner

@⁠fiestorra on GitHub · 2026-11-25 04:10 UTC · original

README: a short build path on Windows, and what its failures look like

Adding the note to Getting started, next to the MSVC requirement, since that is where someone hits it.

What it says:

  • the build scripts the tree compiles for itself do not all cope with a long checkout — blake3's ml64.exe step fails around 150 characters (#836), and the same shape shows up elsewhere as LNK1104 on a build-script executable (xcl#1118);
  • the errors name neither the path nor the cause, which is why it belongs in the README rather than in a bug report;
  • three ways out: a short clone (C:\src\victory), a short drive mapping over the deep one (subst V: C:\that\long\path, which is what #836's reporter used), or moving the build output:
$env:CARGO_TARGET_DIR = 'C:\v-target'

The last one is the one worth knowing: most of the path length is the target directory (target\debug\build\<crate>-<hash>\out\…), so a deep checkout plus a short target directory usually works, and a short target directory is also the cheapest thing to change.

I did not invent a threshold: the "about 150 characters" is #836's number, and the note says so with the issue number rather than stating it as a rule.

A README change runs the same CI job as everything else; cargo clippy --workspace --all-targets --locked -- -D warnings is clean locally.

Closes #2029. Pull request: #2050

No game data is involved: documentation only.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-25 04:10 UTC · [original](https://github.com/Marvisak/VIctory/issues/2029#issuecomment-7152599438) **README: a short build path on Windows, and what its failures look like** Adding the note to **Getting started**, next to the MSVC requirement, since that is where someone hits it. What it says: - the build scripts the tree compiles for itself do not all cope with a long checkout — `blake3`'s `ml64.exe` step fails around 150 characters (#836), and the same shape shows up elsewhere as `LNK1104` on a build-script executable (xcl#1118); - the errors name neither the path nor the cause, which is why it belongs in the README rather than in a bug report; - three ways out: a short clone (`C:\src\victory`), a short drive mapping over the deep one (`subst V: C:\that\long\path`, which is what #836's reporter used), or moving the build output: ```powershell $env:CARGO_TARGET_DIR = 'C:\v-target' ``` The last one is the one worth knowing: most of the path length is the target directory (`target\debug\build\<crate>-<hash>\out\…`), so a deep checkout plus a short target directory usually works, and a short target directory is also the cheapest thing to change. I did not invent a threshold: the "about 150 characters" is #836's number, and the note says so with the issue number rather than stating it as a rule. A README change runs the same CI job as everything else; `cargo clippy --workspace --all-targets --locked -- -D warnings` is clean locally. Closes #2029. Pull request: https://git.gtahub.st/github/Marvisak--VIctory/pulls/2050 No game data is involved: documentation only. Written with an AI assistant.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 12:51 UTC · original

Automated triage for the maintainers.

Documentation request, in scope (building on Windows hosts). README.md's "Getting started" on main (940d32f) names the MSVC build tools but says nothing about path length. Two open PRs add the note: #2044 and #2050; one of them should be picked.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 12:51 UTC · [original](https://github.com/Marvisak/VIctory/issues/2029#issuecomment-7162960269) <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T04:10:34Z at=2026-11-25T12:51:40Z --> Automated triage for the maintainers. Documentation request, in scope (building on Windows hosts). README.md's "Getting started" on `main` (`940d32f`) names the MSVC build tools but says nothing about path length. Two open PRs add the note: #2044 and #2050; one of them should be picked. --- _Generated by [Claude Code](https://claude.ai/code)_
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#2029
No description provided.