Need some help to compile gnome-builder-43.alpha: build failed

Hiya guys,
I need some help to build gnome-builder-43.alpha. The build failed with error below.

_5_6 -DGTK_SOURCE_VERSION_MAX_ALLOWED=GTK_SOURCE_VERSION_5_6 -Wcast-align -Wdeclaration-after-statement -Werror=address -Werror=array-bounds -Werror=empty-body -Werror=implicit -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -Werror=init-self -Werror=int-conversion -Werror=int-to-pointer-cast -Werror=main -Werror=misleading-indentation -Werror=missing-braces -Werror=missing-include-dirs -Werror=nonnull -Werror=overflow -Werror=pointer-arith -Werror=pointer-to-int-cast -Werror=redundant-decls -Werror=return-type -Werror=sequence-point -Werror=shadow -Werror=trigraphs -Werror=undef -Werror=write-strings -Wformat-nonliteral -Werror=format-security -Werror=format=2 -Wignored-qualifiers -Wimplicit-function-declaration -Wlogical-op -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wno-cast-function-type -Wno-dangling-pointer -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wundef -Wuninitialized -Wunused -fno-strict-aliasing -fstack-protector-strong -DHAVE_CONFIG_H -D_GNU_SOURCE -DIDE_COMPILATION -DG_DISABLE_CAST_CHECKS -O2 -fPIC -DGIT_SSH=1 -pthread -MD -MQ src/plugins/git/daemon/gnome-builder-git.p/ipc-git-repository-impl.c.o -MF src/plugins/git/daemon/gnome-builder-git.p/ipc-git-repository-impl.c.o.d -o src/plugins/git/daemon/gnome-builder-git.p/ipc-git-repository-impl.c.o -c ../src/plugins/git/daemon/ipc-git-repository-impl.c
../src/plugins/git/daemon/ipc-git-repository-impl.c: In function ‘translate_status’:
../src/plugins/git/daemon/ipc-git-repository-impl.c:135:10: error: ‘GGIT_STATUS_CONFLICTED’ undeclared (first use in this function); did you mean ‘GIT_STATUS_CONFLICTED’?
  135 |     case GGIT_STATUS_CONFLICTED:
      |          ^~~~~~~~~~~~~~~~~~~~~~
      |          GIT_STATUS_CONFLICTED
