s390x

ScarletNX builds for 64-bit IBM Z Linux (s390x), z13 and later. It is a secondary architecture: CI doesn't build it, and support is the code and the preset below. No IBM Z machine has run it yet; Building says what ran under qemu-user.

Building

The linux-s390x-cross preset cross-builds with Clang and LLD against a system root of the architecture, as MIPS64's does. gnu-cross's buildroot (s390x-ibm-linux-gnu.tar.xz) is one: glibc in s390x-ibm-linux-gnu/sysroot, and GCC's runtime beside it, which Clang takes from the folder SNX_GCC_TOOLCHAIN names.

root=/path/to/s390x-ibm-linux-gnu
export SNX_SYSROOT=$root/s390x-ibm-linux-gnu/sysroot SNX_GCC_TOOLCHAIN=$root
cmake --preset linux-s390x-cross
cmake --build --preset linux-s390x-cross
ctest --preset linux-s390x-cross

The tests run under qemu-s390x with the sysroot as -L, and the ones that start a program of the target need a binfmt_misc handler for it, as MIPS64's do.

The test suite of this build has not been run under qemu-user yet.

What differs from the other hosts


Made from docs/hosts/s390x.md at 69237645142c. GPL-3.0-or-later.