Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Can't install rpolars from source #8

Open
paleolimbot opened this issue Dec 26, 2022 · 3 comments
Open

Can't install rpolars from source #8

paleolimbot opened this issue Dec 26, 2022 · 3 comments

Comments

@paleolimbot
Copy link

Just trying to get a dev setup for this and following the directions I get:

> rextendr::document()
ℹ Generating extendr wrapper functions for package: rpolars.
! No library found at src/rpolars.so, recompilation is required.
ℹ Re-compiling rpolars (debug build)
── R CMD INSTALL ─────────────────────────────────────────────────────────────────────────────
─  installing *source* package ‘rpolars’ ...
   ** using staged installation
   ** libs
   rm -Rf rpolars.so ./rust/target/release/librpolars.a entrypoint.o
   clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/arm64/include   -fPIC  -falign-functions=64 -Wall -g -O2  -UNDEBUG -Wall -pedantic -g -O0 -fdiagnostics-color=always -c entrypoint.c -o entrypoint.o
   cargo build --lib --release --manifest-path=./rust/Cargo.toml
      Compiling arrow2 v0.14.1
   error[E0554]: `#![feature]` may not be used on the stable release channel
     --> /Users/deweydunnington/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow2-0.14.1/src/lib.rs:14:39
      |
   14 | #![cfg_attr(feature = "simd", feature(portable_simd))]
      |                                       ^^^^^^^^^^^^^
   
   For more information about this error, try `rustc --explain E0554`.
   error: could not compile `arrow2` due to previous error
   make: *** [rust/target/release/librpolars.a] Error 101
   ERROR: compilation failed for package ‘rpolars’
─  removing ‘/private/var/folders/gt/l87wjg8s7312zs9s7c1fgs900000gn/T/RtmpwmxHfs/devtools_install_535b2676b284/rpolars’
Error in `(function (command = NULL, args = character(), error_on_status = TRUE, …`:
! System command 'R' failed
---
Exit status: 1
stdout & stderr: <printed>
---
Type .Last.error to see the more details.
@sorhawell
Copy link
Member

sorhawell commented Dec 26, 2022

Yeah many run into this error when compiling polars. I will try to make readme more precise on this.

See e.g.
pola-rs/polars#4273
And...
https://rust-lang.github.io/rustup/concepts/channels.html

Try installing and set to nightly

rustup toolchain install nightly
rustup default nightly

and then run rextendr::document() again

@sorhawell
Copy link
Member

rpolars is migrating to pola-rs

You're welcome to reopen the issue here if relevant here or join the pola-rs discord channel for casual discussions.

Many Thanks
Soren

@paleolimbot
Copy link
Author

Thank you! Your comment solved this. Looking forward to contributing at the repo's new home!

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

No branches or pull requests

2 participants