Skip to content

Commit 156fa61

Browse files
authored
The FreeBSD rows build on a Windows host: sysroot revision 2, mcpp 2026.11.18.1 (#4)
The two Windows cells of the FreeBSD rows return to the matrix. Five defects kept a host from building a row; the Hosts section states each and where it was corrected (mcpp 2026.11.17.2 and 2026.11.18.1, xlings 2026.11.17.1, the FreeBSD sysroot packages' revision 2, the index entry's hosts).
1 parent 80575dd commit 156fa61

3 files changed

Lines changed: 17 additions & 28 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
# build every row's check (checks/hello: the std module, an exception, its
44
# arguments) is built on each host (Linux x86_64 and aarch64, macOS
55
# arm64, Windows x86_64), and the artifact is an ELF executable of
6-
# the row's system and machine (docs/adding-a-system.md, "Hosts").
7-
# The FreeBSD rows are not built on Windows: its lld reads no
8-
# zlib-compressed section, and FreeBSD's crt objects hold some;
6+
# the row's system and machine (docs/adding-a-system.md, "Hosts");
97
# run on Linux x86_64, every row with a runner runs the check through
108
# `mcpp run`: dirun boots the system's disk image under QEMU, and the
119
# program's output and status (7) come back.
@@ -22,7 +20,7 @@ concurrency:
2220
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
2321

2422
env:
25-
MCPP_VERSION: "2026.11.17.2"
23+
MCPP_VERSION: "2026.11.18.1"
2624

2725
jobs:
2826
build:
@@ -32,9 +30,6 @@ jobs:
3230
matrix:
3331
os: [ubuntu-24.04, ubuntu-24.04-arm, macos-15, windows-2025]
3432
row: [x86_64-freebsd, aarch64-freebsd, x86_64-netbsd, aarch64-netbsd, x86_64-openbsd, aarch64-openbsd]
35-
exclude:
36-
- { os: windows-2025, row: x86_64-freebsd }
37-
- { os: windows-2025, row: aarch64-freebsd }
3833
runs-on: ${{ matrix.os }}
3934
timeout-minutes: 60
4035
defaults:

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ mcpp run --target x86_64-netbsd # once the row's runner is enabled
2020
| `x86_64-openbsd` | `xim:x86_64-openbsd-sysroot@8.0` | the base's libc++ | OpenBSD 8.0 in QEMU (dirun) |
2121
| `aarch64-openbsd` | `xim:aarch64-openbsd-sysroot@8.0` | the base's libc++ | none |
2222

23-
The rows build on Linux x86_64 and aarch64 and on macOS arm64; on Windows x86_64
24-
the NetBSD and OpenBSD rows build and the FreeBSD rows do not link yet, from mcpp
25-
2026.11.17.2 ([docs/adding-a-system.md](docs/adding-a-system.md#hosts)).
23+
The rows build on every host mcpp runs on (Linux x86_64 and aarch64, macOS
24+
arm64, Windows x86_64) from mcpp 2026.11.18.1
25+
([docs/adding-a-system.md](docs/adding-a-system.md#hosts)).
2626

2727
Every row compiles `import std`. NetBSD's own C++ library is GCC 10's
2828
libstdc++, which ships no module sources; its rows take the C++ layer from

‎docs/adding-a-system.md‎

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,31 +25,25 @@ links with, or clang's Solaris driver gives lld the GNU options.
2525

2626
## Hosts
2727

28-
The rows build on the hosts mcpp runs on, each checked by this repository's CI:
28+
The rows build on every host mcpp runs on, each checked by this repository's
29+
CI: Linux x86_64 and aarch64, macOS arm64 and Windows x86_64. The row, not the
30+
host, decides a cross build: the artifact is an ELF executable of the row's
31+
system, and the sysroot package is the only source of headers, crt objects and
32+
libraries.
2933

30-
| Host | NetBSD, OpenBSD | FreeBSD |
31-
|---|---|---|
32-
| Linux x86_64, aarch64 | built | built |
33-
| macOS arm64 | built | built |
34-
| Windows x86_64 | built | not linked |
35-
36-
The row, not the host, decides a cross build: the artifact is an ELF executable
37-
of the row's system, and the sysroot package is the only source of headers, crt
38-
objects and libraries. This holds from mcpp 2026.11.17.2 and xlings
39-
2026.11.17.1. Measured in the CI of 0.1.0 with mcpp 2026.11.17.1, two defects
40-
let the host's conventions reach the row, and both are corrected there:
34+
Measured in the CI of 0.1.0, five defects kept a host from building a row; each
35+
is corrected where it was:
4136

4237
| Defect | Seen as | Corrected in |
4338
|---|---|---|
4439
| The object format of a row with no format word in its triple was taken from the host | macOS: the Apple SDK's headers in the std module's compile, the Mach-O linker given ELF options; Windows: the link line without the row's sysroot | mcpp 2026.11.17.2 |
4540
| A link to a directory extracted on Windows was a file link | Windows: the sysroot's headers not opened (`sys/cdefs.h`) | xlings 2026.11.17.1 |
41+
| FreeBSD's crt objects and static archives hold zlib-compressed debug sections, and the lld of the Windows LLVM payload is built without zlib | Windows: the FreeBSD rows compiled and did not link (`is compressed with ELFCOMPRESS_ZLIB, but lld is not built with zlib support`) | the FreeBSD sysroot packages, 14.5 revision 2 (the sections decompressed, their contents unchanged) |
42+
| A built-in row whose system had no naming branch in the engine was named by the host | Windows: the FreeBSD rows built `bin/hello.exe` and archives `.lib`, where this package's NetBSD and OpenBSD rows, whose facts are data, were named correctly | mcpp 2026.11.18.1 (a row's object format and suffixes are read from data: the row, its system, the format's convention) |
43+
| The package's index entry listed Linux hosts only | macOS, Windows: a project naming `mcpp.platforms@0.1.0` from the index could not install it (`has no build for windows`) | mcpp-index (the entry lists every host) |
4644

47-
One case remains. On a Windows host the FreeBSD rows compile and do not link:
48-
FreeBSD's `crtend.o` and `libgcc.a` hold debug sections compressed with zlib,
49-
and the lld of the Windows LLVM payload is built without zlib (`ld.lld: error:
50-
... is compressed with ELFCOMPRESS_ZLIB, but lld is not built with zlib
51-
support`). The correction belongs to that payload; until then those two rows
52-
are not in the Windows build matrix.
45+
A base whose link inputs a linker cannot read is the base's to correct: a
46+
sysroot package states in its `PROVENANCE.md` what it changed of the release.
5347

5448
A row runs where its runner does: the disk images boot under QEMU on Linux
5549
x86_64, which is where the CI runs them.

0 commit comments

Comments
 (0)