-
Notifications
You must be signed in to change notification settings - Fork 41
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
Installing from source fails on macOS #250
Comments
I solved the problem installing fst via
|
@gabrimaine I confirm that this works, thanks! Maybe this can help @MarcusKlik to implement a generic fix. |
Hi @gabrimaine, thanks for sharing your solution and @pat-s thanks for testing! I've activated the |
Looks like an OpenMP issue to me, i.e. the wrong pointers are set / or the wrong are found during source installation. If I install the binary, OpenMP is also not detected (which is expected given that {data.table} also does not find it by default). library(fst)
fst package v0.9.4
(OpenMP was not detected, using single threaded mode) Not sure how {fst} does it but maybe looking how other popular packages (e.g. data.table) handle OpenMP might be fruitful? See also https://mac.r-project.org/openmp/.
Note that the first piece library(data.table)
data.table 1.13.0 using 4 threads (see ?getDTthreads). Latest news: r-datatable.com
# fst still errors |
@pat-s I also encountered this issue and I solved it with adding |
Thanks. For many reasons this should be supported OOB in the package using Apples default clang compiler. The reason that CRAN checks are not erroring probably relies on CRAN checking on macOS 10.13 and not against the most recent SDKs. |
Hi @pat-s, you're definitely right, this should work OOB for macOS users. The |
Package |
Should be the same as #241 but with a more descriptive title.
I am facing this issue locally since months - in addition, the GitHub Actions install failures cause headaches from time to time.
Time to put some weight onto it :)
I saw you moved the issue to the next milestone. Do you have any idea when it will be tackled?
Note that CRAN tests on macOS 10.13 and the latest SDKs are somewhat troublesome for source installs.
Hence, while your package might install properly on CRAN, it will error on 90% of all user machines when doing source installs because they are > 10.13.
It does not need to be SDK releated necessarily.
Maybe some brew linkings gets into the way.
However, given that the minimal GitHub Actions builds also show the error, I am somewhat confident that it is not related to a local config problem of mine :)
The error below uses the default clang from macOS (on macOS 10.15), as it is the standard for R >= 4.0.
The text was updated successfully, but these errors were encountered: