oxidize-rb / rb-sys

Easily build Ruby native extensions in Rust
https://oxidize-rb.github.io/rb-sys/
Apache License 2.0
219 stars 34 forks source link

Can't install blake3-rb on FreeBSD #381

Open dearblue opened 2 months ago

dearblue commented 2 months ago

# guided from https://github.com/Shopify/blake3-rb/issues/9

I tried gem install blake3-rb on FreeBSD 14.0.

The installation fails with an error that seems to require GNU Make.

# gem33 install blake3-rb
Building native extensions. This could take a while...
ERROR:  Error installing blake3-rb:
        ERROR: Failed to build gem native extension.

    current directory: /usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext
/usr/local/bin/ruby33 extconf.rb
checking for cc... yes
checking for c++... yes
checking for ar... yes
checking for cargo... yes

current directory: /usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext
make DESTDIR\= sitearchdir\=./.gem.20240527-92217-yc5o4l sitelibdir\=./.gem.20240527-92217-yc5o4l clean
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 8: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 10: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 20: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 22: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 24: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 31: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 32: warning: duplicate script for target "ifneq" ignored
make: "Makefile" line 9: warning: using previous script for "ifneq" defined here
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 33: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 35: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 265: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 266: warning: duplicate script for target "ifneq" ignored
make: "Makefile" line 9: warning: using previous script for "ifneq" defined here
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 266: warning: duplicate script for target "(,)" ignored
make: "Makefile" line 32: warning: using previous script for "(,)" defined here
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 267: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 522: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 527: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 529: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 533: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 535: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 537: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 556: Invalid line type
make: Fatal errors encountered -- cannot continue
make: stopped in /usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext

current directory: /usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext
make DESTDIR\= sitearchdir\=./.gem.20240527-92217-yc5o4l sitelibdir\=./.gem.20240527-92217-yc5o4l
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 8: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 10: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 20: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 22: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 24: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 31: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 32: warning: duplicate script for target "ifneq" ignored
make: "Makefile" line 9: warning: using previous script for "ifneq" defined here
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 33: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 35: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 265: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 266: warning: duplicate script for target "ifneq" ignored
make: "Makefile" line 9: warning: using previous script for "ifneq" defined here
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 266: warning: duplicate script for target "(,)" ignored
make: "Makefile" line 32: warning: using previous script for "(,)" defined here
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 267: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 522: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 527: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 529: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 533: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 535: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 537: Invalid line type
make: "/usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext/Makefile" line 556: Invalid line type
make: Fatal errors encountered -- cannot continue
make: stopped in /usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1/ext/digest/blake3_ext

make failed, exit code 1

Gem files will remain installed in /usr/local/lib/ruby/gems/3.3/gems/blake3-rb-1.5.4.1 for inspection.
Results logged to /usr/local/lib/ruby/gems/3.3/extensions/amd64-freebsd-14/3.3/blake3-rb-1.5.4.1/gem_make.out