Created
March 23, 2018 08:53
-
-
Save mrkn/549e82c47f5ffe407dc1fce29b657be2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
compiling arrow-nmatrix.c | |
arrow-nmatrix.c: In function ‘garrow_type_to_nmatrix_dtype’: | |
arrow-nmatrix.c:57:8: error: ‘GARROW_TYPE_BOOL’ undeclared (first use in this function) | |
case GARROW_TYPE_BOOL: | |
^ | |
arrow-nmatrix.c:57:8: note: each undeclared identifier is reported only once for each function it appears in | |
arrow-nmatrix.c:34:3: warning: enumeration value ‘GARROW_TYPE_BOOLEAN’ not handled in switch [-Wswitch-enum] | |
switch (arrow_type) { | |
^ | |
arrow-nmatrix.c: In function ‘nmatrix_dtype_to_garrow_data_type’: | |
arrow-nmatrix.c:135:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] | |
arrow_data_type = garrow_uint8_data_type_new(); | |
^ | |
arrow-nmatrix.c:138:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] | |
arrow_data_type = garrow_int8_data_type_new(); | |
^ | |
arrow-nmatrix.c:141:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] | |
arrow_data_type = garrow_int16_data_type_new(); | |
^ | |
arrow-nmatrix.c:144:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] | |
arrow_data_type = garrow_int32_data_type_new(); | |
^ | |
arrow-nmatrix.c:147:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] | |
arrow_data_type = garrow_int64_data_type_new(); | |
^ | |
arrow-nmatrix.c:150:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] | |
arrow_data_type = garrow_float_data_type_new(); | |
^ | |
arrow-nmatrix.c:153:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] | |
arrow_data_type = garrow_double_data_type_new(); | |
^ | |
arrow-nmatrix.c: In function ‘rb_nmatrix_to_arrow’: | |
arrow-nmatrix.c:173:13: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] | |
data_type = nmatrix_dtype_to_garrow_data_type(NM_DTYPE(self)); | |
^ | |
In file included from arrow-nmatrix.c:21:0: | |
/usr/local/bundle/gems/nmatrix-0.2.4/ext/nmatrix/nmatrix.h:391:34: warning: implicit declaration of function ‘nm_storage_count_max_elements’ [-Wimplicit-function-declaration] | |
#define NM_DENSE_COUNT(val) (nm_storage_count_max_elements(NM_STORAGE_DENSE(val))) | |
^ | |
arrow-nmatrix.c:182:52: note: in expansion of macro ‘NM_DENSE_COUNT’ | |
NM_SIZEOF_DTYPE(self) * NM_DENSE_COUNT(self)); | |
^ | |
In file included from /usr/local/include/ruby-2.5.0/ruby.h:33:0, | |
from /usr/local/bundle/gems/glib2-3.2.1/ext/glib2/rbgobject.h:27, | |
from arrow-nmatrix.c:19: | |
/usr/local/include/ruby-2.5.0/ruby/ruby.h:1206:30: warning: nested extern declaration of ‘nm_storage_count_max_elements’ [-Wnested-externs] | |
#define RDATA(obj) (R_CAST(RData)(obj)) | |
^ | |
/usr/local/include/ruby-2.5.0/ruby/ruby.h:1198:30: note: in definition of macro ‘R_CAST’ | |
#define R_CAST(st) (struct st*) | |
^ | |
/usr/local/include/ruby-2.5.0/ruby/ruby.h:1108:24: note: in expansion of macro ‘RDATA’ | |
#define DATA_PTR(dta) (RDATA(dta)->data) | |
^ | |
/usr/local/bundle/gems/nmatrix-0.2.4/ext/nmatrix/nmatrix.h:361:61: note: in expansion of macro ‘DATA_PTR’ | |
#define NM_STRUCT(val) ((struct NM_NMATRIX*)(DATA_PTR(val))) | |
^ | |
/usr/local/bundle/gems/nmatrix-0.2.4/ext/nmatrix/nmatrix.h:354:34: note: in expansion of macro ‘NM_STRUCT’ | |
#define NM_STORAGE(val) (NM_STRUCT(val)->storage) | |
^ | |
/usr/local/bundle/gems/nmatrix-0.2.4/ext/nmatrix/nmatrix.h:372:34: note: in expansion of macro ‘NM_STORAGE’ | |
#define NM_DTYPE(val) (NM_STORAGE(val)->dtype) | |
^ | |
/usr/local/bundle/gems/nmatrix-0.2.4/ext/nmatrix/nmatrix.h:395:46: note: in expansion of macro ‘NM_DTYPE’ | |
#define NM_SIZEOF_DTYPE(val) (D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment