Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing aarch64-linux-musl on RubyGems.org for > 22.7.0.1 #60

Open
tisba opened this issue Sep 9, 2024 · 0 comments
Open

Missing aarch64-linux-musl on RubyGems.org for > 22.7.0.1 #60

tisba opened this issue Sep 9, 2024 · 0 comments

Comments

@tisba
Copy link

tisba commented Sep 9, 2024

Probably already known, just wanted to make sure it's tracked…

I was looking at why builds broke for mini_racer for aarch64-arm musl, e.g. https://github.com/rubyjs/mini_racer/actions/runs/10763648835. Looks like no aarch64-linux-musl packages got pushed to rubygems (>= 22.5.1.0): https://rubygems.org/gems/libv8-node/versions

I don't quite understand how rubygems works in regards to resolving this, but it looks like it's falling back to libv8-node-22.7.0.3-aarch64-linux and then failing (on aarch64 alpine, rubygems 3.5.18, Ruby 3.3.5):

$ gem install mini_racer --version 0.17.0.pre
Fetching mini_racer-0.17.0.pre.gem
Fetching libv8-node-22.7.0.3-aarch64-linux.gem
Successfully installed libv8-node-22.7.0.3-aarch64-linux
Building native extensions. This could take a while...
ERROR:  Error installing mini_racer:
	ERROR: Failed to build gem native extension.

    current directory: /usr/local/bundle/gems/mini_racer-0.17.0.pre/ext/mini_racer_extension
/usr/local/bin/ruby extconf.rb
checking for -lpthread... yes
checking for whether -Wl,--exclude-libs=ALL  is accepted as LDFLAGS... no
creating Makefile

current directory: /usr/local/bundle/gems/mini_racer-0.17.0.pre/ext/mini_racer_extension
make DESTDIR\= sitearchdir\=./.gem.20240909-122-f6akgp sitelibdir\=./.gem.20240909-122-f6akgp clean

current directory: /usr/local/bundle/gems/mini_racer-0.17.0.pre/ext/mini_racer_extension
make DESTDIR\= sitearchdir\=./.gem.20240909-122-f6akgp sitelibdir\=./.gem.20240909-122-f6akgp
compiling mini_racer_extension.cc
mini_racer_extension.cc: In function 'VALUE rb_heap_snapshot(VALUE, VALUE)':
mini_racer_extension.cc:1659:35: warning: 'rb_io::fd' is deprecated: rb_io_descriptor [-Wdeprecated-declarations]
 1659 |     FileOutputStream stream(fptr->fd);
      |                                   ^~
In file included from mini_racer_extension.cc:4:
/usr/local/include/ruby-3.3.0/ruby/io.h:154:9: note: declared here
  154 |     int fd;
      |         ^~
mini_racer_extension.cc:1659:35: warning: 'rb_io::fd' is deprecated: rb_io_descriptor [-Wdeprecated-declarations]
 1659 |     FileOutputStream stream(fptr->fd);
      |                                   ^~
/usr/local/include/ruby-3.3.0/ruby/io.h:154:9: note: declared here
  154 |     int fd;
      |         ^~
mini_racer_extension.cc:1659:35: warning: 'rb_io::fd' is deprecated: rb_io_descriptor [-Wdeprecated-declarations]
 1659 |     FileOutputStream stream(fptr->fd);
      |                                   ^~
/usr/local/include/ruby-3.3.0/ruby/io.h:154:9: note: declared here
  154 |     int fd;
      |         ^~
linking shared-object mini_racer_extension.so
/usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: cannot find /usr/local/bundle/gems/libv8-node-22.7.0.3-aarch64-linux/vendor/v8/aarch64-linux-musl/libv8/obj/libv8_monolith.a: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [Makefile:265: mini_racer_extension.so] Error 1

make failed, exit code 2

Gem files will remain installed in /usr/local/bundle/gems/mini_racer-0.17.0.pre for inspection.
Results logged to /usr/local/bundle/extensions/aarch64-linux-musl/3.3.0/mini_racer-0.17.0.pre/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant