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

Build failure: rPackages.gert #370628

Closed
BerriJ opened this issue Jan 3, 2025 · 2 comments
Closed

Build failure: rPackages.gert #370628

BerriJ opened this issue Jan 3, 2025 · 2 comments
Labels
0.kind: build failure A package fails to build

Comments

@BerriJ
Copy link

BerriJ commented Jan 3, 2025

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix-shell -p rPackages.gert

Build log

Build Log
this derivation will be built:
  /nix/store/4ssgkq7f40fwh1riymvbydqwfkkiqi4z-r-gert-2.1.1.drv
building '/nix/store/4ssgkq7f40fwh1riymvbydqwfkkiqi4z-r-gert-2.1.1.drv'...
Running phase: unpackPhase
unpacking source archive /nix/store/mlbdyxxlznxqj1gcbra1lmfbcs327bl4-gert_2.1.1.tar.gz
source root is gert
setting SOURCE_DATE_EPOCH to timestamp 1723803602 of file gert/MD5
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
Running phase: buildPhase
Running phase: checkPhase
Running phase: installPhase
* installing *source* package 'gert' ...
** package 'gert' successfully unpacked and MD5 sums checked
** using staged installation
Error in curl::curl_download("https://r-lib.github.io/gert/get-libgit2-linux.sh",  : 
  Could not resolve host: r-lib.github.io
Execution halted
Using PKG_CFLAGS=
Using PKG_LIBS=-lgit2
Configuration OK!
** libs
using C compiler: 'gcc (GCC) 14.2.1 20241116'
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
/nix/store/xcn9p4xxfbvlkpah7pwchpav4ab9d135-gcc-wrapper-14-20241116/bin/cc -I"/nix/store/k9g3yr4md4v76ds9ypz9yjh0590bgg1m-R-4.4.1/lib/R/include" -DNDEBUG -DR_NO_REMAP -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2  -c branch.c -o branch.o
/nix/store/xcn9p4xxfbvlkpah7pwchpav4ab9d135-gcc-wrapper-14-20241116/bin/cc -I"/nix/store/k9g3yr4md4v76ds9ypz9yjh0590bgg1m-R-4.4.1/lib/R/include" -DNDEBUG -DR_NO_REMAP -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2  -c clone.c -o clone.o
/nix/store/xcn9p4xxfbvlkpah7pwchpav4ab9d135-gcc-wrapper-14-20241116/bin/cc -I"/nix/store/k9g3yr4md4v76ds9ypz9yjh0590bgg1m-R-4.4.1/lib/R/include" -DNDEBUG -DR_NO_REMAP -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2  -c commit.c -o commit.o
/nix/store/xcn9p4xxfbvlkpah7pwchpav4ab9d135-gcc-wrapper-14-20241116/bin/cc -I"/nix/store/k9g3yr4md4v76ds9ypz9yjh0590bgg1m-R-4.4.1/lib/R/include" -DNDEBUG -DR_NO_REMAP -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2  -c config.c -o config.o
/nix/store/xcn9p4xxfbvlkpah7pwchpav4ab9d135-gcc-wrapper-14-20241116/bin/cc -I"/nix/store/k9g3yr4md4v76ds9ypz9yjh0590bgg1m-R-4.4.1/lib/R/include" -DNDEBUG -DR_NO_REMAP -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2  -c conflicts.c -o conflicts.o
/nix/store/xcn9p4xxfbvlkpah7pwchpav4ab9d135-gcc-wrapper-14-20241116/bin/cc -I"/nix/store/k9g3yr4md4v76ds9ypz9yjh0590bgg1m-R-4.4.1/lib/R/include" -DNDEBUG -DR_NO_REMAP -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2  -c files.c -o files.o
/nix/store/xcn9p4xxfbvlkpah7pwchpav4ab9d135-gcc-wrapper-14-20241116/bin/cc -I"/nix/store/k9g3yr4md4v76ds9ypz9yjh0590bgg1m-R-4.4.1/lib/R/include" -DNDEBUG -DR_NO_REMAP -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2  -c ignore.c -o ignore.o
/nix/store/xcn9p4xxfbvlkpah7pwchpav4ab9d135-gcc-wrapper-14-20241116/bin/cc -I"/nix/store/k9g3yr4md4v76ds9ypz9yjh0590bgg1m-R-4.4.1/lib/R/include" -DNDEBUG -DR_NO_REMAP -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2  -c init.c -o init.o
/nix/store/xcn9p4xxfbvlkpah7pwchpav4ab9d135-gcc-wrapper-14-20241116/bin/cc -I"/nix/store/k9g3yr4md4v76ds9ypz9yjh0590bgg1m-R-4.4.1/lib/R/include" -DNDEBUG -DR_NO_REMAP -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2  -c merge.c -o merge.o
/nix/store/xcn9p4xxfbvlkpah7pwchpav4ab9d135-gcc-wrapper-14-20241116/bin/cc -I"/nix/store/k9g3yr4md4v76ds9ypz9yjh0590bgg1m-R-4.4.1/lib/R/include" -DNDEBUG -DR_NO_REMAP -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2  -c rebase.c -o rebase.o
/nix/store/xcn9p4xxfbvlkpah7pwchpav4ab9d135-gcc-wrapper-14-20241116/bin/cc -I"/nix/store/k9g3yr4md4v76ds9ypz9yjh0590bgg1m-R-4.4.1/lib/R/include" -DNDEBUG -DR_NO_REMAP -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2  -c stash.c -o stash.o
/nix/store/xcn9p4xxfbvlkpah7pwchpav4ab9d135-gcc-wrapper-14-20241116/bin/cc -I"/nix/store/k9g3yr4md4v76ds9ypz9yjh0590bgg1m-R-4.4.1/lib/R/include" -DNDEBUG -DR_NO_REMAP -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2  -c submodules.c -o submodules.o
/nix/store/xcn9p4xxfbvlkpah7pwchpav4ab9d135-gcc-wrapper-14-20241116/bin/cc -I"/nix/store/k9g3yr4md4v76ds9ypz9yjh0590bgg1m-R-4.4.1/lib/R/include" -DNDEBUG -DR_NO_REMAP -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2  -c tag.c -o tag.o
/nix/store/xcn9p4xxfbvlkpah7pwchpav4ab9d135-gcc-wrapper-14-20241116/bin/cc -I"/nix/store/k9g3yr4md4v76ds9ypz9yjh0590bgg1m-R-4.4.1/lib/R/include" -DNDEBUG -DR_NO_REMAP -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2  -c utils.c -o utils.o
/nix/store/xcn9p4xxfbvlkpah7pwchpav4ab9d135-gcc-wrapper-14-20241116/bin/cc -I"/nix/store/k9g3yr4md4v76ds9ypz9yjh0590bgg1m-R-4.4.1/lib/R/include" -DNDEBUG -DR_NO_REMAP -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2  -c version.c -o version.o
In file included from commit.c:2:
commit.c: In function 'R_git_commit_create':
utils.h:28:29: error: passing argument 10 of 'git_commit_create' from incompatible pointer type [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Wincompatible-pointer-types8;;]
   28 | #define no_const_workaround (git_commit **)
commit.c:162:60: note: in expansion of macro 'no_const_workaround'
  162 |                             msg.ptr, tree, number_parents, no_const_workaround parents), "git_commit_create");
      |                                                            ^~~~~~~~~~~~~~~~~~~
