-
Notifications
You must be signed in to change notification settings - Fork 55
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
package compilation failure #406
Comments
Briefly:
I cannot really help here so I would suggest we close this. This appears to be a local issue at your end. Truly sorry. |
It looks like you have a "system" copy of Armadillo that's being picked up at installation time, at
Presumedly, that's coming from
Your best bet is to unset / override that temporarily in your |
Well spotted @kevinushey ! (Or upgrade the system version to one as current as the CRAN version, but that may still lead to "surprises". Best to reign R in here then. Or remove the system one from a default path.) |
I today failed to install 0.11.4.4.0 - on the 16th January I tweeted you when I had difficulty with 0.11.4.3.1 and that resolved itself after I did many attempts and referring to that @coatless article. So I have read it and followed the steps. I went to homebrew and did a lot of updating, cleaning and linking - the package was installed! I just reinstalled/updated a lot of things. I think around Big Sur Apple added an extra barrier to changing directories. |
I don't know if this is something I should comment about here or on another R forum or R package github for this general matter. I mentioned earlier that I am not a computer scientist but I am a social scientist that happens to use statistics in my work so I use R. There are many packages that require R to interact with packages that deal with languages C, C++, Stan etc etc and packages that manage software such has proj@7 that homebrew supplies etc. |
@mansillo thanks for the kind words. The issue at the moment is twofold regarding an "automatic" setup wizard:
That said, it's easy for me to work around both 1 & 2. For 1, I would need a macOS community member that is part of the developer program (maybe @hrbrmstr or someone at Stan though, they weren't hot on the idea before) or a donation to cover the license fee (good for a year). The cost of the developer subscription for newly married and recently minted PhD that doesn't do heavy mac development anymore isn't something that passes the wife's sniff test. On the second note, I likely can find a willing person to test the installer package. This will be slower, but more predictable. In Q3 of 2023, I'll likely even have access to the M1 chip via GitHub action runners (per GitHub Roadmap) |
All this infrastructure business is news to me. I do carry the hat of an R Foundation Board member so if there is a general usability issue we could (and should) support it besides relying solely on @s-u (and effectively monopolosing @s-u) I would be all ears. But I can't drive this, and I am (quite frankly) also not all that interested as I work on an OS where all this "just works", without paying anybody. So if you all choose something different, maybe you all can work out how to make it work while minimising impact on other volunteers like myself who, frankly, are really fully orthogonal to all your headaches. |
@eddelbuettel Honestly, I have no idea what you are referring to. The way I read it is the user has messed up their system with Homebrew and tried (unnecessarily) to install it from sources. The guides mentioned above are terribly outdated and outright dangerous to follow making the toolchains unusable. This is not a fault of the guides, they were meant well at the time, but they do not apply to today's R as none of it is now necessary as we are now using standard Apple tools. In short, I suspect this issue can be trivially solved by deleting Homebrew (and any custom modifications from |
Perhaps this could be resolved in RcppArmadillo by having it set the include paths in
Setting the include paths in |
@eddelbuettel I still don't see installer of what - as I said nothing needs to be installed anymore, just regular Apple Xcode or command line tools. If there is anything I'd be happy to create it. One that I plan to do is the Fortran installer for the 4.3.0 release once we finalise the binary, but that's all I'm aware of (and I don't think that's needed here). |
There was a time before standard Apple tools contained all that was required. The upgrade to Catalina was a major irritant to many. There are legacies, errors were incurred and the point I was making was that it would be helpful to have a clear troubleshooting resource because the past did happen and many would like to address the past mistakes. How else are non-computer science background folk who require applied statistical programming deep knowledge to diagnose and address their issues? |
TIL this is documented in R-exts, from https://cran.r-project.org/doc/manuals/R-exts.html#Using-Makevars:
|
@mansillo still a WIP, but consider checking out If you have an m1/m2 mac, I would appreciate some testing help. Sample setting up Standard disclaimer: This is an unofficial project to provide a convenient toolchain setup for macOS. It is not officially approved by R Core, CRAN, or the R Foundation. |
Just wanted to say that I really appreciate this @coatless! |
We have a nice ~2 minutes-ish video using the package to install everything: Xcode CLI, gfortran, and necessary https://www.youtube.com/watch?v=_fckF0fefXQ Note: I've only really been able to test it heavily on I'll ping Simon privately to poke at the package and circle back here later next week. This is the best I can do without having a developer subscription |
An update of sorts: Bob tested out an early version of the package and found a few issues with I haven't heard back from Simon. I sent out a friendly bump e-mail. |
I cannot compile RcppArmadillo or install it in R either. Ubuntu 22.0.4 R CMD INSTALL RcppArmadillo_0.12.4.1.0.tar.gz
same errors of course with install.packages("RcppArmadillo") in R |
So in short, not an error in |
Dear Dirk, |
This is perhaps an esoteric approach to installing the RcppArmadillo package update but here goes. I routinely update my R packages in RStudio with the check for updates function. Every single time that the RcppArmadillo package appears in that list it fails to compile. I restart the session, restart R, terminate R, restart the computer etc and various iterations of these and the package stubbornly does not compile. Then typically a day or so later I have found in the past without an explanation I can identify the package updates. This drives me utterly mad.
I run the code ...
install.packages("RcppArmadillo")
If anyone can identify why this occurs locally, I'd be interested to know:
The text was updated successfully, but these errors were encountered: