[Bug 291390] emulators/qemu-user-static: poudriere build fails on both 14-STABLE and 15-STABLE

[email protected] Mon, 22 Jun 2026 22:55:12 +0000
Newsgroups gmane.os.freebsd.devel.emulation
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D291390

--- Comment #28 from Alexey Shuvaev <[email protected]> ---
(In reply to Sulev-Madis Silber from comment #27)
Maybe it is working now?

From one side, try this program which is exactly what is inside the configu=
re
script:
------------------------------------------------
#include <glib.h>
#include <unistd.h>

#define QEMU_BUILD_BUG_ON(x) \
  typedef char qemu_build_bug_on[(x)?-1:1] __attribute__((unused));

int main(void) {
   QEMU_BUILD_BUG_ON(sizeof(size_t) !=3D GLIB_SIZEOF_SIZE_T);
   return 0;
}
------------------------------------------------

compile with the same command
> cc -o test `pkg-config --cflags --libs glib-2.0` test.c

But now, if everything is ok, it compiles it silently. In case of mismatch =
it
outputs:
> conf_test.c:8:4: error: 'qemu_build_bug_on' declared as an array with a n=
egative size
>     8 |    QEMU_BUILD_BUG_ON(sizeof(char) !=3D GLIB_SIZEOF_SIZE_T);
>       |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> conf_test.c:5:34: note: expanded from macro 'QEMU_BUILD_BUG_ON'
>     5 |   typedef char qemu_build_bug_on[(x)?-1:1] __attribute__((unused)=
);
>       |                                  ^~~~~~~~
> 1 error generated.

If the test works, try building the port again manually:
> cd /usr/ports/emulators/qemu-user-static
> make configure

If it fails, go to the work directory:
> cd work/qemu-bsd-user-527096e0c8
and post the last sections of config.log file.

If it works, then rebuild and reinstall the port! ;)

--=20
You are receiving this mail because:
You are the assignee for the bug.=