Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: passing argument 10 of ‘git_commit_create’ from incompatible pointer type [-Wincompatible-pointer-types] #11

Open
Freed-Wu opened this issue Dec 17, 2024 · 0 comments

Comments

@Freed-Wu
Copy link

Freed-Wu commented Dec 17, 2024

lua-git2 scm-0 depends on lua >= 5.1, < 5.5 (5.1-1 provided by VM: success)
gcc -O2 -fPIC -I/usr/include/lua5.1 -c src/pre_generated-git2.nobj.c -o src/pre_generated-git2.nobj.o -I/usr/include
src/pre_generated-git2.nobj.c: In function ‘Commit__create__func’:
src/pre_generated-git2.nobj.c:3740:42: error: passing argument 10 of ‘git_commit_create’ from incompatible pointer type [-Wincompatible-pointer-types]
 3740 |                 tree_idx8, parent_count, parents);
      |                                          ^~~~~~~
      |                                          |
      |                                          git_commit **
In file included from /usr/include/git2/repository.h:14,
                 from /usr/include/git2/annotated_commit.h:11,
                 from /usr/include/git2.h:11,
                 from src/pre_generated-git2.nobj.c:70:
/usr/include/git2/commit.h:369:27: note: expected ‘const git_commit **’ but argument is of type ‘git_commit **’
  369 |         const git_commit *parents[]);
      |         ~~~~~~~~~~~~~~~~~~^~~~~~~~~

Error: Failed installing dependency: https://luarocks.org/dev/lua-git2-scm-0.rockspec - Build error: Failed compiling object src/pre_generated-git2.nobj.o

OS: ArchLinux
lua 5.1
libgit2: 1.8.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant