You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 96c67c9
Browse filesBrowse the repository at this point in the historyBrowse files
0.2.0: GNU/Hurd and Haiku (x86_64-hurd, x86_64-haiku), with import std and a runner each (#5)
* 0.2.0: GNU/Hurd and Haiku (x86_64-hurd, x86_64-haiku), with import std and a runner each
Two systems move here from the external validation project's own
platforms (ChenPi11/cmd fork, mcpp/platforms/), as docs/adding-a-system.md
states a system: the system, a row, a provider over a sysroot package of
xim and a dirun runner over the system's disk image, enabled on request.
- GNU/Hurd: Debian's hurd-amd64 base at the package versions of Debian's
pre-installed image of 2026-03-14 (xim x86_64-hurd-sysroot@20260314),
run in that image (hurd-disk-image@20260314). The compiler's run-time is
the base's libgcc (cfg(os = "hurd") ldflags).
- Haiku: hrev60431's base with GCC's run-time from HaikuPorts
(x86_64-haiku-sysroot@hrev60431, revision 1), run in an image of the same
revision (haiku-disk-image@hrev60431).
Both bases state GCC 15's std module sources, so both rows compile
import std (openxlings/xim-pkgindex#1194). Measured on Linux x86_64: the
check (import std, an exception, its arguments) built for each row and run
in the system's image returned 7. CI builds both rows on the four hosts and
runs them on Linux x86_64.
* The hosts GNU/Hurd and Haiku do not build on, each with its cause
Measured in this PR's CI: on Windows the std module's precompile of a
libstdc++ base gets neither its include directories nor -nostdinc++
(mcpp-community/mcpp#965); on macOS, whose default file system is
case-insensitive, Haiku's <string.h> is its BeAPI String.h, since clang's
Haiku driver searches os/support before posix. CI does not build those
three pairs; docs/adding-a-system.md and the README state them.
* ci: the comment on the Windows exception says what happens
Copy file name to clipboardExpand all lines: docs/adding-a-system.md
+23-1Lines changed: 23 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,8 @@ document states the procedure and what each part must hold.
13
13
| FreeBSD 14.5 |`x86_64-freebsd`, `aarch64-freebsd` (mcpp's built-in rows) | the release's base set | both |`preview`|
14
14
| NetBSD 10.2 |`x86_64-netbsd`, `aarch64-netbsd`| the release's base and comp sets; the C++ layer is libc++ from source (`llvm.libcxx`) | x86_64 |`preview`|
15
15
| OpenBSD 8.0 |`x86_64-openbsd`, `aarch64-openbsd`| the release's base and comp sets | x86_64 |`preview`|
16
+
| GNU/Hurd (Debian, hurd-amd64) |`x86_64-hurd`| the packages of Debian's pre-installed image of 2026-03-14, from the archive's snapshot of that day; the C++ layer is GCC 15's libstdc++ | x86_64 |`preview`|
17
+
| Haiku hrev60431 |`x86_64-haiku`| the revision's system and development packages, with GCC's run-time from HaikuPorts; the C++ layer is GCC's libstdc++ | x86_64 |`preview`|
16
18
| illumos (OmniOS r151054) | none | assembled, not published | measured | not included: see below |
17
19
18
20
illumos is not included. Its sysroot and disk image were assembled, and C and
@@ -45,6 +47,15 @@ is corrected where it was:
45
47
A base whose link inputs a linker cannot read is the base's to correct: a
46
48
sysroot package states in its `PROVENANCE.md` what it changed of the release.
47
49
50
+
Two rows of 0.2.0 do not build on every host, measured in its CI:
51
+
52
+
| Row | Host | Cause | Where it is corrected |
53
+
|---|---|---|---|
54
+
|`x86_64-hurd`, `x86_64-haiku`| Windows | the std module's precompile is given neither the base's include directories nor `-nostdinc++`, for a base whose C++ library is libstdc++ (`'bits/stdc++.h' file not found`) | mcpp ([mcpp#965](https://github.com/mcpp-community/mcpp/issues/965)) |
55
+
|`x86_64-haiku`| macOS | Haiku's headers hold `posix/string.h` and `os/support/String.h`, and clang's Haiku driver searches `os/support` first: on a case-insensitive file system (macOS's default) `<string.h>` is BeAPI's `String.h`| not by a package: Haiku's own build asks for a case-sensitive file system on macOS |
56
+
57
+
CI does not build those pairs; every other pair of a row and a host builds.
58
+
48
59
A row runs where its runner does: the disk images boot under QEMU on Linux
49
60
x86_64, which is where the CI runs them.
50
61
@@ -69,7 +80,18 @@ made it.
69
80
70
81
Every row compiles `import std`. A base whose C++ library ships module sources
71
82
states them (`std-module`, [mcpp docs/22](https://github.com/mcpp-community/mcpp/blob/main/docs/22-target-side.md)); FreeBSD and OpenBSD ship libc++, and
72
-
their sysroots carry the module sources of its release. A system whose C++
83
+
their sysroots carry the module sources of its release. GNU/Hurd and Haiku ship
84
+
GCC 15's libstdc++, whose module sources (`bits/std.cc`) their sysroots state
85
+
with libstdc++'s include directories. A C header that defines a function with
86
+
internal linkage which the std module exports is the base's to correct: Haiku's
87
+
x86_64 `<fenv.h>` defines seven `static __inline`, and its sysroot gives them
88
+
external linkage in C++ (stated in its `PROVENANCE.md`).
89
+
90
+
The base and the image are of one release: a program is built against the
91
+
libraries it runs with. Measured on GNU/Hurd: a C++ program built against the
92
+
libstdc++ of `sid` of 2026-11-18 did not start in the image of 2026-03-14
93
+
(`GLIBCXX_3.4.36' not found`); the base is taken from the archive's snapshot of
94
+
the image's day. A system whose C++
73
95
library ships none (NetBSD: GCC 10's libstdc++) takes the C++ layer from a
74
96
package instead, libc++ built from source over the system's C library:
0 commit comments