Git failed to build in master branch
As seen from https://dev.gitlab.org/gitlab/omnibus-gitlab/-/pipelines/232254/failures, building git
fails with the following error
make[1]: Leaving directory '/var/cache/omnibus/src/git/_build/deps/git-v2.33.1.gl3'
Error:
GIT_VERSION = 2.33.0
* new build flags
* new prefix flags
* new link flags
commit-graph.c: In function 'lookup_commit_in_graph':
commit-graph.c:896:7: warning: implicit declaration of function 'search_commit_pos_in_graph'; did you mean 'parse_commit_in_graph'? [-Wimplicit-function-declaration]
896 | if (!search_commit_pos_in_graph(id, repo->objects->commit_graph, &pos))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| parse_commit_in_graph
/usr/bin/ld: libgit.a(commit-graph.o): in function `lookup_commit_in_graph':
commit-graph.c:(.text+0x2b2d): undefined reference to `search_commit_pos_in_graph'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:2581: git-http-backend] Error 1
make[1]: *** Waiting for unfinished jobs....
/usr/bin/ld: libgit.a(commit-graph.o): in function `lookup_commit_in_graph':
commit-graph.c:(.text+0x2b2d): undefined reference to `search_commit_pos_in_graph'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:2601: git-remote-http] Error 1
make: *** [Makefile:558: /var/cache/omnibus/src/git/_build/deps/git-v2.33.1.gl3/git-remote-http] Error 2