Windows space-path CI: bundled TCC bootstrap cannot find relocated stdatomic header

Open
#32,743 5 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
14/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
c, powershell, shell

Research direction

Start with makev.bat in :build_bootstrap_with_tcc, where the -B flag is passed without a project-root include, and compare it with the later link stages. Then read cmd/tools/vc_compat_uint.ps1 to see how V-owned includes are relocated, and check the transformed vc/v_win_compat.c line that names thirdparty/stdatomic/win/atomic.h. Done means the exact space-paths-windows .\makev.bat -tcc job passes on a corrected descendant, with no test exclusion or timeout change. The issue is marked fix-in-progress and blocked, so confirm its status before starting.

Written by the indexing model from the issue text.

Description

Executed failure (R386; bootstrap gate, not a queued-job inference)

On master eff5e26ef6ed00d0f5179895293a5d6fd9e529a7, Path Testing CI job 137245337706 executed and failed 2026-11-22 15:13:44 UTC, Windows Server 2022, checkout at D:\a\v\v\path with some $punctuation, and some spaces:

.\makev.bat -tcc
...\vc\v_win_compat.c:1489: error: include file 'thirdparty/stdatomic/win/atomic.h' not found
> Snapshot bootstrap failed; rebuilding ... with self-hosted compiler ./v.exe
> Self-hosted compiler not found: ./v.exe

TCC was downloaded successfully and the vc snapshot was cloned, so this is not a dependency download failure. The v.exe missing diagnostic is secondary; the initial snapshot C include-resolution failure is the root gate. makev.bat's :build_bootstrap_with_tcc passes -B"%tcc_dir%" but no explicit project-root -I, whereas its later stage links do pass include roots. The snapshot is in vc/ and names a thirdparty/ header relative to the project root. The existing cmd/tools/vc_compat_uint.ps1 relocates V-owned quoted includes; precise transformed include kind/line should be inspected on the failing host to distinguish an angle include from an unrelocated quote. Existing merged #31494 addressed snapshot include relocation but did not establish this executed TCC path case.

Candidate and required verification

Pass the actual checkout root as one quoted TCC include directory (with trailing . to avoid a Windows trailing backslash escaping its quote); preserve snapshot content, TCC -B, native helper link and the complete space/punctuation path. Compare kept transformed vc line and run the exact space-paths-windows .\makev.bat -tcc command, then V self/tests and normal-path Windows TCC controls. Add a no-suppression batch command contract test. No test exclusion, timeout increase or self-hosted fallback assumption. A Linux static check would not prove native Windows behavior. Until that original job passes on a corrected descendant, keep fix-in-progress/blocked, not resolved.

Dominant language
V
Stars
38.1k
Forks
2.3k
Avg merge
1d 1h
Merged PRs (30d)
682

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from vlang/v

All issues in vlang/v

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.