-
Notifications
You must be signed in to change notification settings - Fork 3
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
compilation problem on Mac 12.0.1 with M1 chip #23
Comments
hmm.. this worked:
I don't actually understand why but feel free to close this if you do not have anything to add... |
just to add: i did previously try the other suggested solution of editing the Makevars file and that did not work, |
Perhaps tangential to the issue, but Bioconductor is not producing M1 binaries at the moment so the package probably hasn't received much (any?) testing on the M1 platform (except perhaps via running the intel version of R under Rosetta 2). Based on this report, it looks like it might require a little work to get everything working smoothly once Bioconductor has first-class support for the M1 Macs? |
Hi Matthew, thanks for flagging this. Indeed, as Pete has suggested, sparseMatrixStats hasn't really been tested on the M1, however, I am not actually sure this is an M1-specific problem. The warnings and errors suggest to me, that I actually messed up a bit with the required C++ standard:
For a bit of background: When I initially developed sparseMatrixStats, I decided to prioritize developer comfort over support for old compilers and used a bunch of features from the C++14 standard. I thought that being on Bioconductor, which requires the latest R version, meant that everyone would have a newish compiler. After a number of user complaints #2, #4, #14, #18, wider adoption (#18 (comment)) and friendly help from Aaron Lun I finally got rid of the C++-14 features (744adbe). In the same commit, I removed the SystemRequirements line from the DESCRIPTION file. As far as I understand the Writing R Extensions manual, R version >=4.0 should actually use a compiler that supports C++11, but for some reason, in your specific case, it does not. I have now re-inserted the
Best, |
first try compilation looked successful but then got this error:
So I tried installing
I'm not sure what is going on here, but it seems likely a different problem than before.... |
not sure if this output might be relevant. Maybe there is something weird about my setup
replacement repositories: |
Hi, I was experiencing similar compiling problems, and this worked for me as well.
Just wanted to share this and say thanks to stephens999 for the fix. |
I am running Mac OS Monterey, v12.0.1, on an MacBook Pro with M1 chip (13-inch, M1, 2020).
I have Apple clang version 13.0.0 (clang-1300.0.29.3)
and R version 4.1.0 Patched (2021-07-20 r80657)
I'm getting various warnings and ultimately errors when I try to compile from source.
Any ideas you might have are most welcome.
The text was updated successfully, but these errors were encountered: