Skip to content

0.2.0: GNU/Hurd and Haiku (x86_64-hurd, x86_64-haiku), with import std and a runner each - #5

Merged
Sunrisepeak merged 3 commits into
mainfrom
hurd-haiku
Nov 19, 2026
Merged

Sunrisepeak merged 3 commits into
mainfrom
hurd-haiku

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

Two systems move here from the external validation project's own platforms (the ChenPi11/cmd fork's mcpp/platforms/), stated as docs/adding-a-system.md asks: 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.

Row Base C++ library Runner
x86_64-hurd xim:x86_64-hurd-sysroot@20260314: Debian's hurd-amd64 at the package versions of Debian's pre-installed image of 2026-03-14 the base's libstdc++ (GCC 15) Debian GNU/Hurd in QEMU (hurd-disk-image@20260314)
x86_64-haiku xim:x86_64-haiku-sysroot@hrev60431 (revision 1) the base's libstdc++ (GCC 15) Haiku hrev60431 in QEMU (haiku-disk-image@hrev60431)

import std

Both bases state GCC's std module sources with libstdc++'s include directories (openxlings/xim-pkgindex#1194):

  • Haiku's x86_64 <fenv.h> defines seven functions static __inline; its sysroot gives them external linkage in C++, so the std module can export them.
  • The Hurd base is taken at the versions of the image it runs in. With the previous base (sid of 2026-11-18, GCC 16's libstdc++), a C++ program did not start in that image: GLIBCXX_3.4.36' not found.

Measured locally (Linux x86_64)

The check (import std, an exception, its arguments), built for each row and run in the system's image through dirun, returned 7. The validation project's batch script (C) ran on both with the expected output.

CI builds both rows on the four hosts and runs them on Linux x86_64. The macOS and Windows builds of these two rows have not been measured before this PR.

…d 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.
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.
@Sunrisepeak
Sunrisepeak merged commit 96c67c9 into main Nov 19, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant