-
Notifications
You must be signed in to change notification settings - Fork 24
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
Duplicate definition of Rf_isS4 #243
Comments
Simply removing the defintions from the |
We need perhaps a way to check if the bindings were generated at compile time and remove the code from lib.rs |
Can you pull from libr-Sys? We have an extensive ci testing process and this case should have been checked. |
Pulled directly from the main branch. Same error. I will try to get it to properly compile and see if it breaks on any other R version. I will try to see what I can do in terms of CI to test for this |
@CGMossa The library seems to compile and tests seem to pass when the def of The tests pass both normally and with |
Yes.. It could be that this particular version hasn't had its bindings updated, for some strange reason. We basically write a custom binding definition for those two items instead of what bindgen thinks it should be. So we block them on bindgen, and add them manually. Check if they are in the other cached binding files.. They shouldn't be. |
Okay maybe your version of R is just old enough that the bindings wasn't generated for it. That makes sense. I can maybe do something about this... But it will take some time. I'd recommend hand altering these cached bindings, or running with use-bindgen features for now. |
I'm trying to complite a package on a machine that seems to require rebuilding the R library.
R Version: 4.2.1
When I try to compile
libR-sys
I get the following compilation error.I think the error is pretty self explanatory, there is definition duplication between
lib.rs
and the different bindings.I am 100% willing to help out with this issue. However, some guidance on the implications of changing these values would be appriciated as guidance.
The text was updated successfully, but these errors were encountered: