Skip to content

Commit 367a593

Browse files
authored
2026.11.22.1: the platform column refreshes only for a refused request (mcpp#996), i686-windows-msvc is a row, one name per index location, an installed toolchain's companions (#1001)
* fix: a miss of the platform column refreshes the index only for a request refused without a platform (mcpp#996) A custom triple a [target.<triple>] section defines, and a planned row built with a named toolchain, are built without a platform; their column miss went to the refresh policy as a refusal, so every such build more than the debounce apart synced the index. One predicate, reading the section lookup and the named toolchain the refusal gates read, now decides; platform = "none" in a table ends the lookup as --platform none does (SPEC-013 §14 item 6, e2e 1145). * feat: i686-windows-msvc is a preview row of the target table, served by the msvc provider (mcpp#996) The msvc probe already answered the 32-bit x86 ABI and Windows CI built and ran it through a [target.i686-windows-msvc] section (e2e 892). The row is data: the msvc provider serves it, and x86_64 Windows runs its programs (WOW64), which e2e 892 and 1144 measure. The target matrix and the canary matrix declare its cells. * fix: two index entries naming one location are refused, naming both (index-location-named-twice) A member's [indices] entry beside its workspace's [workspace.indices] entry for the same directory registered the directory twice, and each of its packages was two candidates of one name: the install stopped at the provider as ambiguous and named neither entry (measured on mcpp-index). The build and mcpp index update refuse it with the location and the remedy (SPEC-004 §9, e2e 1146). * test: RunExec's queued-output cases bound the property, not the producer's start The producer is the test program started again; on a loaded macOS runner it wrote no line inside a 500 ms idle bound (exit 137, timed out, 0 lines). The idle bound is 2 s and the handler sleeps past it while the lines queue; a failure states when the ready line arrived and how many lines were read. * chore: mtest 0.11.3 for the scaffold and the tests; bootstrap from 2026.11.21.1 * docs: the round's wrap-up plan (design 2026-11-22) and its CHANGELOG entries * fix: an installed toolchain's companions are the ones its installed descriptor declares, not the index's current one xim's gcc recipe moved binutils from 2.42.1 to 2.47 on 2026-11-21. mcpp 2026.11.21.1 read the declaration from the index, so a gcc@16.1.0 installed beside binutils 2.42.1 was given no binutils after an index update and its build stopped at "cannot execute 'as'" (measured on the hermetic e2e job with a restored home). The payload's own .xpkg.lua, kept by the installer, is read first (design 2026-11-21 §3.5: the payload's install record). * docs: the plan's findings during implementation; the bootstrap pin stays until the release that fixes the companion choice * fix: a companion is the first declaration the store holds, the installed descriptor's and then the index's A home that links a payload from an [xlings] upstream carries the upstream's descriptor beside it and installs the companions the index names: there the installed descriptor names a binutils the store does not hold. Both records are read in order and the first the store satisfies decides; the payload's own declaration stays the first. * test: one directory per index name in the fixtures; the surface and the target rows record the round's additions names/162 and lock/203 named one directory under two index names, which the build now refuses. The golden surface lists the reason index-location-named-twice; the target-row snapshot records i686-windows-msvc, which --target i686-windows and x86-windows-msvc now select. The refusal is stated for the commands that register indices. * docs: the plan's findings -- the companion's two records, the lld collection of import slots (mcpp#1002), the fixtures, the template audit * 2026.11.22.1 * test: an x86_64 Windows machine executes i686, as the execution table states (WOW64); SPEC-016 §2.4 states the row The windows unit lane's PlatformRun/TheRunnerReachesTheArtifactsArchitecture expected a same-arch runner to refuse an i686 artifact on every system but Linux; the execution table now states windows-x86_64 -> i686.
1 parent b9b6386 commit 367a593

60 files changed

Lines changed: 881 additions & 162 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.agents/docs/2026-11-22-test-round-wrap-up-plan.md‎

Lines changed: 273 additions & 0 deletions
Large diffs are not rendered by default.

‎.agents/docs/README.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ superseded_by: 2026-09-07-....md # when status is superseded
1818
---
1919
```
2020

21-
371 records.
21+
372 records.
2222

2323
## By subject
2424

@@ -135,6 +135,7 @@ Records that declare one. Everything else is listed by date below.
135135

136136
### plan
137137

138+
- [测试与 CI 一轮的收尾:平台列未命中的刷新条件(mcpp#996)、`i686-windows-msvc` 行、工作区索引与引号键的迁移、索引的全量验证](2026-11-22-test-round-wrap-up-plan.md) — active
138139
- [Eight reports after 2026.9.27.1: implementation plan](2026-09-27-eight-reports-implementation-plan.md) — active
139140
- [#690: implementation plan](2026-09-25-issue-690-implementation-plan.md) — landed
140141
- [工具链选择与载荷可信度:实施计划](2026-09-24-toolchain-selection-implementation-plan.md) — landed
@@ -213,6 +214,7 @@ Records that declare one. Everything else is listed by date below.
213214

214215
### 2026-11
215216

217+
- [测试与 CI 一轮的收尾:平台列未命中的刷新条件(mcpp#996)、`i686-windows-msvc` 行、工作区索引与引号键的迁移、索引的全量验证](2026-11-22-test-round-wrap-up-plan.md) — active
216218
- [包的特性作为机器可读的回答:一个目录项,两种来源,三种状态(mcpp#992)](2026-11-21-package-features-query-design.md) — active
217219
- [离线、宿主输入与工具链的缺省:按内容取归档的来源、项目的取齐、宿主输入的声明、工具链的解析与锁、缺省版本的规则(mcpp#988、#989、#990)](2026-11-21-offline-host-inputs-and-toolchain-defaults-design.md) — active
218220
- [构建程序的输入由观测给出:编译读到的文件、三道闸门的同一份记录、头文件的用法提示、提示的统一机制、契约中名字的歧义(mcpp#991、#852)](2026-11-21-build-program-observed-inputs-design.md) — active

‎CHANGELOG.md‎

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,21 @@
44
> Each `## [<version>]` section is that release's notes. Entries are written in English
55
> from 2026.9.28.3 on; earlier entries remain as written.
66

7-
## [Unreleased]
7+
## [2026.11.22.1] - 2026-11-22
8+
9+
### Added
10+
11+
- `i686-windows-msvc`, the 32-bit x86 Microsoft ABI, is a `preview` row of the target table,
12+
served by the msvc provider as `x86_64-windows-msvc` is; x86_64 Windows runs its programs
13+
(WOW64). A project needs no `[target.i686-windows-msvc]` section to build it, and no platform is
14+
looked up for it. `--target i686-windows` and `x86-windows-msvc` select it; before, they
15+
selected no row. Under clang 23 its `import std` builds at C++20 only (docs/20) (mcpp#996).
16+
17+
### Changed
18+
19+
- The framework mcpp scaffolds tests with and suggests where a package has none is mtest 0.11.3
20+
(`mtest gate` judges a ledger only for a set that runs every case; the library is
21+
source-compatible with 0.11.2).
822

923
### Fixed
1024

@@ -14,6 +28,26 @@
1428
not yet filled is absent. Before, only the declared directories were judged, by existence,
1529
so a reader beside a first fetch skipped the refresh and reported no local package index
1630
(mcpp#927, design 2026-11-12 §18 P3).
31+
- A request built without a platform refreshed the package index on every build more than the
32+
debounce apart: a miss of the index's platform column refreshed for every row the engine does
33+
not know and every `planned` one, and a custom triple a `[target.<triple>]` section defines, or
34+
a `planned` row built with a named toolchain, is not refused for want of a platform (12 to 19 s
35+
a build for `i686-windows-msvc` with a section). Only a request refused without a platform
36+
refreshes now, judged by the facts the refusal reads; `platform = "none"` in a table ends the
37+
lookup as `--platform none` does (SPEC-013 §14, mcpp#996).
38+
- Two entries of a project's effective `[indices]` that name one location -- a member's beside
39+
its workspace's `[workspace.indices]`, or two in one manifest -- registered the location twice,
40+
and installing any package of it stopped at the provider as ambiguous, naming neither entry.
41+
The build and `mcpp index update` refuse it now, naming both entries, the location and the
42+
remedy (`index-location-named-twice`, SPEC-004 §9).
43+
- An installed GCC's companions (binutils, the Linux headers) were read from the index's current
44+
descriptor of the toolchain, not from the descriptor the payload was installed with. When xim's
45+
gcc recipe moved binutils from 2.42.1 to 2.47, a gcc@16.1.0 installed beside binutils 2.42.1 was
46+
given no binutils after `mcpp index update`, and its builds stopped at "cannot execute 'as'". The
47+
installed descriptor is read first now, then the index's, and the first declaration the store
48+
holds decides: a home that links the payload from an `[xlings] upstream` holds the companions
49+
the index names, beside the upstream's descriptor (SPEC toolchain-management §2.9, design
50+
2026-11-21 §3.5).
1751
- `mcpp test` counts a suite run as a case by its cases on the program's line as the summary
1852
does: an mtest program of one suite and seven cases read `8 cases` on its line and
1953
`7 passed` in the summary.

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ list` reports for this machine):
444444
| `aarch64-linux-musl` | gcc 16, fully static — cross from x86_64 (qemu) or native | verified |
445445
| `x86_64-windows-gnu` | gcc 16 MinGW-w64 — native on Windows, cross from Linux (wine) *(Windows default without Visual Studio)* | verified |
446446
| `x86_64-windows-msvc` | `msvc@system` (detected VS/BuildTools) or llvm ¹ *(Windows default with Visual Studio)* | verified |
447+
| `i686-windows-msvc` | `msvc@system` or llvm ¹ — 32-bit x86, run by WOW64 on x86_64 Windows | preview |
447448
| `x86_64-windows-musl` | llvm 23 — a PE with a musl C library, which no gcc emits; the system comes from the dependency graph | preview |
448449
| `aarch64-macos` | llvm *(macOS default)* | verified |
449450
| `aarch64-macos-musl` · `x86_64-macos-musl` | llvm 23 — a Mach-O with a musl C library from the dependency graph, built on any host *(what `aarch64-macos` is off macOS)* | preview |

‎README.zh-CN.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ mcpp 的身份模型有两条正交的轴:**工具链**是 `family@version`(
393393
| `aarch64-linux-musl` | gcc 16,全静态;从 x86_64 交叉编译(qemu)或原生构建 | verified |
394394
| `x86_64-windows-gnu` | gcc 16 MinGW-w64;Windows 上原生构建,Linux 上交叉编译(wine)(*无 Visual Studio 时的 Windows 默认*) | verified |
395395
| `x86_64-windows-msvc` | `msvc@system`(探测 VS/BuildTools)或 llvm ¹(*有 Visual Studio 时的 Windows 默认*) | verified |
396+
| `i686-windows-msvc` | `msvc@system` 或 llvm ¹;32 位 x86,在 x86_64 Windows 上由 WOW64 运行 | preview |
396397
| `x86_64-windows-musl` | llvm 23;带 musl C 库的 PE,gcc 无法产出;系统部分由依赖图提供 | preview |
397398
| `aarch64-macos` | llvm(*macOS 默认*) | verified |
398399
| `aarch64-macos-musl` · `x86_64-macos-musl` | llvm 23;带 musl C 库的 Mach-O,系统部分由依赖图提供,任意宿主可构建(*非 macOS 宿主上的 `aarch64-macos`*) | preview |

‎bench/mcpp.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ windows = "llvm@23.1.3"
2121
# small fixture. `mcpp build` ignores [dev-dependencies], so the harness itself
2222
# still takes nothing beyond `import std;`.
2323
[dev-dependencies]
24-
mcpplibs.mtest = "0.11.2"
24+
mcpplibs.mtest = "0.11.3"

‎docs/05-dependencies.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ not deprecated:
6767

6868
```toml
6969
[dev-dependencies]
70-
mcpplibs.mtest = "0.11.2"
71-
"mcpplibs.mtest.gtest" = "0.11.2"
70+
mcpplibs.mtest = "0.11.3"
71+
"mcpplibs.mtest.gtest" = "0.11.3"
7272
```
7373

7474
```toml
@@ -483,7 +483,7 @@ refreshing it reads the local index at once, unless an index the home reads (the
483483
provider's own, `xim`, or one the home declares) has no packages yet; it then
484484
waits for that refresh and reads what it fetched, instead of reporting no local
485485
package index *(2026.11.13.1+; the provider's own index and a directory not yet
486-
filled, @NEXT@+, mcpp#927)*.
486+
filled, 2026.11.22.1+, mcpp#927)*.
487487

488488
Run any command with `-v` to see the decision for each dependency and why.
489489

‎docs/07-workspace.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,15 @@ and a member reached as a dependency does not (mcpp 2026.10.11.1+; before that
239239
release a member reached as a dependency received it and was refused for
240240
stating an override).
241241

242+
`[workspace.indices]` merges with a member's `[indices]` by name, the member's
243+
entry of a name first. When two entries of the result name one location (one
244+
directory, or one repository at one pin), the build and `mcpp index update`
245+
refuse it with `index-location-named-twice`: the location would be registered
246+
twice, and each of its packages would be two candidates of one name. The remedy keeps one name: drop one entry, or, when one
247+
of them is a workspace entry, state the index in the members that use it
248+
instead *(2026.11.22.1+; before, the install failed as ambiguous and named neither
249+
entry)*.
250+
242251
A conditional row counts as it evaluates for the target being built: a
243252
`dialect_cxxflags` or `.abi` row for another target does not separate a member
244253
from the others (§5.4), and one that holds is applied when the member is built

‎docs/20-toolchains.md‎

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,18 @@ compared nor remembered.
213213

214214
A managed toolchain's companions -- the binutils GCC assembles and links with,
215215
the Linux kernel headers of the glibc base, GCC's runtime libraries -- are the
216-
versions its payload declares as runtime dependencies for this host. A store
217-
that holds several versions answers with the declared one; without a
218-
declaration, with the newest. A declared version the store does not hold is
219-
reported as a degradation; `mcpp toolchain install` installs it again.
216+
versions its payload declares as runtime dependencies for this host. Two
217+
descriptors declare them, read in order: the one the payload was installed with,
218+
which the installer keeps beside it, then the index's current one; the first
219+
declaration the store holds decides *(2026.11.22.1+)*. An index update that moves the
220+
declaration does not take the companions from an installed toolchain; before,
221+
an installed GCC lost its binutils when xim's recipe moved to a version the
222+
store did not hold. A home that links the payload from an `[xlings] upstream`
223+
holds the companions the index names, beside the upstream's descriptor, and
224+
takes those. A store that holds several versions answers with the declared one;
225+
without a declaration, with the newest. Declarations the store holds none of
226+
are reported as a degradation; `mcpp toolchain install` installs what they
227+
name.
220228

221229
A project may state the binutils beside a GCC:
222230

@@ -1648,8 +1656,10 @@ dialect_cxxflags = ["-D__cpp_impl_coroutine=201902L"]
16481656

16491657
In `cxxflags` the std module's precompile does not see it.
16501658

1651-
`i686-windows-msvc` is not a row of the target table; a project that builds
1652-
for it declares `[target.i686-windows-msvc]`, as for any custom triple.
1659+
`i686-windows-msvc` is a `preview` row of the target table *(2026.11.22.1+,
1660+
mcpp#996)*, served by the msvc provider as `x86_64-windows-msvc` is; x86_64
1661+
Windows runs its programs (WOW64). A project needs no `[target.i686-windows-msvc]`
1662+
section to build it. Before, it was a custom triple that required the section.
16531663

16541664
## Known Toolchain Limitation: GCC Modules Under a Non-ASCII Path (gcc 16)
16551665

‎docs/21-the-target-triple.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ what every `else` branch in the tree assumes. So the format is now one answer:
106106
|---|---|
107107
| `x86_64-linux-gnu`, `aarch64-linux-android`, `riscv64-none-elf`, `x86_64-openkal` | ELF |
108108
| `aarch64-macos`, `aarch64-ios` | Mach-O |
109-
| `x86_64-windows-gnu`, `x86_64-windows-msvc` | PE |
109+
| `x86_64-windows-gnu`, `x86_64-windows-msvc`, `i686-windows-msvc` | PE |
110110
| `wasm32-emscripten` | wasm |
111111

112112
It is **not** the same question as "is there an operating system to link
@@ -551,6 +551,7 @@ provider's runner ([41](41-devices.md)).
551551
| `aarch64-windows-gnu` | preview | `llvm@23.1.3` | base | base | base | base |
552552
| `x86_64-windows-musl` | preview | `llvm@23.1.3` | graph | graph | graph | payload |
553553
| `x86_64-windows-msvc` | verified | — | — | — | — | system |
554+
| `i686-windows-msvc` | preview | — | — | — | — | system |
554555
| `aarch64-macos` | verified | — | — | — | SDK | — |
555556
| `x86_64-macos` | planned | — | planned | planned | planned | planned |
556557
| `aarch64-macos-musl` | preview | `llvm@23.1.3` | graph | graph | graph | graph |
@@ -599,6 +600,7 @@ vocabulary, nothing wired yet.
599600
| `*-freebsd` | every host, through a platform | the rows are built-in; a platform names each identity's FreeBSD base package (`xim:x86_64-freebsd-sysroot`, `xim:aarch64-freebsd-sysroot`) and is selected with `[target.<row>] platform`, or by any selector the row meets (`[target.freebsd]`, `cfg(os = "freebsd")`); another platform package's provider does not compete with the chosen platform |
600601
| `*-freebsd-musl` | every host, through the graph | openkal-platform's hosted part (0.28.0): openkal-musl over openkal-freebsd standalone, one static program; a request of `<arch>-freebsd` with no platform selected for it takes this identity (2026.11.10.2+), as `aarch64-macos` takes the musl identity on a host that is not a Mac |
601602
| `x86_64-windows-msvc` | Windows | MSVC is located on the machine |
603+
| `i686-windows-msvc` | Windows | the same; x86_64 Windows runs the programs (WOW64), and under clang 23 its `import std` builds at C++20 only ([20](20-toolchains.md)) |
602604
| `x86_64-windows-musl` | Windows by payload; anywhere by graph | no gcc emits PE+musl, and LLVM cannot spell the triple |
603605
| `aarch64-macos` | macOS | the SDK is the machine's |
604606
| `*-none-elf` | every host | clang and lld are cross-compilers by construction |

0 commit comments

Comments
 (0)