truffleruby icon indicating copy to clipboard operation
truffleruby copied to clipboard

numo-linalg gem doesn't build with truffleruby+graalvm-22.3.0 on Ubuntu 22.04 or Rocky 9 (RHEL)

Open jcasu opened this issue 2 years ago • 1 comments

truffleruby+graalvm-22.3.0 is having issues building numo-linalg works fine, btw, on ruby 3.2.0. Please see attached file for the error output. Looks like a BLAS source macro isn't being defined.

many thanks.

numo-error.txt

jcasu avatar Jan 26 '23 18:01 jcasu

Thank you for the report, I can reproduce it locally.

It sounds like UNUSED is not properly defined, not immediately clear why.

/home/eregon/.rubies/truffleruby-dev/lib/gems/gems/numo-linalg-0.1.7/ext/numo/linalg/blas/gen/../tmpl/nrm2.c:36:57: error: expected ')'
blas_s_dnrm2(int argc, VALUE const argv[], VALUE UNUSED(mod))
                                                        ^
/home/eregon/.rubies/truffleruby-dev/lib/gems/gems/numo-linalg-0.1.7/ext/numo/linalg/blas/gen/../tmpl/nrm2.c:36:13: note: to match this '('
blas_s_dnrm2(int argc, VALUE const argv[], VALUE UNUSED(mod))
            ^

eregon avatar Feb 17 '23 14:02 eregon