From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Yegor Yefremov <yegorslists@googlemail.com>
Cc: buildroot@buildroot.org, James Hilliard <james.hilliard1@gmail.com>
Subject: Re: [Buildroot] [PATCH] utils/genrandconfig: reject qemu user mode on hosts with large pages
Date: Wed, 7 Oct 2026 09:58:23 +0200 [thread overview]
Message-ID: <asX7mjz_1woqApr2@windsurf> (raw)
In-Reply-To: <20260929090753.3570630-1-yegorslists@googlemail.com>
On Tue, Sep 29, 2026 at 11:07:53AM +0200, Yegor Yefremov via buildroot wrote:
> Qemu in user mode cannot load target binaries laid out for 4k pages
> when the host uses larger pages, as the 16k pages of the Asahi Linux
> kernel on Apple Silicon. The dynamic loader then fails with e.g.:
>
> GLib-2.0: error while loading shared libraries: libz.so.1: failed
> to map segment from shared object
>
> or, depending on the target:
>
> qemu-aarch64: .../GLib-2.0: Error mapping file: Invalid argument
> torque: error while loading shared libraries: libz.so.1: ELF load
> command address/offset not page-aligned
>
> This hits every package running target code through qemu at build
> time, i.e. gobject-introspection and nodejs, on mips, sparc64 and
> aarch64 alike, and is not something Buildroot can fix in the
> packages themselves.
>
> As this only depends on the build host, reject such configurations
> in genrandconfig when the host page size is larger than 4k.
>
> Fixes:
> https://autobuild.buildroot.org/results/4848e735fe83dfeef4f24d32655c567951fd113a (mips)
> https://autobuild.buildroot.org/results/089ddac5bdaaf5650cbc5c26d48952b5bede0ca6 (sparc64)
> https://autobuild.buildroot.org/results/c30c6719a0350370ebe3cfe262123727f4057734 (aarch64)
>
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> Assisted-by: Claude:claude-opus-5-5
Applied to master, thanks!
Best regards,
Thomas Petazzoni
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
prev parent reply other threads:[~2026-10-07 8:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-29 9:07 [Buildroot] [PATCH] utils/genrandconfig: reject qemu user mode on hosts with large pages Yegor Yefremov via buildroot
2026-10-07 7:58 ` Thomas Petazzoni via buildroot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=asX7mjz_1woqApr2@windsurf \
--to=buildroot@buildroot.org \
--cc=james.hilliard1@gmail.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=yegorslists@googlemail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox