-
Notifications
You must be signed in to change notification settings - Fork 194
Closed
Description
To reproduce:
gem install numo-narray
Error:
Building native extensions. This could take a while...
ERROR: Error installing numo-narray:
ERROR: Failed to build gem native extension.
current directory: ~/.gem/truffleruby/2.6.5/gems/numo-narray-0.9.1.6/ext/numo/narray
~/.rubies/truffleruby-19.3.1/bin/truffleruby -I ~/.rubies/truffleruby-19.3.1/lib/mri -r ./siteconf20200123-31672-1feb9yt.rb extconf.rb
checking for stdbool.h... yes
checking for stdint.h... yes
checking for bool in stdbool.h... yes
checking for u_int8_t in stdint.h... yes
checking for u_int16_t in stdint.h... yes
checking for int32_t in stdint.h... yes
checking for u_int32_t in stdint.h... yes
checking for int64_t in stdint.h... yes
checking for u_int64_t in stdint.h... yes
checking for exp10()... no
checking for rb_arithmetic_sequence_extract()... yes
checking for rb_cComplex... no
creating ~/.gem/truffleruby/2.6.5/gems/numo-narray-0.9.1.6/ext/numo/narray/numo/extconf.h
creating Makefile
current directory: ~/.gem/truffleruby/2.6.5/gems/numo-narray-0.9.1.6/ext/numo/narray
make "DESTDIR=" clean
current directory: ~/.gem/truffleruby/2.6.5/gems/numo-narray-0.9.1.6/ext/numo/narray
make "DESTDIR="
compiling narray.c
narray.c:141:51: warning: format specifies type 'unsigned long' but the argument has type 'VALUE' (aka 'void *') [-Wformat]
printf(" id = 0x%"PRI_VALUE_PREFIX"x\n", self);
~~~~~~~~~~~~~~~~~~~~ ^~~~
narray.c:948:18: error: no member named 'flags' in 'struct RBasic'
RBASIC(dst)->flags |= (RBASIC(src)->flags) &
~~~~~~~~~~~ ^
narray.c:948:41: error: no member named 'flags' in 'struct RBasic'
RBASIC(dst)->flags |= (RBASIC(src)->flags) &
~~~~~~~~~~~ ^
1 warning and 2 errors generated.
make: *** [narray.o] Error 1
make failed, exit code 2
Gem files will remain installed in ~/.gem/truffleruby/2.6.5/gems/numo-narray-0.9.1.6 for inspection.
Results logged to ~/.gem/truffleruby/2.6.5/extensions/x86_64-darwin/19.3.1/numo-narray-0.9.1.6/gem_make.out