CI: Ubuntu musl headerless bootstrap target check rejects noncanonical macOS Clang triple (R383)

Open
#32,737 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
50/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
c, github-actions

Research direction

The failing check is test_linux_generated_self_c_compiles_for_bootstrap_targets in vlib/v/gen/c/headerless_program_test.v around line 328, where the target list still uses arm64-apple-macos13 and x86_64-apple-macos12. Start by reading that target table and running clang -target <triple> -fsyntax-only on a small C file to compare the macos and macosx spellings. Done means the candidate triples are confirmed against the Ubuntu musl CI job, with all targets and exit-code assertions kept; the fix is not yet verified.

Written by the indexing model from the issue text.

Description

Actual executed master failure (not a queued workflow)

On master f60a27d4b072e47dda80a21db0af579106ce0a11, Ubuntu musl workflow job 137163734009 finished 2026-11-22 11:59:16 UTC. The VLIB suite executed and reported one failure in vlib/v/gen/c/headerless_program_test.v:328, test_linux_generated_self_c_compiles_for_bootstrap_targets after thousands of passing tests. It invoked Clang with -target arm64-apple-macos13 and failed before validating the portable generated C: clang: error: invalid Darwin version number: macos13 / invalid version number in '-target arm64-apple-macos13'. Not the prior R376 SQLite nested Clang-vs-musl failure: that cached-dispatch test is excluded on f60, which remains a separate coverage loss.

Failing/current-master headerless_program_test.v still lists arm64-apple-macos13 and x86_64-apple-macos12 (unchanged from historical 11ecc). LLVM target-triple documentation uses canonical -apple-macosx<version>. Proposed minimal fix: use arm64-apple-macosx13 and x86_64-apple-macosx12, preserving both Apple architectures and versions plus all nine other target validation cases and all assert checked.exit_code == 0 checks. This is compiler/test-toolchain compatibility, not a generated-C assertion to suppress.

Validation and classification

I personally executed local Clang 17 -target ... -fsyntax-only probes and confirmed the canonical macosx triples are recognized. Local Clang 17 also tolerates the old macos alias, so this is not a local before/after reproduction of the exact failing Clang installation; the original failed hosted Clang log is authoritative. No complete V source/vlib checkout, formatter, or equivalent musl Clang toolchain is locally accessible. Investigating / candidate fix; do not claim verified resolved until the exact Ubuntu musl headerless_program_test.v and Linux/macOS Clang controls pass on a fixed commit. Do not extend timeouts, skip targets, or disable checks.

[!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 Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.