efx
May 30, 2024, 2:50pm
2
rPackages.arrow
seems brittle. I found this issue that describes a similar problem. I recreated it today on my NixOS machine with nix-shell -p rPackages.arrow
opened 03:36AM - 02 Jul 23 UTC
closed 07:59AM - 03 Jul 23 UTC
0.kind: build failure
### Steps To Reproduce
Steps to reproduce the behavior:
I am trying to ins… tall R arrow package, system wide.
I add arrow as any other R library I use.
### Build log
```
installing
* installing *source* package 'arrow' ...
file 'configure' has the wrong MD5 checksum
** using staged installation
*** Arrow C++ libraries found via pkg-config at /nix/store/mwavk5kg8rjjcjjz2b4nnhmchbyybrg3-arrow-cpp-12.0.0/lib
**** Warning: library version mismatch
**** C++ is 12.0.0 but R is 11.0.0.3
**** If installation fails, upgrade the C++ library to match
**** or retry with ARROW_USE_PKG_CONFIG=false
PKG_CFLAGS=-I/nix/store/mwavk5kg8rjjcjjz2b4nnhmchbyybrg3-arrow-cpp-12.0.0/include
PKG_LIBS=-L/nix/store/mwavk5kg8rjjcjjz2b4nnhmchbyybrg3-arrow-cpp-12.0.0/lib -larrow
** libs
/nix/store/d9fndiing52fkalp5knfalrvlb3isi6w-gcc-wrapper-12.2.0/bin/c++ -std=gnu++17 -I"/nix/store/d0i117srx5jgqf0c33mw0p6s3jam04vp-R-4.2.3/lib/R/include" -DNDEBUG -I/nix/store/mwavk5kg8rjjcjjz2b4nnhmchbyybrg3-arrow-cpp-12.0.0/include -I'/nix/store/wdhxn7lklildc2n0vd6c9sds4f6fz7bs-r-cpp11-0.4.3/library/cpp11/include' -fpic -g -O2 -c RTasks.cpp -o RTasks.o
/nix/store/d9fndiing52fkalp5knfalrvlb3isi6w-gcc-wrapper-12.2.0/bin/c++ -std=gnu++17 -I"/nix/store/d0i117srx5jgqf0c33mw0p6s3jam04vp-R-4.2.3/lib/R/include" -DNDEBUG -I/nix/store/mwavk5kg8rjjcjjz2b4nnhmchbyybrg3-arrow-cpp-12.0.0/include -I'/nix/store/wdhxn7lklildc2n0vd6c9sds4f6fz7bs-r-cpp11-0.4.3/library/cpp11/include' -fpic -g -O2 -c altrep.cpp -o altrep.o
In file included from altrep.cpp:18:
./arrow_types.h:41:10: fatal error: arrow/compute/exec/options.h: No such file or directory
41 | #include <arrow/compute/exec/options.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [/nix/store/d0i117srx5jgqf0c33mw0p6s3jam04vp-R-4.2.3/lib/R/etc/Makeconf:178: altrep.o] Error 1
ERROR: compilation failed for package 'arrow'
* removing '/nix/store/46qp7h3cl6l9lddl950b3dy5c8gjdw43-r-arrow-11.0.0.3/library/arrow'
error: builder for '/nix/store/z446iqac67kjc0869x4fi2ai50vkrnw0-r-arrow-11.0.0.3.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/8asvbibp48gmqg6vr190519qp7q608fc-R-4.2.3-wrapper.drv' failed to build
building '/nix/store/blsyjcwnlgjz8wkl4msjbinmbjlj5l51-system-generators.drv'...
error: 1 dependencies of derivation '/nix/store/5kjjq4z9fmflxb8sfh7h2frf80d56jjd-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/bh9dir11w7p7sslw7g5il9ac50wadz2h-nixos-system-nixVM-23.05.1471.b72aa95f7f0.drv' failed to build
```
### Additional context
I want to switch to nixos, so I am trying to recreate my Debian working environment on a VM and an old laptop.
For now, I hardly understand the nix language, but all other R packages I add were build without problems.
### Notify maintainers
I think there are no maintainers listed for the R arrow.
### Metadata
```console
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 6.1.35, NixOS, 23.05 (Stoat), 23.05.1353.35130d4b4f0`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.13.3`
- channels(root): `"nixos-23.05"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
```