No description
gcc failed at stage 2 with gfortran: error: unrecognized argument in option '-march=x86-64' configure: error: GNU Fortran is not working; please report a bug ... Worth reading twice: gcc reported that its OWN freshly-built Fortran compiler was not working, when the compiler was fine and had been handed another architecture's flags. Everything about the message points at the wrong thing. Arch splits makepkg.conf into /etc/makepkg.conf.d/*.conf, read AFTER the main file. fortran.conf sets FFLAGS to the x86_64 list and FCFLAGS from it; rust.conf does the same for RUSTFLAGS. So the override appended to makepkg.conf was itself overridden -- silently, and only for the variables it did not mention. CFLAGS survived by luck: no drop-in sets it. Every flag variable now lives in a drop-in named to sort last, and the run prints which drop-ins are still read after it. A drop-in that does not sort last does nothing and looks like it worked. --- FR --- gcc a échoué à l'étage 2 sur gfortran: error: unrecognized argument in option '-march=x86-64' configure: error: GNU Fortran is not working; please report a bug ... À lire deux fois : gcc annonçait que SON PROPRE compilateur Fortran fraîchement bâti ne fonctionnait pas, alors qu'il allait bien et qu'on lui avait passé les drapeaux d'une autre architecture. Tout dans le message désigne la mauvaise chose. Arch éclate makepkg.conf en /etc/makepkg.conf.d/*.conf, lus APRÈS le fichier principal. fortran.conf met FFLAGS à la liste x86_64 et FCFLAGS d'après lui ; rust.conf fait de même pour RUSTFLAGS. Le remplacement ajouté en fin de makepkg.conf était donc lui-même écrasé — silencieusement, et seulement pour les variables qu'il ne nommait pas. CFLAGS a survécu par chance : aucun appoint ne le définit. Toutes les variables de drapeaux vivent maintenant dans un appoint nommé pour passer en dernier, et la construction affiche quels appoints sont encore lus après lui. Un appoint qui ne passe pas en dernier ne fait rien et en a l'air. Assisted-by: Claude Opus 5 |
||
|---|---|---|
| .github/workflows | ||
| arch-kernel | ||
| boot | ||
| patches | ||
| scripts | ||
| .env.example | ||
| .gitignore | ||
| CODEOWNERS | ||
| Containerfile | ||
| LICENSE | ||
| Makefile | ||
| README.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.