In file included from /nix/store/wqbrsq7cp0xd8kyhs9jxkh3qavyjgfm1-libgit2-1.8.4-dev/include/git2/repository.h:14,
                 from /nix/store/wqbrsq7cp0xd8kyhs9jxkh3qavyjgfm1-libgit2-1.8.4-dev/include/git2/annotated_commit.h:11,
                 from /nix/store/wqbrsq7cp0xd8kyhs9jxkh3qavyjgfm1-libgit2-1.8.4-dev/include/git2.h:11,
                 from utils.h:1:
/nix/store/wqbrsq7cp0xd8kyhs9jxkh3qavyjgfm1-libgit2-1.8.4-dev/include/git2/commit.h:369:27: note: expected 'const git_commit **' but argument is of type 'git_commit **'
  369 |         const git_commit *parents[]);
      |         ~~~~~~~~~~~~~~~~~~^~~~~~~~~
make: *** [/nix/store/k9g3yr4md4v76ds9ypz9yjh0590bgg1m-R-4.4.1/lib/R/etc/Makeconf:195: commit.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from rebase.c:2:
rebase.c: In function 'R_git_cherry_pick':
utils.h:28:29: error: passing argument 10 of 'git_commit_create' from incompatible pointer type [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Wincompatible-pointer-types8;;]
   28 | #define no_const_workaround (git_commit **)
rebase.c:110:64: note: in expansion of macro 'no_const_workaround'
  110 |                             git_commit_message(orig), tree, 1, no_const_workaround parents), "git_commit_create");
      |                                                                ^~~~~~~~~~~~~~~~~~~
In file included from /nix/store/wqbrsq7cp0xd8kyhs9jxkh3qavyjgfm1-libgit2-1.8.4-dev/include/git2/repository.h:14,
                 from /nix/store/wqbrsq7cp0xd8kyhs9jxkh3qavyjgfm1-libgit2-1.8.4-dev/include/git2/annotated_commit.h:11,
                 from /nix/store/wqbrsq7cp0xd8kyhs9jxkh3qavyjgfm1-libgit2-1.8.4-dev/include/git2.h:11,
                 from utils.h:1:
