Re: gobject-introspection build fails on armv7 / main

From: Mark Millard <marklmi_at_yahoo.com>
Date: Thu, 09 Feb 2023 04:27:36 UTC
On Feb 8, 2023, at 00:50, Andriy Gapon <avg@FreeBSD.org> wrote:

> The error looks a bit strange, does anyone have an idea what's happening?
> 
> ld-elf.so.1: /wrkdirs/usr/ports/devel/gobject-introspection/work/gobject-introspection-1.74.0/_build/tmp-introspectcd42kiao/GLib-2.0: mmap of entire address space failed: Cannot allocate memory
> /wrkdirs/usr/ports/devel/gobject-introspection/work/gobject-introspection-1.74.0/_build/tmp-introspectcd42kiao/GLib-2.0: exit status 1
> 
> http://ampere2.nyi.freebsd.org/data/main-armv7-default/pce69f38a72dd_s9c9501390/logs/errors/gobject-introspection-1.74.0,1.log
> 

That report is rather old:

=>> Building devel/gobject-introspection
build started at Sun Oct 23 14:13:55 UTC 2022
port directory: /usr/ports/devel/gobject-introspection
package name: gobject-introspection-1.74.0,1
building for: FreeBSD main-armv7-default-job-06 14.0-CURRENT FreeBSD 14.0-CURRENT 1400073 arm
. . .
Host OSVERSION: 1400063
Jail OSVERSION: 1400073
. . .
!!! Jail is newer than host. (Jail: 1400073, Host: 1400063) !!!
!!! This is not supported. !!!
!!! Host kernel must be same or newer than jail. !!!
!!! Expect build failures. !!!

Looking at main-armv7 builds via:

https://pkg-status.freebsd.org/?all=1&type=package

Tue, 01 Nov 2022 00:09:36 GMT's p932ed6a1a14f_se7fe037310 also failed.
It also has:

Host OSVERSION: 1400063
Jail OSVERSION: 1400073
. . .
!!! Jail is newer than host. (Jail: 1400073, Host: 1400063) !!!
!!! This is not supported. !!!
!!! Host kernel must be same or newer than jail. !!!
!!! Expect build failures. !!!

(Note that the "se7fe037310" identifies the Jail's OS commit, not the
HOST OS commit. That explains the lack of change for it below.)

But Tue, 15 Nov 2022 18:36:24 GMT's p97fda7e3a598_se7fe037310 worked.

The difference is:

Host OSVERSION: 1400073
Jail OSVERSION: 1400073

(And no notice about: Jail is newer than host
--or about the expectation of failures.)

FreeBSD's official package builders frequently
have: "Jail is newer than host." Sometimes it
causes problems, later fixed by updating the
HOST OS.

(This might be used as a form of detecting
unexpected breakage in the properties intended
for the KBI and/or ABI. Here, the building
machine actually runs aarch64 FreeBSD, so it
is also sort of a cross check on how well that
is working for armv7 on aarch64 hardware that
allows armv7 without qemu involved.)

===
Mark Millard
marklmi at yahoo.com