-
Notifications
You must be signed in to change notification settings - Fork 36
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
R cmd check fails with latest rust-polars on macOS #35
Comments
In the short run workflow will just ignore warnings/notes containing I guess this could be resolved by figuring out what crate sysinfo is depending on and some how explicitly state this as a requirement in rpolars DESCRIPTION to satisfy R CMD check. |
r-polars works just fine for macOS. It is just matter figuring out if the rpolars relies on some system dependency and how to state this in the DESCRIPTION file. It could also be a false alarm, as rpolars is statically linked and all dependencies should be included in the binary. |
Not sure it objdump also works on Mac or if it is called differntly, but it might help if you can print all symbols.
|
thx I will try it out, seem there is a variant called otools which is recommended: |
Found in writing R extensions how to use otool (objdump for mac) on rpolars.so sorenwelling@Srens-MacBook-Pro libs % R CMD otool -L rpolars.so
rpolars.so:
rpolars.so (compatibility version 0.0.0, current version 0.0.0)
/Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libR.dylib (compatibility version 4.2.0, current version 4.2.3)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1953.255.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.0.0)
sorenwelling@Srens-MacBook-Pro libs % So there are some dependencies. I believe they come from the crate sysinfo which polars likely uses to get machine info. |
Hurray don't know if cran check rules changed or what, but this is no longer an cran check error. |
Test PR #34 shows r-polars fails R CMD check on macOS if upgrading rust-polars dependency beyond this polars commit
Windows:
Likely because polars included crate sysinfo which have a lot of system dependencies. For windows following mingw libraries -lntdll -lpsapi -liphlpapi -lpdh -lpowrprof -loleaut32 -lnetapi32 -lsecur32 can be included to the linker, and the problem is resolved.
However for macOS R CMD check throws the following error:
The text was updated successfully, but these errors were encountered: