Repository navigation
Conversation
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)
Owner
Author
|
Upstream PR xcl-dev#1118 was closed or merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 D3D12.X: map a one-slice title texture's packed mips where D3D12 addresses them xcl-dev/xcl#470 / D3D12.X: map and unmap 3D texture mips separately xcl-dev/xcl#1028 and its twoPoisonErrorcascades (Tests: a panicking title-texture test no longer poisons the others xcl-dev/xcl#673)Regression run
Not needed: README only.
Not tested
AI use
Mirror of xcl-dev#1118 (auto-synced, do not edit).