Fails to build in jhbuild
With HEAD as gtk@ad5c5d47, I didn't manage to get the current git master to compile.
Uninstalling an older version of GTK 3.94.something resulted in a successful build. This probably means that the G-I code is trying to build against an installed version of libraries instead of the locally built one.
FAILED: gtk/Gdk-4.0.gir
/usr/bin/g-ir-scanner -I/usr/include/gobject-introspection-1.0 -I/home/hadess/Projects/gnome-install/include/glib-2.0 -I/home/hadess/Projects/gnome-install/lib/glib-2.0/include -pthread --no-libtool --namespace=Gdk --nsversion=4.0 --warn-all --output gtk/Gdk-4.0.gir --c-include=gdk/gdk.h --quiet -DGDK_COMPILATION -I/home/hadess/Projects/jhbuild/gtk+/gtk -I/home/hadess/.cache/jhbuild/build/gtk+/gtk -I./. -I../../../../Projects/jhbuild/gtk+/. -I./gdk/. -I../../../../Projects/jhbuild/gtk+/gdk/. -I./gsk -I../../../../Projects/jhbuild/gtk+/gsk -I./gtk -I../../../../Projects/jhbuild/gtk+/gtk -I./subprojects/graphene/src/. -I../../../../Projects/jhbuild/gtk+/subprojects/graphene/src/. -I./. -I../../../../Projects/jhbuild/gtk+/. -I./gdk/x11 -I../../../../Projects/jhbuild/gtk+/gdk/x11 -I./gdk/. -I../../../../Projects/jhbuild/gtk+/gdk/. -I./subprojects/graphene/src/. -I../../../../Projects/jhbuild/gtk+/subprojects/graphene/src/. -I./. -I../../../../Projects/jhbuild/gtk+/. -I./. -I../../../../Projects/jhbuild/gtk+/. -I./gdk/x11 -I../../../../Projects/jhbuild/gtk+/gdk/x11 -I./gdk/. -I../../../../Projects/jhbuild/gtk+/gdk/. -I./subprojects/graphene/src/. -I../../../../Projects/jhbuild/gtk+/subprojects/graphene/src/. --filelist=/home/hadess/.cache/jhbuild/build/gtk+/gtk/89afd8d@@gtk-4@sha/Gdk_4.0_gir_filelist --include=cairo-1.0 --include=Gio-2.0 --include=GdkPixbuf-2.0 --include=Pango-1.0 --symbol-prefix=gdk --identifier-prefix=Gdk --pkg-export=gtk4 --cflags-begin -DG_LOG_USE_STRUCTURED=1 -DGLIB_MIN_REQUIRED_VERSION=GLIB_VERSION_2_54 -DGLIB_MAX_ALLOWED_VERSION=GLIB_VERSION_2_56 '-DGTK_VERSION="3.94.0"' -D_GNU_SOURCE -DG_ENABLE_DEBUG -I./. -I../../../../Projects/jhbuild/gtk+/. -I./gdk/. -I../../../../Projects/jhbuild/gtk+/gdk/. -I./gsk -I../../../../Projects/jhbuild/gtk+/gsk -I./gtk -I../../../../Projects/jhbuild/gtk+/gtk -I./subprojects/graphene/src/. -I../../../../Projects/jhbuild/gtk+/subprojects/graphene/src/. -I./gdk/x11 -I../../../../Projects/jhbuild/gtk+/gdk/x11 -I/home/hadess/Projects/gnome-install/include/glib-2.0 -I/home/hadess/Projects/gnome-install/lib/glib-2.0/include -I/home/hadess/Projects/gnome-install/include/gio-unix-2.0 -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/uuid -I/usr/include/harfbuzz -I/home/hadess/Projects/gnome-install/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -I/usr/include/libdrm -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include --cflags-end -L/home/hadess/.cache/jhbuild/build/gtk+/gdk -L/home/hadess/.cache/jhbuild/build/gtk+/subprojects/graphene/src -L/home/hadess/.cache/jhbuild/build/gtk+/gsk -L/home/hadess/Projects/gnome-install/lib --library gtk-4 -L/home/hadess/.cache/jhbuild/build/gtk+/gtk -L/home/hadess/Projects/gnome-install/lib -L/home/hadess/Projects/gnome-install/lib --extra-library=gmodule-2.0 --extra-library=glib-2.0 --extra-library=gobject-2.0 --extra-library=gio-2.0 --extra-library=pangocairo-1.0 --extra-library=pango-1.0 --extra-library=cairo --extra-library=fribidi --extra-library=cairo-gobject --extra-library=fontconfig --extra-library=freetype --extra-library=gdk_pixbuf-2.0 --extra-library=atk-1.0 --extra-library=epoxy --extra-library=m --extra-library=harfbuzz --extra-library=pangoft2-1.0 --extra-library=Xi --extra-library=X11 --extra-library=atk-bridge-2.0 --extra-library=rt --extra-library=xkbcommon --extra-library=wayland-client --extra-library=wayland-cursor --extra-library=wayland-egl --extra-library=Xrender --extra-library=Xext --extra-library=Xcursor --extra-library=Xdamage --extra-library=Xfixes --extra-library=Xcomposite --extra-library=Xrandr --extra-library=Xinerama
/usr/bin/ld: /home/hadess/.cache/jhbuild/build/gtk+/tmp-introspectejmk12d5/Gdk-4.0.o:(.data.rel+0x30): undefined reference to `gdk_cairo_context_get_type'
/usr/bin/ld: /home/hadess/.cache/jhbuild/build/gtk+/tmp-introspectejmk12d5/Gdk-4.0.o:(.data.rel+0x38): undefined reference to `gdk_clipboard_get_type'
/usr/bin/ld: /home/hadess/.cache/jhbuild/build/gtk+/tmp-introspectejmk12d5/Gdk-4.0.o:(.data.rel+0x40): undefined reference to `gdk_content_deserializer_get_type'
/usr/bin/ld: /home/hadess/.cache/jhbuild/build/gtk+/tmp-introspectejmk12d5/Gdk-4.0.o:(.data.rel+0x48): undefined reference to `gdk_content_formats_get_type'
/usr/bin/ld: /home/hadess/.cache/jhbuild/build/gtk+/tmp-introspectejmk12d5/Gdk-4.0.o:(.data.rel+0x50): undefined reference to `gdk_content_formats_builder_get_type'
/usr/bin/ld: /home/hadess/.cache/jhbuild/build/gtk+/tmp-introspectejmk12d5/Gdk-4.0.o:(.data.rel+0x58): undefined reference to `gdk_file_list_get_type'
/usr/bin/ld: /home/hadess/.cache/jhbuild/build/gtk+/tmp-introspectejmk12d5/Gdk-4.0.o:(.data.rel+0x60): undefined reference to `gdk_content_provider_get_type'
/usr/bin/ld: /home/hadess/.cache/jhbuild/build/gtk+/tmp-introspectejmk12d5/Gdk-4.0.o:(.data.rel+0x68): undefined reference to `gdk_content_serializer_get_type'
/usr/bin/ld: /home/hadess/.cache/jhbuild/build/gtk+/tmp-introspectejmk12d5/Gdk-4.0.o:(.data.rel+0x90): undefined reference to `gdk_drag_get_type'
/usr/bin/ld: /home/hadess/.cache/jhbuild/build/gtk+/tmp-introspectejmk12d5/Gdk-4.0.o:(.data.rel+0xc8): undefined reference to `gdk_surface_get_type'
/usr/bin/ld: /home/hadess/.cache/jhbuild/build/gtk+/tmp-introspectejmk12d5/Gdk-4.0.o:(.data.rel+0xf0): undefined reference to `gdk_drop_get_type'
/usr/bin/ld: /home/hadess/.cache/jhbuild/build/gtk+/tmp-introspectejmk12d5/Gdk-4.0.o:(.data.rel+0x158): undefined reference to `gdk_memory_format_get_type'
/usr/bin/ld: /home/hadess/.cache/jhbuild/build/gtk+/tmp-introspectejmk12d5/Gdk-4.0.o:(.data.rel+0x168): undefined reference to `gdk_paintable_flags_get_type'
/usr/bin/ld: /home/hadess/.cache/jhbuild/build/gtk+/tmp-introspectejmk12d5/Gdk-4.0.o:(.data.rel+0x178): undefined reference to `gdk_surface_type_get_type'
/usr/bin/ld: /home/hadess/.cache/jhbuild/build/gtk+/tmp-introspectejmk12d5/Gdk-4.0.o:(.data.rel+0x180): undefined reference to `gdk_surface_hints_get_type'
/usr/bin/ld: /home/hadess/.cache/jhbuild/build/gtk+/tmp-introspectejmk12d5/Gdk-4.0.o:(.data.rel+0x1a8): undefined reference to `gdk_surface_edge_get_type'
/usr/bin/ld: /home/hadess/.cache/jhbuild/build/gtk+/tmp-introspectejmk12d5/Gdk-4.0.o:(.data.rel+0x1b8): undefined reference to `gdk_surface_state_get_type'
/usr/bin/ld: /home/hadess/.cache/jhbuild/build/gtk+/tmp-introspectejmk12d5/Gdk-4.0.o:(.data.rel+0x200): undefined reference to `gdk_surface_type_hint_get_type'
/usr/bin/ld: /home/hadess/.cache/jhbuild/build/gtk+/tmp-introspectejmk12d5/Gdk-4.0.o:(.data.rel+0x228): undefined reference to `gdk_texture_get_type'
/usr/bin/ld: /home/hadess/.cache/jhbuild/build/gtk+/tmp-introspectejmk12d5/Gdk-4.0.o:(.data.rel+0x230): undefined reference to `gdk_gl_texture_get_type'
/usr/bin/ld: /home/hadess/.cache/jhbuild/build/gtk+/tmp-introspectejmk12d5/Gdk-4.0.o:(.data.rel+0x240): undefined reference to `gdk_memory_texture_get_type'
/usr/bin/ld: /home/hadess/.cache/jhbuild/build/gtk+/tmp-introspectejmk12d5/Gdk-4.0.o:(.data.rel+0x248): undefined reference to `gdk_paintable_get_type'
/usr/bin/ld: /home/hadess/.cache/jhbuild/build/gtk+/tmp-introspectejmk12d5/Gdk-4.0.o:(.data.rel+0x250): undefined reference to `gdk_snapshot_get_type'
collect2: error: ld returned 1 exit status
linking of temporary binary failed: Command '['cc', '-o', '/home/hadess/.cache/jhbuild/build/gtk+/tmp-introspectejmk12d5/Gdk-4.0', '/home/hadess/.cache/jhbuild/build/gtk+/tmp-introspectejmk12d5/Gdk-4.0.o', '-L.', '-Wl,-rpath,.', '-Wl,--no-as-needed', '-L/home/hadess/.cache/jhbuild/build/gtk+/gdk', '-Wl,-rpath,/home/hadess/.cache/jhbuild/build/gtk+/gdk', '-L/home/hadess/.cache/jhbuild/build/gtk+/subprojects/graphene/src', '-Wl,-rpath,/home/hadess/.cache/jhbuild/build/gtk+/subprojects/graphene/src', '-L/home/hadess/.cache/jhbuild/build/gtk+/gsk', '-Wl,-rpath,/home/hadess/.cache/jhbuild/build/gtk+/gsk', '-L/home/hadess/Projects/gnome-install/lib', '-Wl,-rpath,/home/hadess/Projects/gnome-install/lib', '-L/home/hadess/.cache/jhbuild/build/gtk+/gtk', '-Wl,-rpath,/home/hadess/.cache/jhbuild/build/gtk+/gtk', '-L/home/hadess/Projects/gnome-install/lib', '-Wl,-rpath,/home/hadess/Projects/gnome-install/lib', '-L/home/hadess/Projects/gnome-install/lib', '-Wl,-rpath,/home/hadess/Projects/gnome-install/lib', '-lgtk-4', '-lgmodule-2.0', '-lglib-2.0', '-lgobject-2.0', '-lgio-2.0', '-lpangocairo-1.0', '-lpango-1.0', '-lcairo', '-lfribidi', '-lcairo-gobject', '-lfontconfig', '-lfreetype', '-lgdk_pixbuf-2.0', '-latk-1.0', '-lepoxy', '-lm', '-lharfbuzz', '-lpangoft2-1.0', '-lXi', '-lX11', '-latk-bridge-2.0', '-lrt', '-lxkbcommon', '-lwayland-client', '-lwayland-cursor', '-lwayland-egl', '-lXrender', '-lXext', '-lXcursor', '-lXdamage', '-lXfixes', '-lXcomposite', '-lXrandr', '-lXinerama', '-L/home/hadess/Projects/gnome-install/lib', '-lgio-2.0', '-lgobject-2.0', '-Wl,--export-dynamic', '-lgmodule-2.0', '-pthread', '-lglib-2.0', '-lglib-2.0', '-L/home/hadess/Projects/gnome-install/lib']' returned non-zero exit status 1.
ninja: build stopped: subcommand failed.