I am working on a recently updated Archlinux system (R version 4.4.0 (2024-04-24) -- "Puppy Cup"). I have installed libgit2 through pacman. I have also tried using libgit2-git from AUR with the same error. I also get the same error when I try to install via the r-gert AUR package.
Here is the error:
install.packages("gert")
Installing package into ‘/home/jds6696/R/x86_64-pc-linux-gnu-library/4.4’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/gert_2.0.1.tar.gz'
Content type 'application/x-gzip' length 122723 bytes (119 KB)
==================================================
downloaded 119 KB
* installing *source* package ‘gert’ ...
** package ‘gert’ successfully unpacked and MD5 sums checked
** using staged installation
Found pkg-config cflags and libs!
Using PKG_CFLAGS=
Using PKG_LIBS=-lgit2
Configuration OK!
** libs
using C compiler: ‘gcc (GCC) 14.1.1 20240522’
rm -f gert.so branch.o clone.o commit.o config.o conflicts.o files.o ignore.o init.o merge.o rebase.o stash.o submodules.o tag.o utils.o version.o
gcc -I"/usr/include/R/" -DNDEBUG -DR_NO_REMAP -DSTRICT_R_HEADERS -I/usr/local/include -fvisibility=hidden -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/build/r/src=/usr/src/debug/r -flto=auto -ffat-lto-objects -c branch.c -o branch.o
gcc -I"/usr/include/R/" -DNDEBUG -DR_NO_REMAP -DSTRICT_R_HEADERS -I/usr/local/include -fvisibility=hidden -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/build/r/src=/usr/src/debug/r -flto=auto -ffat-lto-objects -c clone.c -o clone.o
gcc -I"/usr/include/R/" -DNDEBUG -DR_NO_REMAP -DSTRICT_R_HEADERS -I/usr/local/include -fvisibility=hidden -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/build/r/src=/usr/src/debug/r -flto=auto -ffat-lto-objects -c commit.c -o commit.o
commit.c: In function ‘R_git_commit_create’:
commit.c:162:60: error: passing argument 10 of ‘git_commit_create’ from incompatible pointer type [-Wincompatible-pointer-types]
162 | msg.ptr, tree, number_parents, parents), "git_commit_create");
| ^~~~~~~
| |
| const 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 utils.h:1,
from commit.c:2:
/usr/include/git2/commit.h:369:28: note: expected ‘git_commit * const*’ but argument is of type ‘const git_commit **’
369 | git_commit * const parents[]);
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~
make: *** [/usr/lib64/R/etc/Makeconf:195: commit.o] Error 1
ERROR: compilation failed for package ‘gert’
* removing ‘/home/jds6696/R/x86_64-pc-linux-gnu-library/4.4/gert’
The downloaded source packages are in
‘/tmp/Rtmpdyy0k5/downloaded_packages’
Warning message:
In install.packages("gert") :
installation of package ‘gert’ had non-zero exit status
I am at a bit of a loss as to how to proceed. Any advice would be most appreciated.
I am working on a recently updated Archlinux system (R version 4.4.0 (2024-04-24) -- "Puppy Cup"). I have installed libgit2 through pacman. I have also tried using libgit2-git from AUR with the same error. I also get the same error when I try to install via the r-gert AUR package.
Here is the error:
I am at a bit of a loss as to how to proceed. Any advice would be most appreciated.