ruby-numo / numo-narray

Ruby/Numo::NArray - New NArray class library
http://ruby-numo.github.io/narray/
BSD 3-Clause "New" or "Revised" License
415 stars 41 forks source link

Failed to install for Ruby 2.7 on High Sierra #149

Closed scivola closed 4 years ago

scivola commented 4 years ago

I can not install numo-narray 0.9.1.5 for Ruby 2.7 on macOS 10.13.6 (High Sierra). Although for Ruby 2.6.5 on the same environment, it was successfully installed. Any advice?

Building native extensions. This could take a while...
ERROR:  Error installing numo-narray:
    ERROR: Failed to build gem native extension.

    current directory: /Users/nemo/.rbenv/gems/2.7.0/gems/numo-narray-0.9.1.5/ext/numo/narray
/Users/nemo/.rbenv/versions/2.7.0/bin/ruby -I /Users/nemo/.rbenv/versions/2.7.0/lib/ruby/2.7.0 -r ./siteconf20191228-90747-qmrs24.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... yes
creating numo/extconf.h
creating Makefile

current directory: /Users/nemo/.rbenv/gems/2.7.0/gems/numo-narray-0.9.1.5/ext/numo/narray
make "DESTDIR=" clean

current directory: /Users/nemo/.rbenv/gems/2.7.0/gems/numo-narray-0.9.1.5/ext/numo/narray
make "DESTDIR="
compiling narray.c
compiling array.c
compiling step.c
compiling index.c
index.c:1056:44: error: too few arguments to function call, expected 4, have 3
    return rb_f_notimplement(argc,argv,self);
           ~~~~~~~~~~~~~~~~~               ^
/Users/nemo/.rbenv/versions/2.7.0/include/ruby-2.7.0/ruby/intern.h:441:1: note: 'rb_f_notimplement' declared here
NORETURN(VALUE rb_f_notimplement(int argc, const VALUE *argv, VALUE obj, VALUE marker));
^
/Users/nemo/.rbenv/versions/2.7.0/include/ruby-2.7.0/x86_64-darwin17/ruby/config.h:139:21: note: expanded from macro 'NORETURN'
#define NORETURN(x) __attribute__ ((__noreturn__)) x
                    ^
index.c:1100:44: error: too few arguments to function call, expected 4, have 3
    return rb_f_notimplement(argc,argv,self);
           ~~~~~~~~~~~~~~~~~               ^
/Users/nemo/.rbenv/versions/2.7.0/include/ruby-2.7.0/ruby/intern.h:441:1: note: 'rb_f_notimplement' declared here
NORETURN(VALUE rb_f_notimplement(int argc, const VALUE *argv, VALUE obj, VALUE marker));
^
/Users/nemo/.rbenv/versions/2.7.0/include/ruby-2.7.0/x86_64-darwin17/ruby/config.h:139:21: note: expanded from macro 'NORETURN'
#define NORETURN(x) __attribute__ ((__noreturn__)) x
                    ^
2 errors generated.
make: *** [index.o] Error 1

make failed, exit code 2

Gem files will remain installed in /Users/nemo/.rbenv/gems/2.7.0/gems/numo-narray-0.9.1.5 for inspection.
Results logged to /Users/nemo/.rbenv/gems/2.7.0/extensions/x86_64-darwin-17/2.7.0/numo-narray-0.9.1.5/gem_make.out
kojix2 commented 4 years ago

Hello!

Have you tried installing from github master? https://github.com/ruby-numo/numo-narray/pull/143

gem install specific_install
gem specific_install https://github.com/ruby-numo/numo-narray
scivola commented 4 years ago

I have installed it successfully following your advice. Thank you!