Re: [PATCH 0/2] Few fixes for cross-compiling with Meson
From: Carlo Arenas <hidden>
Date: 2025-12-09 00:44:18
On Mon, Dec 8, 2025 at 6:41 AM Toon Claes [off-list ref] wrote:
Carlo Marcelo Arenas Belón [off-list ref] writes:quoted
On Tue, Dec 02, 2025 at 11:48:07AM -0800, Toon Claes wrote:quoted
I was cross-compiling for s390x.Just to clarify, you mean Linux on IBM Z/LinuxOne, not 64bit ZOS/ZVM, right?I'm sorry, I'm not aware of the correct terminology here.
IBM marketing doesn't make it easier, but yes IBM mainframes can run multiple OS, and I have to admit I was kind of surprised to read we had a working meson cross compilation for Z/OS, because I know that at least cmake has issues even building natively.
If I run file(1) on the compiled binary, I'm getting:
ELF 64-bit MSB pie executable, IBM S/390, version 1 (SYSV),
dynamically linked, interpreter /lib/ld64.so.1, for GNU/Linux 3.2.0So this is 64-bit Big Endian linux for the s390x architecture (likely compatible with z13 or higher CPUs) I happen to have one of those under the desk running RHEL9/s390x, so will be happy to test your crosscompiled binaries, assuming it is as simple as installing them somewhere and running something like `make test` Carlo