/nix/store/wqbrsq7cp0xd8kyhs9jxkh3qavyjgfm1-libgit2-1.8.4-dev/include/git2/commit.h:369:27: note: expected 'const git_commit **' but argument is of type 'git_commit **'
  369 |         const git_commit *parents[]);
      |         ~~~~~~~~~~~~~~~~~~^~~~~~~~~
make: *** [/nix/store/k9g3yr4md4v76ds9ypz9yjh0590bgg1m-R-4.4.1/lib/R/etc/Makeconf:195: rebase.o] Error 1
ERROR: compilation failed for package 'gert'
* removing '/nix/store/is6rr4ga1m1gqvp1p3w1gmdgb9ggrdq0-r-gert-2.1.1/library/gert'
error: builder for '/nix/store/4ssgkq7f40fwh1riymvbydqwfkkiqi4z-r-gert-2.1.1.drv' failed with exit code 1;
       last 25 log lines:
       >                  from /nix/store/wqbrsq7cp0xd8kyhs9jxkh3qavyjgfm1-libgit2-1.8.4-dev/include/git2/annotated_commit.h:11,
       >                  from /nix/store/wqbrsq7cp0xd8kyhs9jxkh3qavyjgfm1-libgit2-1.8.4-dev/include/git2.h:11,
       >                  from utils.h:1:
       > /nix/store/wqbrsq7cp0xd8kyhs9jxkh3qavyjgfm1-libgit2-1.8.4-dev/include/git2/commit.h:369:27: note: expected 'const git_commit **' but argument is of type 'git_commit **'
       >   369 |         const git_commit *parents[]);
       >       |         ~~~~~~~~~~~~~~~~~~^~~~~~~~~
       > make: *** [/nix/store/k9g3yr4md4v76ds9ypz9yjh0590bgg1m-R-4.4.1/lib/R/etc/Makeconf:195: commit.o] Error 1
       > make: *** Waiting for unfinished jobs....
       > In file included from rebase.c:2:
       > rebase.c: In function 'R_git_cherry_pick':
       > utils.h:28:29: error: passing argument 10 of 'git_commit_create' from incompatible pointer type [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Wincompatible-pointer-types8;;]
       >    28 | #define no_const_workaround (git_commit **)
       > rebase.c:110:64: note: in expansion of macro 'no_const_workaround'
       >   110 |                             git_commit_message(orig), tree, 1, no_const_workaround parents), "git_commit_create");
       >       |                                                                ^~~~~~~~~~~~~~~~~~~
       > In file included from /nix/store/wqbrsq7cp0xd8kyhs9jxkh3qavyjgfm1-libgit2-1.8.4-dev/include/git2/repository.h:14,
       >                  from /nix/store/wqbrsq7cp0xd8kyhs9jxkh3qavyjgfm1-libgit2-1.8.4-dev/include/git2/annotated_commit.h:11,
       >                  from /nix/store/wqbrsq7cp0xd8kyhs9jxkh3qavyjgfm1-libgit2-1.8.4-dev/include/git2.h:11,
       >                  from utils.h:1:
       > /nix/store/wqbrsq7cp0xd8kyhs9jxkh3qavyjgfm1-libgit2-1.8.4-dev/include/git2/commit.h:369:27: note: expected 'const git_commit **' but argument is of type 'git_commit **'
       >   369 |         const git_commit *parents[]);
       >       |         ~~~~~~~~~~~~~~~~~~^~~~~~~~~
       > make: *** [/nix/store/k9g3yr4md4v76ds9ypz9yjh0590bgg1m-R-4.4.1/lib/R/etc/Makeconf:195: rebase.o] Error 1
       > ERROR: compilation failed for package 'gert'
       > * removing '/nix/store/is6rr4ga1m1gqvp1p3w1gmdgb9ggrdq0-r-gert-2.1.1/library/gert'
       For full logs, run 'nix log /nix/store/4ssgkq7f40fwh1riymvbydqwfkkiqi4z-r-gert-2.1.1.drv'.

Additional context

This is probably related to r-lib/gert#213 and https://github.com/libgit2/libgit2/releases/tag/v1.8.2-rc1

Metadata

  • system: "x86_64-linux"
  • host os: Linux 6.6.68, NixOS, 25.05 (Warbler), 25.05beta729683.88195a94f390
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.24.11
  • channels(root): "nixos"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Notify maintainers

Add a 👍 reaction to issues you find important.

@jeroen
Copy link

jeroen commented Jan 4, 2025

Try with the latest gert from https://cran.r-project.org/web/packages/gert/index.html

@BerriJ
Copy link
Author

BerriJ commented Jan 4, 2025

This is already fixed in the latest unstable channel.

@BerriJ BerriJ closed this as completed Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build
Projects
None yet
Development

No branches or pull requests

2 participants