Closed whelanh closed 1 year ago
Can you provide a bit more detail, please?
I see g++ 12.2.1, that should be good. But what version of QuantLib is this trying to build against?
FWIW QuantLib 1.30 came out recently, I updated it for Debian (I am the maintainer for it there) and also in my PPA. I made two tiny changes in the github repo of RQuantLib for.
The CRAN version of RQuantLib has not been updated for that, so it would likely be happiest with QuantLib 1.29. Is that what you use, or do you have something older?
Thank you so much for responding. The version of QuantLib I have installed/compiled is 1.30-1 from AUR. I will see if I can downgrade QuantLib to 1.29. Thank you for all you work on the RQuantLib package. Kind regards, Hugh
No, 1.30-1 is good! While it does not explain the error you showed (which I never saw on similar compiler versions) you can just try remotes::install_github("eddelbuettel/rquantlib")
though I fear it may also fail. The next thing we may have to control for is Boost versions but you are likely also current. In a nutshell, I do not know where
/usr/include/ql/any.hpp:40:20: error: ‘any’ has not been declared in ‘std’
40 | using std::any; // NOLINT(misc-unused-using-decls)
| ^~~
/usr/include/ql/any.hpp:41:20: error: ‘any_cast’ has not been declared in ‘std’
came from. "It all works over here."
You might be right about Boost versions. I see I have boost 1.81.0-3 version installed. I see from the boost website that there is a 1.82.0 version of boost; is that the one you used?
No I am also on 1.81. Weird. Also "small" +1/-1 deltas rarely matter. You are otherwise current.
You need to debug that at your end -- I cannot help your from here. My log is below. All clean here. (Would be the same for CRAN RQuantLib modulo one (or two) 'deprecation' warnings.)
Well I am happy to report success now. It was not a Boost issue (I did not change my configuration). I changed my installation of "quantlib" from AUR 1.30-1 to the other option on AUR of 'quantlib-git" version 1.30r12ga342b44ff-1. These AUR issues are probably why you are happy to be using Debian :-) After doing that I was able to install RQuantLib normally using install.packages('RQuantLib')...albeit with some warnings ( "RQuantLib 0.4.17 built with QuantLib version 1.31-dev. See https://www.quantlib.org for more on QuantLib. Warning message: In compareVersion(qlver, "1.7") : NAs introduced by coercion")
Thank you for your help and patience. Kindest regards, Hugh
Great, glad to know you're covered. I am still not sure where the error may have come from -- but happy to file it under 'local to Manjaro' and close this :grinning:
install.packages('RQuantLib') fails on R 4.3.0 on updated Manjaro (arch-based) Linux system (I suspect this is a recurring problem with compiler mismatch?):