README: keep Windows build paths short (blake3's ml64 fails past ~170 characters) #2042

Merged
Creaa merged 1 commit from upstream-pr/2044 into main 2026-11-25 21:53:35 +00:00
Creaa commented 2026-11-25 04:02:55 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Creaa on 2026-11-25T04:02:55Z.


Adds a note to Getting started for builds that fail on long Windows paths. Fixes #2029.

From a checkout about 170 characters deep, the blake3 dependency's build script fails in ml64.exe with A1009: line too long, even with long paths enabled, because its object files are written under target. A short CARGO_TARGET_DIR avoids it. The numbers are from #2029 (150 characters built, 170 failed, the same checkout with a 33-character CARGO_TARGET_DIR built). The note also says where victory.exe lands then, since the commands below name target\release.

What is in it

  • README.md: one paragraph after the MSVC build tools requirement.

Tested

  • cargo xtask policy: 182 files ok.
  • Documentation only; no code changes.

Not tested

  • I did not reproduce the failure myself: my checkout path is short. The measurements are the issue reporter's.

AI use

  • Claude Code (Claude Opus 5.5) wrote the note and this description; I checked both.

🤖 Generated with Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:issue:6596933993 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2044). Originally posted by [Creaa](https://github.com/Creaa) on 2026-11-25T04:02:55Z. --- Adds a note to **Getting started** for builds that fail on long Windows paths. Fixes #2029. From a checkout about 170 characters deep, the `blake3` dependency's build script fails in `ml64.exe` with `A1009: line too long`, even with long paths enabled, because its object files are written under `target`. A short `CARGO_TARGET_DIR` avoids it. The numbers are from #2029 (150 characters built, 170 failed, the same checkout with a 33-character `CARGO_TARGET_DIR` built). The note also says where `victory.exe` lands then, since the commands below name `target\release`. **What is in it** - `README.md`: one paragraph after the MSVC build tools requirement. **Tested** - `cargo xtask policy`: 182 files ok. - Documentation only; no code changes. **Not tested** - I did not reproduce the failure myself: my checkout path is short. The measurements are the issue reporter's. **AI use** - Claude Code (Claude Opus 5.5) wrote the note and this description; I checked both. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Dathinel commented 2026-11-25 04:07:15 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Dathinel on 2026-11-25T04:07:03Z.


Confirmed the workaround for the release build of the locked blake3 1.8.7 dependency at 3348a84. I kept the checkout at 77 characters and changed only the fresh output directory in cargo build --release --frozen -p blake3 --target-dir <path> -vv (MSVC 14.44.35207, LongPathsEnabled=1).

Absolute target directory Result
175 characters MASM A1009 on a 268-character object path
105 characters Build passed

I'd lead with “If building on Windows fails in ml64.exe with A1009, try a shorter target directory.” That also covers a short checkout with a deeply nested build cache. The 170-character checkout in #2029 is a useful example.

I also built the release CLI at the same commit with cargo build --release --frozen -p victory --target-dir <path>, reusing those directories and the same Cargo home. At 105 characters the build passed and release/victory.exe --help exited 0. At 175 characters the build failed in blake3 with the same MASM A1009.

AI-assisted; builds ran locally on Windows.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7152544064 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2044#issuecomment-7152544064). Originally posted by [Dathinel](https://github.com/Dathinel) on 2026-11-25T04:07:03Z. --- Confirmed the workaround for the release build of the locked `blake3 1.8.7` dependency at `3348a84`. I kept the checkout at 77 characters and changed only the fresh output directory in `cargo build --release --frozen -p blake3 --target-dir <path> -vv` (MSVC 14.44.35207, `LongPathsEnabled=1`). | Absolute target directory | Result | |---|---| | 175 characters | MASM A1009 on a 268-character object path | | 105 characters | Build passed | I'd lead with “If building on Windows fails in ml64.exe with A1009, try a shorter target directory.” That also covers a short checkout with a deeply nested build cache. The 170-character checkout in #2029 is a useful example. I also built the release CLI at the same commit with `cargo build --release --frozen -p victory --target-dir <path>`, reusing those directories and the same Cargo home. At 105 characters the build passed and `release/victory.exe --help` exited 0. At 175 characters the build failed in blake3 with the same MASM A1009. AI-assisted; builds ran locally on Windows.
catminou4 commented 2026-11-25 05:05:44 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T04:17:34Z.

Review: COMMENTED


Static review only: README/docs change — no code.

Windows build paths kept short (blake3's ml64 path-length failure) — overlaps with #2050 (also README Windows build path); maintainer should merge one.

<!-- greyfinch-sync:Marvisak/VIctory:review:6051789620 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2044#pullrequestreview-6051789620). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-25T04:17:34Z. **Review:** COMMENTED --- Static review only: README/docs change — no code. Windows build paths kept short (blake3's ml64 path-length failure) — **overlaps with #2050** (also README Windows build path); maintainer should merge one.
Marvisak commented 2026-11-25 10:07:39 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T09:19:34Z.


Automated triage for the maintainers.

Merge candidate (unchanged). The head was force-pushed as a single commit on current main, and the diff is still one short paragraph in the README's Getting started. It says that on Windows a deep checkout or target directory makes blake3's ml64.exe step fail with A1009: line too long. The fix it gives is a short CARGO_TARGET_DIR, or a checkout nearer the drive's root, and it says victory.exe then lands in C:\vt\release rather than the target\release the commands below use. A contributor in the thread reproduced the failure on Windows at a 175-character target directory and confirmed the workaround at 105 characters. This fixes #2029.

What changed since the last verdict: the commit was rebased onto current main (the old head is no longer fetchable for a byte-level comparison). The note reads as it did and still does not lead with the symptom, which was an optional suggestion. #2050 is still open and covers the same spot, so only one of the two should land. This one is shorter.

CI: passing (check).

Recommending a look, not approving.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7158179480 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2044#issuecomment-7158179480). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T09:19:34Z. --- <!-- victory-triage v1 head=c01c339de33e240a9abc394e7bd4aff3c276d22c verdict=merge-candidate at=2026-11-25T20:18:54Z --> Automated triage for the maintainers. **Merge candidate (unchanged).** The head was force-pushed as a single commit on current `main`, and the diff is still one short paragraph in the README's **Getting started**. It says that on Windows a deep checkout or target directory makes `blake3`'s `ml64.exe` step fail with `A1009: line too long`. The fix it gives is a short `CARGO_TARGET_DIR`, or a checkout nearer the drive's root, and it says `victory.exe` then lands in `C:\vt\release` rather than the `target\release` the commands below use. A contributor in the thread reproduced the failure on Windows at a 175-character target directory and confirmed the workaround at 105 characters. This fixes #2029. **What changed since the last verdict:** the commit was rebased onto current `main` (the old head is no longer fetchable for a byte-level comparison). The note reads as it did and still does not lead with the symptom, which was an optional suggestion. #2050 is still open and covers the same spot, so only one of the two should land. This one is shorter. CI: passing (`check`). Recommending a look, not approving. --- _Generated by [Claude Code](https://claude.ai/code)_
upstream-sync closed this pull request 2026-11-25 22:03:22 +00:00
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!2042
No description provided.