Skip to content

numo-narray: error: implicit declaration of function ‘RBASIC’ #3751

Open
@puni073

Description

@puni073

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions