-
Notifications
You must be signed in to change notification settings - Fork 133
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
API Bug with Ruby 2.3 #538
Comments
Believe this is a duplicate of #522. |
@gau27 Can you do the following, please?
And look at the output, see if it finds Then look in the |
@MohawkJohn I'm unable to replicate the issue as in #522 , build works fine for just the NMatrix source. Only when I try to compile SpiceRub is this error showing up |
Can confirm that this problem arises when trying to compile SpiceRub with NMatrix built from source as well as from Rubygems for Rubies #ifndef HAVE_RB_ARRAY_CONST_PTR
static inline const VALUE *
rb_array_const_ptr(VALUE a)
{
return FIX_CONST_VALUE_PTR((RBASIC(a)->flags & RARRAY_EMBED_FLAG) ?
RARRAY(a)->as.ary : RARRAY(a)->as.heap.ptr);
}
#endif |
Bumping this since there's a proposed solution here, and it's relatively easy to test. |
I was having this issue when I tried testing my gem on Ruby 2.3 and greater. The gem adds the
nmatrix.h
header to the native include path so that NMatrix objects can be created directly from C code. There is no problem with running NMatrix outside on a terminal or ruby scripts, it's just a macro clash that occurs whenSpiceRub
is buildingThis is the code from
extconf.rb
that locates the nmatrix header :-The text was updated successfully, but these errors were encountered: