Skip to content
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

macos sonoma 14.7 compilation information #14

Open
vjcitn opened this issue Dec 8, 2024 · 0 comments
Open

macos sonoma 14.7 compilation information #14

vjcitn opened this issue Dec 8, 2024 · 0 comments

Comments

@vjcitn
Copy link

vjcitn commented Dec 8, 2024

This is just informational. I may have a dysfunctional mac. I had problems compiling
snappy.cc -- and I've had header discovery issues with other packages.

clang++ version is

Apple clang version 16.0.0 (clang-1600.0.26.3)
Target: arm64-apple-darwin23.6.0
Thread model: posix

I used brew install c-blosc to get blosc.h -- not happy about that but had to try

uses R CMD install Rarr and let it fail with

In file included from snappy.cc:29:
./snappy.h:43:10: fatal error: 'string' file not found
   43 | #include <string>

Then in src/Makevars I modified PKG_CXXFLAGS

export PKG_CXXFLAGS=-falign-functions=64 -Wall -g -O2 -I/opt/homebrew/Cellar/c-blosc/1.21.6/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/

Then R CMD install --no-configure Rarr succeeded.

Feel free to close this issue at any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant