Closed dwinsemius closed 3 months ago
Fixed here: https://github.com/oxfordcontrol/Clarabel.rs/pull/58 and will appear in the next minor release.
The issue was that the rust borrow checker was updated in 1.63, and the old borrow checker was not happy with the code as written. The fix above satisfies both old and new borrow checkers. I have tested that the code works with compiler releases from 1.60 onwards.
Easiest fix for you though is probably just to update the compiler : rustup update stable
Thanks @goulart-paul . Since this R package vendors the crates, I should update this repo as well, which I will.
Thanks. I was running rustc 1.61.0, so I guess I can just resubmit after acquiring the new source. (I will also update rust.)
However, after installing rustup which didn't previously reside on my machine
$ snap install rustup --classic # despite the security warnings
and then getting
rustc 1.72.1 (d5c2e9c34 2023-09-13)
I''m still getting the error with this from an Rstudio console:
remotes::install_github("oxfordcontrol/clarabel-r")
Maybe I should reboot and try again?
Just a clarification about requirements : the code in v0.6.0 should compile without error provide that the rust compiler is at least v1.63.
The version currently on the Clarabel.rs
main branch (but not in any release yet) just makes it compatible back to rustc version 1.60. If you have updated rustc then there should be no need to update the source.
Closing this as completed.
At the end of a mostly successful effort I arrived at this on a linux/Ubuntu 18.04 box running R 4.2.1 . I knowI should update, but this doesn't look like an error thrown from R but rather from rust code.
For more information about this error, try
rustc --explain E0716
. error: could not compileclarabel
due to previous error warning: build failed, waiting for other jobs to finish... make: *** [Makevars:18: rust/target/release/libclarabel.a] Error 101 ERROR: compilation failed for package ‘clarabel’For me it's not a big deal. I was going to take a stab at answering a question on StackOverflow.
-- David Winsemius