../src/plugins/git/daemon/ipc-git-repository-impl.c:135:10: note: each undeclared identifier is reported only once for each function it appears in
../src/plugins/git/daemon/ipc-git-repository-impl.c:144:10: error: ‘GGIT_STATUS_WORKING_TREE_RENAMED’ undeclared (first use in this function); did you mean ‘GGIT_STATUS_WORKING_TREE_DELETED’?
  144 |     case GGIT_STATUS_WORKING_TREE_RENAMED:
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |          GGIT_STATUS_WORKING_TREE_DELETED
../src/plugins/git/daemon/ipc-git-repository-impl.c:145:10: error: ‘GGIT_STATUS_WORKING_TREE_UNREADABLE’ undeclared (first use in this function); did you mean ‘GGIT_STATUS_WORKING_TREE_TYPECHANGE’?
  145 |     case GGIT_STATUS_WORKING_TREE_UNREADABLE:
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |          GGIT_STATUS_WORKING_TREE_TYPECHANGE
[658/1437] Compiling C object src/plugins/podman/test-podman.p/gbp-podman-runtime.c.o
ninja: build stopped: subcommand failed.
[39/787] Generating src/libide/core/ide-build-ident.h with a custom command
fatal: not a git repository (or any of the parent directories): .git
[45/781] Compiling C object src/plugins/git/daemon/gnome-builder-git.p/ipc-git-repository-impl.c.o
FAILED: src/plugins/git/daemon/gnome-builder-git.p/ipc-git-repository-impl.c.o
ccache cc -Isrc/plugins/git/daemon/gnome-builder-git.p -Isrc/plugins/git/daemon -I../src/plugins/git/daemon -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libgit2-glib-1.0 -I/tmp/snuk/gnome-builder-43.alpha1/build -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O3 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_72 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_72 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_4_8 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_4_8 -DGTK_SOURCE_VERSION_MIN_REQUIRED=GTK_SOURCE_VERSION_5_6 -DGTK_SOURCE_VERSION_MAX_ALLOWED=GTK_SOURCE_VERSION_5_6 -Wcast-align -Wdeclaration-after-statement -Werror=address -Werror=array-bounds -Werror=empty-body -Werror=implicit -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -Werror=init-self -Werror=int-conversion -Werror=int-to-pointer-cast -Werror=main -Werror=misleading-indentation -Werror=missing-braces -Werror=missing-include-dirs -Werror=nonnull -Werror=overflow -Werror=pointer-arith -Werror=pointer-to-int-cast -Werror=redundant-decls -Werror=return-type -Werror=sequence-point -Werror=shadow -Werror=trigraphs -Werror=undef -Werror=write-strings -Wformat-nonliteral -Werror=format-security -Werror=format=2 -Wignored-qualifiers -Wimplicit-function-declaration -Wlogical-op -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wno-cast-function-type -Wno-dangling-pointer -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wundef -Wuninitialized -Wunused -fno-strict-aliasing -fstack-protector-strong -DHAVE_CONFIG_H -D_GNU_SOURCE -DIDE_COMPILATION -DG_DISABLE_CAST_CHECKS -O2 -fPIC -DGIT_SSH=1 -pthread -MD -MQ src/plugins/git/daemon/gnome-builder-git.p/ipc-git-repository-impl.c.o -MF src/plugins/git/daemon/gnome-builder-git.p/ipc-git-repository-impl.c.o.d -o src/plugins/git/daemon/gnome-builder-git.p/ipc-git-repository-impl.c.o -c ../src/plugins/git/daemon/ipc-git-repository-impl.c
../src/plugins/git/daemon/ipc-git-repository-impl.c: In function ‘translate_status’:
../src/plugins/git/daemon/ipc-git-repository-impl.c:135:10: error: ‘GGIT_STATUS_CONFLICTED’ undeclared (first use in this function); did you mean ‘GIT_STATUS_CONFLICTED’?
  135 |     case GGIT_STATUS_CONFLICTED:
      |          ^~~~~~~~~~~~~~~~~~~~~~
      |          GIT_STATUS_CONFLICTED
../src/plugins/git/daemon/ipc-git-repository-impl.c:135:10: note: each undeclared identifier is reported only once for each function it appears in
../src/plugins/git/daemon/ipc-git-repository-impl.c:144:10: error: ‘GGIT_STATUS_WORKING_TREE_RENAMED’ undeclared (first use in this function); did you mean ‘GGIT_STATUS_WORKING_TREE_DELETED’?
  144 |     case GGIT_STATUS_WORKING_TREE_RENAMED:
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |          GGIT_STATUS_WORKING_TREE_DELETED
../src/plugins/git/daemon/ipc-git-repository-impl.c:145:10: error: ‘GGIT_STATUS_WORKING_TREE_UNREADABLE’ undeclared (first use in this function); did you mean ‘GGIT_STATUS_WORKING_TREE_TYPECHANGE’?
  145 |     case GGIT_STATUS_WORKING_TREE_UNREADABLE:
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |          GGIT_STATUS_WORKING_TREE_TYPECHANGE
[50/781] Compiling C object src/gnome-builder.p/main.c.o
ninja: build stopped: subcommand failed.
lancs@kvm:~/git/gnome-snuk/sources/gnome-builder$

Hi!

You need a version of libgit2-glib >= 1.1.0. There was a bug where Builder wasn’t checking for the version at that time.

PS. Try gnome-builder 43.rc or later version, alpha is a bit dated by now

Cheers!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.