git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 0/2] Few fixes for cross-compiling with Meson

From
Carlo Arenas <carenas@gmail.com>
Date
Dec 9, 2025, 00:44 UTC
Message-ID
<CAPUEspjifD8MYp6UR4pE91OqcJQdFafpeG8zNo1kfdxhnch_3A@mail.gmail.com>
In-Reply-To
<874iq1vxwt.fsf@iotcl.com>
On Mon, Dec 8, 2025 at 6:41 AM Toon Claes <toon@iotcl.com> wrote:
Show 10 quoted lines
>
> Carlo Marcelo Arenas Belón <carenas@gmail.com> writes:
>
> > On Tue, Dec 02, 2025 at 11:48:07AM -0800, Toon Claes wrote:
> >> 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.0

So 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
Previous: Toon ClaesNext: Toon Claes
Message 10 of 11 in “Few fixes for cross-compiling with Meson”
  1. 0/2 Few fixes for cross-compiling with MesonToon Claes, Dec 2, 2025
  2. 1/2 meson: ignore subprojects/.wraplockToon Claes, Dec 2, 2025
  3. 2/2 meson: only detect ICONV_OMITS_BOM if possibleToon Claes, Dec 2, 2025
  4. Patrick SteinhardtDec 2, 2025
  5. Toon ClaesDec 3, 2025
  6. 3/2 meson: use is_cross_build() where possibleToon Claes, Dec 3, 2025
  7. Patrick SteinhardtDec 4, 2025
  8. Carlo Marcelo Arenas BelónDec 7, 2025
  9. Toon ClaesDec 8, 2025
  10. Carlo ArenasDec 9, 2025
  11. Toon ClaesDec 11, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.