giscanner undefined symbol: g_string_free_and_steal
I am getting the following error when trying to compile the main version:
Traceback (most recent call last):
File "/root/.cache/jhbuild/build/gobject-introspection/tools/g-ir-scanner", line 98, in <module>
from giscanner.scannermain import scanner_main
File "/root/.cache/jhbuild/build/gobject-introspection/giscanner/scannermain.py", line 35, in <module>
from giscanner.ast import Include, Namespace
File "/root/.cache/jhbuild/build/gobject-introspection/giscanner/ast.py", line 29, in <module>
from .sourcescanner import CTYPE_TYPEDEF, CSYMBOL_TYPE_TYPEDEF
File "/root/.cache/jhbuild/build/gobject-introspection/giscanner/sourcescanner.py", line 34, in <module>
from giscanner._giscanner import SourceScanner as CSourceScanner
ImportError: /root/.cache/jhbuild/build/gobject-introspection/giscanner/_giscanner.cpython-311-x86_64-linux-gnu.so: undefined symbol: g_string_free_and_steal
Environment:
- Ubuntu 18.04 Bionic
- Fontconfig 2.14.2
- Python 3.11
- jhbuild is being used for the build
- Dockerfile
Branch gnome-42 compiles fine.
gobject-introspection 1.76.2
Subprojects
glib : YES 5 warnings
gvdb : YES
User defined options
buildtype: release
libdir : lib
prefix : /root/jhbuild/install
cairo : enabled
Found ninja-1.8.2 at /usr/bin/ninja
*** Building gobject-introspection *** [9/26]
ninja
[652/713] Generating giscanner/scannerparser with a custom command
../../../../jhbuild/checkout/gobject-introspection/giscanner/scannerparser.y: warning: 7 shift/reduce conflicts [-Wconflicts-sr]
[663/713] Compiling C object giscanner/libgiscanner.a.p/meson-generated_.._scannerlexer.c.o
giscanner/scannerlexer.c: In function ‘yyrestart’:
giscanner/scannerlexer.c:2907:20: warning: potential null pointer dereference [-Wnull-dereference]
b->yy_fill_buffer = 1;
~~~~~~~~~~~~~~~~~~^~~
giscanner/scannerlexer.c:2906:19: warning: potential null pointer dereference [-Wnull-dereference]
b->yy_input_file = file;
~~~~~~~~~~~~~~~~~^~~~~~
[684/713] Generating gir/gir-glib with a custom command (wrapped by meson to set env)
FAILED: gir/GLib-2.0.gir
env PKG_CONFIG_PATH=/root/.cache/jhbuild/build/gobject-introspection/meson-uninstalled PKG_CONFIG=/usr/bin/pkg-config /root/.cache/jhbuild/build/gobject-intro
spection/tools/g-ir-scanner --output=gir/GLib-2.0.gir --no-libtool --quiet --reparse-validate --add-include-path /root/.cache/jhbuild/build/gobject-introspect
ion/gir --add-include-path /root/jhbuild/checkout/gobject-introspection/gir --extra-library=glib-2.0 --extra-library=gmodule-2.0 --extra-library=gobject-2.0 -
-extra-library=gio-2.0 --identifier-prefix=G --symbol-prefix=g --symbol-prefix=glib --c-include=glib.h --namespace=GLib --nsversion=2.0 --library=glib-2.0 --l
ibrary=gobject-2.0 --pkg-export=glib-2.0 -L/root/.cache/jhbuild/build/gobject-introspection/subprojects/libffi/src -L/root/.cache/jhbuild/build/gobject-intros
pection/subprojects/proxy-libintl -L/root/.cache/jhbuild/build/gobject-introspection/subprojects/glib/glib -L/root/.cache/jhbuild/build/gobject-introspection/
subprojects/glib/gobject -L/root/.cache/jhbuild/build/gobject-introspection/subprojects/glib/gmodule -L/root/.cache/jhbuild/build/gobject-introspection/subpro
jects/glib/gio --cflags-begin -I/root/jhbuild/checkout/gobject-introspection/subprojects/glib -I/root/.cache/jhbuild/build/gobject-introspection/subprojects/g
lib -I/root/.cache/jhbuild/build/gobject-introspection/subprojects/glib/glib -I/root/jhbuild/checkout/gobject-introspection/subprojects/glib/glib -I/root/jhbu
ild/checkout/gobject-introspection/subprojects/glib/gobject -I/root/jhbuild/checkout/gobject-introspection/subprojects/glib/gmodule -I/root/jhbuild/checkout/g
object-introspection/subprojects/glib/gio -I/root/.cache/jhbuild/build/gobject-introspection/subprojects/libffi/include -I/root/jhbuild/checkout/gobject-intro
spection/subprojects/proxy-libintl -DGLIB_COMPILATION -DGOBJECT_COMPILATION -D__G_I18N_LIB_H__ -DGETTEXT_PACKAGE=Dummy --cflags-end ../../../../jhbuild/checko
ut/gobject-introspection/subprojects/glib/gobject/glib-types.h subprojects/glib/glib/glibconfig.h subprojects/glib/gobject/glib-enumtypes.h ../../../../jhbuil
d/checkout/gobject-introspection/subprojects/glib/glib/glib-unix.h subprojects/glib/glib/glibconfig.h subprojects/glib/glib/gversionmacros.h subprojects/glib/
glib/glib-visibility.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/garcbox.c ../../../../jhbuild/checkout/gobject-introspection/s
ubprojects/glib/glib/garray.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gasyncqueue.c ../../../../jhbuild/checkout/gobject-intr
ospection/subprojects/glib/glib/gatomic.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gbacktrace.c ../../../../jhbuild/checkout/g
object-introspection/subprojects/glib/glib/gbase64.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gbitlock.c ../../../../jhbuild/c
heckout/gobject-introspection/subprojects/glib/glib/gbookmarkfile.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gbytes.c ../../..
/../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gcharset.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gchecksum
.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gconvert.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/gli
b/gdataset.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gdate.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/g
lib/glib/gdatetime.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gdir.c ../../../../jhbuild/checkout/gobject-introspection/subpro
jects/glib/glib/genviron.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gerror.c ../../../../jhbuild/checkout/gobject-introspectio
n/subprojects/glib/glib/gfileutils.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/ggettext.c ../../../../jhbuild/checkout/gobject-
introspection/subprojects/glib/glib/ghash.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/ghmac.c ../../../../jhbuild/checkout/gobj
ect-introspection/subprojects/glib/glib/ghook.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/ghostutils.c ../../../../jhbuild/chec
kout/gobject-introspection/subprojects/glib/glib/giochannel.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gkeyfile.c ../../../../
jhbuild/checkout/gobject-introspection/subprojects/glib/glib/glib-init.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/glib-private
.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/glist.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/g
main.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gmappedfile.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/g
lib/glib/gmarkup.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gmem.c ../../../../jhbuild/checkout/gobject-introspection/subproje
cts/glib/glib/gmessages.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gnode.c ../../../../jhbuild/checkout/gobject-introspection/
subprojects/glib/glib/goption.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gpathbuf.c ../../../../jhbuild/checkout/gobject-intro
spection/subprojects/glib/glib/gpattern.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gpoll.c ../../../../jhbuild/checkout/gobjec
t-introspection/subprojects/glib/glib/gprimes.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gqsort.c ../../../../jhbuild/checkout
/gobject-introspection/subprojects/glib/glib/gquark.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gqueue.c ../../../../jhbuild/ch
eckout/gobject-introspection/subprojects/glib/glib/grand.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/grcbox.c ../../../../jhbui
ld/checkout/gobject-introspection/subprojects/glib/glib/grefcount.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/grefstring.c ../.
./../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gregex.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gscanne
r.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gsequence.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/g
lib/gshell.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gslice.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/
glib/glib/gslist.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gstdio.c ../../../../jhbuild/checkout/gobject-introspection/subpro
jects/glib/glib/gstrfuncs.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gstring.c ../../../../jhbuild/checkout/gobject-introspect
ion/subprojects/glib/glib/gstringchunk.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gstrvbuilder.c ../../../../jhbuild/checkout/
gobject-introspection/subprojects/glib/glib/gtestutils.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gthread.c ../../../../jhbuil
d/checkout/gobject-introspection/subprojects/glib/glib/gthreadpool.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gtimer.c ../../.
./../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gtimezone.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gtrace.
c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gtrace-private.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/gli
b/glib/gtranslit.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gtrashstack.c ../../../../jhbuild/checkout/gobject-introspection/s
ubprojects/glib/glib/gtree.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/guniprop.c ../../../../jhbuild/checkout/gobject-introspe
ction/subprojects/glib/glib/gutf8.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gunibreak.c ../../../../jhbuild/checkout/gobject-
introspection/subprojects/glib/glib/gunicollate.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gunidecomp.c ../../../../jhbuild/ch
eckout/gobject-introspection/subprojects/glib/glib/guri.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/guriprivate.h ../../../../j
hbuild/checkout/gobject-introspection/subprojects/glib/glib/gutils.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gutilsprivate.h
../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/guuid.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gvar
iant.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gvariant-core.c ../../../../jhbuild/checkout/gobject-introspection/subprojects
/glib/glib/gvariant-parser.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gvariant-serialiser.c ../../../../jhbuild/checkout/gobje
ct-introspection/subprojects/glib/glib/gvarianttypeinfo.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gvarianttype.c ../../../../
jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gversion.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gwakeup.c ../
../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gprintf.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/glib-
unix.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/glib-unixprivate.h ../../../../jhbuild/checkout/gobject-introspection/subproje
cts/glib/glib/gspawn.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/giounix.c ../../../../jhbuild/checkout/gobject-introspection/s
ubprojects/glib/glib/gjournal-private.c ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gthread-posix.c ../../../../jhbuild/checkout/
gobject-introspection/subprojects/glib/glib/glib-typeof.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/galloca.h ../../../../jhbui
ld/checkout/gobject-introspection/subprojects/glib/glib/garray.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gasyncqueue.h ../../
../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gatomic.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gbacktra
ce.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gbase64.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/gl
ib/gbitlock.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gbookmarkfile.h ../../../../jhbuild/checkout/gobject-introspection/subp
rojects/glib/glib/gbytes.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gcharset.h ../../../../jhbuild/checkout/gobject-introspect
ion/subprojects/glib/glib/gchecksum.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gconvert.h ../../../../jhbuild/checkout/gobject
-introspection/subprojects/glib/glib/gdataset.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gdate.h ../../../../jhbuild/checkout/
gobject-introspection/subprojects/glib/glib/gdatetime.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gdir.h ../../../../jhbuild/ch
eckout/gobject-introspection/subprojects/glib/glib/genviron.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gerror.h ../../../../jh
build/checkout/gobject-introspection/subprojects/glib/glib/gfileutils.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/ggettext.h ..
/../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/ghash.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/ghmac.
h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/ghook.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gh
ostutils.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gi18n.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/gli
b/glib/gi18n-lib.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/giochannel.h ../../../../jhbuild/checkout/gobject-introspection/su
bprojects/glib/glib/gkeyfile.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/glist.h ../../../../jhbuild/checkout/gobject-introspec
tion/subprojects/glib/glib/gmacros.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gmain.h ../../../../jhbuild/checkout/gobject-int
rospection/subprojects/glib/glib/gmappedfile.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gmarkup.h ../../../../jhbuild/checkout
/gobject-introspection/subprojects/glib/glib/gmem.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gmessages.h ../../../../jhbuild/c
heckout/gobject-introspection/subprojects/glib/glib/gnode.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/goption.h ../../../../jhb
uild/checkout/gobject-introspection/subprojects/glib/glib/gpathbuf.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gpattern.h ../..
/../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gpoll.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gprimes.h
../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gqsort.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gq
uark.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gqueue.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/g
lib/grand.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/grcbox.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/g
lib/glib/grefcount.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/grefstring.h ../../../../jhbuild/checkout/gobject-introspection/
subprojects/glib/glib/gregex.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gscanner.h ../../../../jhbuild/checkout/gobject-intros
pection/subprojects/glib/glib/gsequence.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gshell.h ../../../../jhbuild/checkout/gobje
ct-introspection/subprojects/glib/glib/gslice.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gslist.h ../../../../jhbuild/checkout
/gobject-introspection/subprojects/glib/glib/gspawn.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gstdio.h ../../../../jhbuild/ch
eckout/gobject-introspection/subprojects/glib/glib/gstrfuncs.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gstrvbuilder.h ../../.
./../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gtestutils.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gstrin
g.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gstringchunk.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/gli
b/glib/gthread.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gthreadpool.h ../../../../jhbuild/checkout/gobject-introspection/sub
projects/glib/glib/gtimer.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gtimezone.h ../../../../jhbuild/checkout/gobject-introspe
ction/subprojects/glib/glib/gtrashstack.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gtree.h ../../../../jhbuild/checkout/gobjec
t-introspection/subprojects/glib/glib/gtypes.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/guuid.h ../../../../jhbuild/checkout/g
object-introspection/subprojects/glib/glib/gunicode.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/guri.h ../../../../jhbuild/chec
kout/gobject-introspection/subprojects/glib/glib/gutils.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gvarianttype.h ../../../../
jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gvariant.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gversion.h ..
/../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gwin32.h ../../../../jhbuild/checkout/gobject-introspection/subprojects/glib/glib/gprintf.h ../../../../jhbuild/checkout/gobject-introspection/gir/glib-2.0.c
Traceback (most recent call last):
File "/root/.cache/jhbuild/build/gobject-introspection/tools/g-ir-scanner", line 98, in <module>
from giscanner.scannermain import scanner_main
File "/root/.cache/jhbuild/build/gobject-introspection/giscanner/scannermain.py", line 35, in <module>
from giscanner.ast import Include, Namespace
File "/root/.cache/jhbuild/build/gobject-introspection/giscanner/ast.py", line 29, in <module>
from .sourcescanner import CTYPE_TYPEDEF, CSYMBOL_TYPE_TYPEDEF
File "/root/.cache/jhbuild/build/gobject-introspection/giscanner/sourcescanner.py", line 34, in <module>
from giscanner._giscanner import SourceScanner as CSourceScanner
ImportError: /root/.cache/jhbuild/build/gobject-introspection/giscanner/_giscanner.cpython-311-x86_64-linux-gnu.so: undefined symbol: g_string_free_and_steal