No description
Removing WITH_RUST=1 changed nothing -- cargo was still invoked: CARGO target/release/libgitcore.a /bin/sh: line 1: cargo: command not found The Makefile reads `ifndef NO_RUST`, so Rust is built BY DEFAULT and the opt-out is NO_RUST. WITH_RUST=1 sets a variable the Makefile never reads. Deleting it was correct and insufficient, the worst combination: the hook reported success and the build failed identically. This is a stopgap, not a decision. Rust IS supportable here, and measured rather than assumed: rust-1.90.0-s390x-unknown-linux-gnu.tar.xz answers 200, and the host already carries rustc 1.85.1. The cost is llvm and clang, which Arch's rust lists as makedepends -- large, not impossible. It also cannot be avoided for long. ERPLibre's poetry.lock needs cryptography 46.0.5, jiter, orjson, pydantic-core and rpds-py, all of which build Rust from source where no wheel exists -- and none exists for s390x. --- FR --- Retirer WITH_RUST=1 n'a rien changé — cargo était toujours appelé : CARGO target/release/libgitcore.a /bin/sh: line 1: cargo: command not found Le Makefile dit `ifndef NO_RUST` : Rust est bâti PAR DÉFAUT et l'échappatoire est NO_RUST. WITH_RUST=1 définit une variable que le Makefile ne lit jamais. La supprimer était juste et insuffisant, la pire combinaison : le hook annonçait un succès et la construction échouait à l'identique. C'est un palliatif, pas une décision. Rust EST supportable ici, et mesuré plutôt que supposé : rust-1.90.0-s390x-unknown-linux-gnu.tar.xz répond 200, et l'hôte porte déjà rustc 1.85.1. Le coût est llvm et clang, que le rust d'Arch liste en makedepends — lourd, pas impossible. Et cela ne pourra pas être évité longtemps. Le poetry.lock d'ERPLibre exige cryptography 46.0.5, jiter, orjson, pydantic-core et rpds-py, qui tous compilent du Rust depuis les sources là où aucune roue n'existe — et il n'en existe pas pour s390x. Assisted-by: Claude Opus 5 |
||
|---|---|---|
| .github/workflows | ||
| arch-kernel | ||
| boot | ||
| patches | ||
| scripts | ||
| .env.example | ||
| .gitignore | ||
| CODEOWNERS | ||
| Containerfile | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
| RELAIS.md | ||
| TODO.md | ||
Arch Linux s390x
A port of Arch Linux to IBM s390x mainframe architecture with systemd support.
Boots a full Arch Linux system on IBM mainframes (or QEMU s390x emulation) using a hybrid build: cross-compilation for the kernel, native s390x compilation on z/VM for userspace.
Quick Start
make container # build dev container (first time)
cp .env.example .env # configure z/VM access
make all # build kernel + initramfs + systemd
make test-systemd # boot it
What Works
- Arch Linux kernel 6.18.6-arch1 with Arch patches, cross-compiled
- Initramfs via modified mkinitcpio
- Static busybox built natively on z/VM, 2.3MB
- Root filesystem with ext4, switch_root to real rootfs
- Systemd as PID 1
Pacman, bash, and GNU coreutils are not yet ported.
Build System
The build uses two tiers:
Cross-compilation (x86_64 host): Kernel is built in a Fedora 43 container with s390x-linux-gnu-gcc. Initramfs is generated with a patched mkinitcpio that handles cross-architecture binary injection.
Native compilation (s390x z/VM): Busybox and systemd must be built on real s390x hardware. The z/VM system runs RHEL 9.6 with GCC 11.5.0. Scripts handle SSH deployment and retrieval automatically via .env configuration.