ruby-numo / numo-linalg

Linear Algebra Library for Ruby/Numo::NArray
BSD 3-Clause "New" or "Revised" License
38 stars 9 forks source link

numo-linalg doesn't build/install on Ubuntu 22.04 or Rocky Linux 9 #47

Open jcasu opened 1 year ago

jcasu commented 1 year ago

Using gcc-11.2 on Ubuntu, gcc-8.5 on Rocky

Seems to have a problem with what looks like an undefined UNUSED() macro

compiling blas.c ruby /root/.rbenv/versions/truffleruby+graalvm-22.3.0/graalvm/languages/ruby/lib/gems/gems/numo-linalg-0.1.7/ext/numo/linalg/blas/gen/cogen.rb -l -o blas_s.c s compiling blas_s.c /root/.rbenv/versions/truffleruby+graalvm-22.3.0/graalvm/languages/ruby/lib/gems/gems/numo-linalg-0.1.7/ext/numo/linalg/blas/gen/../tmpl/nrm2.c:36:57: error: expected ')' blas_s_snrm2(int argc, VALUE const argv[], VALUE UNUSED(mod)) ^ /root/.rbenv/versions/truffleruby+graalvm-22.3.0/graalvm/languages/ruby/lib/gems/gems/numo-linalg-0.1.7/ext/numo/linalg/blas/gen/../tmpl/nrm2.c:36:13: note: to match this '(' blas_s_snrm2(int argc, VALUE const argv[], VALUE UNUSED(mod)) ^ /root/.rbenv/versions/truffleruby+graalvm-22.3.0/graalvm/languages/ruby/lib/gems/gems/numo-linalg-0.1.7/ext/numo/linalg/blas/gen/../tmpl/nrm2.c:34:57: error: expected ')' blas_s_sasum(int argc, VALUE const argv[], VALUE UNUSED(mod)) ^ /root/.rbenv/versions/truffleruby+graalvm-22.3.0/graalvm/languages/ruby/lib/gems/gems/numo-linalg-0.1.7/ext/numo/linalg/blas/gen/../tmpl/nrm2.c:34:13: note: to match this '(' blas_s_sasum(int argc, VALUE const argv[], VALUE UNUSED(mod)) ^