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

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 23 Jun 2026 16:00:16 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291390

--- Comment #39 from Alexey Shuvaev <bugsbeastie@gmail.com> ---
(In reply to Sulev-Madis Silber from comment #38)
Probably we are close on target! ;)

Within the build environment and with the same small test file from comment
#28, but now with STATIC linking:
> cc -o qemu-conf.exe -static `pkg-config --static --cflags --libs glib-2.0` qemu-conf.c

Because the qemu-user-static is a statically linked binary (has to be, and the
name has it too :)!

I obtain:
> file qemu-conf.exe
> qemu-conf.exe: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), statically linked, for FreeBSD 16.0 (1600018), FreeBSD-style, with debug_info, not stripped

Also check that you have static library libpcre2-8.a
> ls /usr/local/lib/libpcre2-8.*
> /usr/local/lib/libpcre2-8.a         /usr/local/lib/libpcre2-8.so.0
> /usr/local/lib/libpcre2-8.so        /usr/local/lib/libpcre2-8.so.0.15.0

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