CI: Windows FastC shared-library flag path normalization disagrees with POSIX-only fixture

Open
#32,764 0 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
22/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
c
Domain
compilers

Research direction

Start with fastc_c_flag_args and the test test_fastc_shared_library_source_flags_keep_relative_paths in vlib/v/gen/fastc/loom2v_test.v around lines 260-266. Reproduce the case with a relative and a POSIX-absolute source path on Windows and on Unix to see where the drive letter is added. Done means the test passes on both platforms with path expectations that match the intended semantics, without removing the assertion.

Written by the indexing model from the issue text.

Description

Executed historical Windows failure (separate from the same job's _wgetcwd error)

  • Master 593657221cd2ef2063d41979a7b827e8cb12ecd5, Windows MSVC shard0 job 137340664778, completed 2026-11-22 22:28:41 UTC.
  • In vlib/v/gen/fastc/loom2v_test.v:260–266, test_fastc_shared_library_source_flags_keep_relative_paths calls fastc_c_flag_args('./lib/libexample.dylib', @VEXEROOT, '/tmp/project/source.v') and strictly expects ['/tmp/project/lib/libexample.dylib']. It instead receives ['D:\\tmp\\project\\lib\\libexample.dylib'] on the Windows worker. The other test in the same job fails for distinct _wgetcwd generated-C prototype handling (tracked separately as #32763). This is a real assertion failure, not an intentional harness test.
  • Test source is unchanged on current master 44bbfa439042a8b027d7132885c01c4ef2f6438c; the failing older commit alone does not establish when it was introduced.

Root-cause hypothesis and next action

The test supplies a POSIX absolute source path as a synthetic input while running under Windows, whose path resolution normalizes that to the current drive. Investigate whether fastc_c_flag_args is contractually host-native or should preserve POSIX spelling for cross-compilation. Reduce both real relative and synthetic absolute inputs on Windows/Unix. Keep strict expected path normalization per intended platform semantics, verifying library filename, base directory, and all four suffix forms. Do not simply remove/skip the assertion or conceal an actual cross-compilation bug.

Normalized R397, first/last observed 2026-11-22 22:28 UTC. Status investigating/still source-applicable, native fixed revision/Windows and Linux controls unavailable.

[!NOTE]
You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

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 Compilers issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.