numo-narray icon indicating copy to clipboard operation
numo-narray copied to clipboard

installation fails using TruffleRuby

Open puni073 opened this issue 1 year ago • 0 comments

ruby --version

truffleruby 24.1.1, like ruby 3.2.4, Oracle GraalVM Native [x86_64-linux]

gem install numo-narray

compiling narray.c
narray.c: In function ‘nary_copy_flags’:
narray.c:948:5: error: implicit declaration of function ‘RBASIC’ [-Werror=implicit-function-declaration]
  948 |     RBASIC(dst)->flags |= (RBASIC(src)->flags) &
      |     ^~~~~~
narray.c:948:16: error: invalid type argument of ‘->’ (have ‘int’)
  948 |     RBASIC(dst)->flags |= (RBASIC(src)->flags) &
      |                ^~
narray.c:948:39: error: invalid type argument of ‘->’ (have ‘int’)
  948 |     RBASIC(dst)->flags |= (RBASIC(src)->flags) &
      |                                       ^~
cc1: some warnings being treated as errors
make: *** [Makefile:583: narray.o] Error 1

This could be fixed with the replacement https://github.com/oracle/truffleruby/issues/3751#issuecomment-2637107611 https://github.com/oracle/truffleruby/issues/3118#issuecomment-1804194112

puni073 avatar Feb 16 '25 12:02 puni073