Re: git: f98beca9766c - main - devel/glib20: add DOCS option [837447eabc74 still fails]

From: Mark Millard <>
Date: Mon, 18 Apr 2022 03:44:01 UTC
[At least this time I tested the right vintage:
git: 837447eabc74 - main - devel/glib20: fix up DOCS generation Adriaan de Groot
But it is still broken, but only for one "ld: error:" in my context:
ld: error: unable to find library -lgobject-2.0 .]

On 2022-Apr-17, at 15:57, Mark Millard <> wrote:

> [Ignore the report. I'm retrying after my screwup.]
> On 2022-Apr-17, at 10:15, Mark Millard <> wrote:
>> From: Adriaan de Groot <> 
>> Date: Sun, 17 Apr 2022 15:15:15 +0200 :
>>> On Sunday, 17 April 2022 11:12:11 CEST Jochen Neumeister wrote:
>>>> I have it currently also at 13.0 i386:
>>> My meson-fu is weak -- and since I need a faster or slower machine to actually 
>>> reproduce the problem, I have selected a proxy problem: `ninja -j48 gio-doc`. 
>>> That's an actual target defined by meson, and I believe it should "just 
>>> build". It didn't, of course: missing dependencies on things-that-are-
>>> generated-during-the-build.
>>> Telling ninja that gio-doc needs to build the examples first is trivial, so I 
>>> patch that in. It's definitely ugly to be doing {REINPLACE_CMD} on the 
>>> generated build-system, but it's the best I could come up with.
>> What I got was (for [ 33% 463/1333]):
> I never managed to do the merge --ff-only : just the fetch.
> I'm rerunning bulk after actually having merged the update.
> It will be a while if it works as all 3 jails on that machine
> are to be updated in sequence and the armv7 one is the last
> of the 3.
>> ERROR: 
>> . . .

I had tested building the wrong version.

>> Again a 16 core Cortext-A72 system (HoneyComb) using an armv7
>> poudriere-devel jail.

It still fails to build in my context. But this time
there is only one "ld: error:". This was for:

=>> Building devel/glib20
build started at Sun Apr 17 18:47:00 PDT 2022
port directory: /usr/ports/devel/glib20
package name: glib-2.70.4_5,2
building for: FreeBSD CA72_ZFS 14.0-CURRENT FreeBSD 14.0-CURRENT arm
maintained by:
Makefile datestamp: -rw-r--r--  1 root  wheel  4558 Apr 17 22:45 /usr/ports/devel/glib20/Makefile
Ports top last git commit: 837447eabc74
Ports top unclean checkout: yes
Port dir last git commit: 837447eabc74
Port dir unclean checkout: no
Poudriere version: poudriere-git-
Host OSVERSION: 1400053
Jail OSVERSION: 1400053
. . .

The error part of the log looks like:

. . .
[ 36% 508/1333] . . .
. . .
ERROR: ['/usr/local/bin/gtkdoc-scangobj', '--types=/wrkdirs/usr/ports/devel/glib20/work/glib-2.70.4/_build/docs/reference/gobject/gobject.types', '--module=gobject', '--run=', '--cflags=-I/wrkdirs/usr
/ports/devel/glib20/work/glib-2.70.4/gobject -I/wrkdirs/usr/ports/devel/glib20/work/glib-2.70.4/_build/gobject -I/usr/local/include -I/wrkdirs/usr/ports/devel/glib20/work/glib-2.70.4/. -I/wrkdirs/usr/
ports/devel/glib20/work/glib-2.70.4/_build/. -I/wrkdirs/usr/ports/devel/glib20/work/glib-2.70.4/glib -I/wrkdirs/usr/ports/devel/glib20/work/glib-2.70.4/_build/glib -pthread -I/wrkdirs/usr/ports/devel/
glib20/work/glib-2.70.4/docs/reference/gobject/. -I/wrkdirs/usr/ports/devel/glib20/work/glib-2.70.4/_build/docs/reference/gobject/. -O2 -pipe -mcpu=cortex-a7 -g -fstack-protector-strong -isystem /usr/
local/include -fno-strict-aliasing -mcpu=cortex-a7 -isystem /usr/local/include -D_GNU_SOURCE -fno-strict-aliasing -DG_ENABLE_DEBUG -Wimplicit-fallthrough -Wmisleading-indentation -Wstrict-prototypes -
Wunused -Wno-unused-parameter -Wno-bad-function-cast -Wno-cast-function-type -Wno-pedantic -Wno-format-zero-length -Werror=declaration-after-statement -Werror=format=2 -Werror=implicit-function-declar
ation -Werror=init-self -Werror=missing-include-dirs -Werror=missing-prototypes -Werror=pointer-arith', '--ldflags=-L/wrkdirs/usr/ports/devel/glib20/work/glib-2.70.4/_build/gobject -Wl,-rpath,/wrkdirs
/usr/ports/devel/glib20/work/glib-2.70.4/_build/gobject -L/wrkdirs/usr/ports/devel/glib20/work/glib-2.70.4/_build/glib -Wl,-rpath,/wrkdirs/usr/ports/devel/glib20/work/glib-2.70.4/_build/glib -L/usr/lo
cal/lib -Wl,-rpath,/usr/local/lib -lgobject-2.0 -lglib-2.0 -L/usr/local/lib -lffi -lintl -lpcre -pthread -liconv -lm -lutil -fstack-protector-strong -L/usr/local/lib -O2 -pipe -mcpu=cortex-a7 -g -fsta
ck-protector-strong -isystem /usr/local/include -fno-strict-aliasing -mcpu=cortex-a7 -isystem /usr/local/include', '--cc=cc', '--ld=cc', '--output-dir=/wrkdirs/usr/ports/devel/glib20/work/glib-2.70.4/
_build/docs/reference/gobject'] failed with status 1
ld: error: unable to find library -lgobject-2.0
cc: error: linker command failed with exit code 1 (use -v to see invocation)
2022-04-18 01:48:17, scanner failed: 1, command: cc gobject-scan.o -L/wrkdirs/usr/ports/devel/glib20/work/glib-2.70.4/_build/gobject -Wl,-rpath,/wrkdirs/usr/ports/devel/glib20/work/glib-2.70.4/_build/gobject -L/wrkdirs/usr/ports/devel/glib20/work/glib-2.70.4/_build/glib -Wl,-rpath,/wrkdirs/usr/ports/devel/glib20/work/glib-2.70.4/_build/glib -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lgobject-2.0 -lglib-2.0 -L/usr/local/lib -lffi -lintl -lpcre -pthread -liconv -lm -lutil -fstack-protector-strong -L/usr/local/lib -O2 -pipe -mcpu=cortex-a7 -g -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -mcpu=cortex-a7 -isystem /usr/local/include -o gobject-scan

. . . (lots of activity, then finally) . . .

ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Mark Millard
marklmi at