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

Jruby build failed (Apple Silicon M1): waitpid unsupported or native support failed to load #1832

Closed
bensheldon opened this issue Dec 4, 2021 · 7 comments

Comments

@bensheldon
Copy link

Apologies, I wasn't sure whether to add this to #1691, which seems focused on cruby, or to open a jruby-focused issue.

I'm unable to get jruby built successfully on Apple Silicon.

❯ ruby-build --version
ruby-build 20211203
❯ java --version
openjdk 17.0.1 2021-10-19
OpenJDK Runtime Environment Homebrew (build 17.0.1+1)
OpenJDK 64-Bit Server VM Homebrew (build 17.0.1+1, mixed mode, sharing)
❯ rbenv install jruby-9.3.0.0
Downloading jruby-dist-9.3.0.0-bin.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/2dc1f85936d3ff3adc20d90e5f4894499c585a7ea5fedec67154e2f9ecb1bc9b
Installing jruby-9.3.0.0...

BUILD FAILED (macOS 12.0.1 using ruby-build 20211203)

Inspect or clean up the working tree at /var/folders/5y/9zpy_s_n6sd6vv3wr62qvp9m0000gn/T/ruby-build.20211204085557.22393.TU0HjM
Results logged to /var/folders/5y/9zpy_s_n6sd6vv3wr62qvp9m0000gn/T/ruby-build.20211204085557.22393.log

Last 10 log lines:
Age: 524

/var/folders/5y/9zpy_s_n6sd6vv3wr62qvp9m0000gn/T/ruby-build.20211204085557.22393.TU0HjM/jruby-9.3.0.0 /var/folders/5y/9zpy_s_n6sd6vv3wr62qvp9m0000gn/T/ruby-build.20211204085557.22393.TU0HjM ~/Repositories/bensheldon/good_job
Fetching jruby-launcher-1.1.19-java.gem
Building native extensions. This could take a while...
warning: thread "Ruby-0-Thread-9: /Users/bensheldon/.rbenv/versions/jruby-9.3.0.0/lib/ruby/stdlib/open3.rb:214" terminated with exception (report_on_exception is true):
NotImplementedError: waitpid unsupported or native support failed to load; see https://github.com/jruby/jruby/wiki/Native-Libraries
  waitpid at org/jruby/RubyProcess.java:936
NotImplementedError: waitpid unsupported or native support failed to load; see https://github.com/jruby/jruby/wiki/Native-Libraries
  waitpid at org/jruby/RubyProcess.java:936

Thank you for the help!

@ryanfb
Copy link
Contributor

ryanfb commented Dec 16, 2021

FWIW I was able to work around this by pulling my Homebrew OpenJDK out of my system's JavaVirtualMachines before installing, then restoring it afterwards:

$ sudo rm /Library/Java/JavaVirtualMachines/openjdk.jdk
$ rbenv install jruby-9.3.2.0
Downloading jruby-dist-9.3.2.0-bin.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/26699ca02beeafa8326573c1125c57a5971ba8b94d15f84e6b3baf2594244f33
Installing jruby-9.3.2.0...
tr: Illegal byte sequence

BUILD FAILED (macOS 12.1 using ruby-build 20211203)

Inspect or clean up the working tree at /var/folders/lq/m311g3q13377vrx0bg3kbcwc0000gn/T/ruby-build.20211216121718.55184.GtSVfZ
Results logged to /var/folders/lq/m311g3q13377vrx0bg3kbcwc0000gn/T/ruby-build.20211216121718.55184.log

Last 10 log lines:
X-Amz-Cf-Id: HxMLk-GN8__LRYol5EkdAuykh6hjXZhaDIiqSpAFvmEqn_7bx_QF_w==
Age: 343

/var/folders/lq/m311g3q13377vrx0bg3kbcwc0000gn/T/ruby-build.20211216121718.55184.GtSVfZ/jruby-9.3.2.0 /var/folders/lq/m311g3q13377vrx0bg3kbcwc0000gn/T/ruby-build.20211216121718.55184.GtSVfZ ~/source/dc3/sosol
Building native extensions. This could take a while...
Successfully installed jruby-launcher-1.1.19-java
Parsing documentation for jruby-launcher-1.1.19-java
Installing ri documentation for jruby-launcher-1.1.19-java
Done installing documentation for jruby-launcher after 2 seconds
1 gem installed
tr: Illegal byte sequence

BUILD FAILED (macOS 12.1 using ruby-build 20211203)

Inspect or clean up the working tree at /var/folders/lq/m311g3q13377vrx0bg3kbcwc0000gn/T/ruby-build.20211216121718.55184.GtSVfZ
Results logged to /var/folders/lq/m311g3q13377vrx0bg3kbcwc0000gn/T/ruby-build.20211216121718.55184.log

Last 10 log lines:
X-Amz-Cf-Id: HxMLk-GN8__LRYol5EkdAuykh6hjXZhaDIiqSpAFvmEqn_7bx_QF_w==
Age: 343

/var/folders/lq/m311g3q13377vrx0bg3kbcwc0000gn/T/ruby-build.20211216121718.55184.GtSVfZ/jruby-9.3.2.0 /var/folders/lq/m311g3q13377vrx0bg3kbcwc0000gn/T/ruby-build.20211216121718.55184.GtSVfZ ~/source/dc3/sosol
Building native extensions. This could take a while...
Successfully installed jruby-launcher-1.1.19-java
Parsing documentation for jruby-launcher-1.1.19-java
Installing ri documentation for jruby-launcher-1.1.19-java
Done installing documentation for jruby-launcher after 2 seconds
1 gem installed
Installed jruby-9.3.2.0 to /Users/ryan/.rbenv/versions/jruby-9.3.2.0

$ sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk

Note that despite the tr: Illegal byte sequence/BUILD FAILED messages (which I also see when installing other JRuby versions on my M1 Mac), the install still seems to work fine.

@bensheldon
Copy link
Author

Hmm, that moves me forward to a slightly different error:

❯ ls /Library/Java/JavaVirtualMachines/
jdk-17.0.1.jdk	openjdk.jdk

❯ rbenv install jruby-9.3.2.0
Downloading jruby-dist-9.3.2.0-bin.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/26699ca02beeafa8326573c1125c57a5971ba8b94d15f84e6b3baf2594244f33
Installing jruby-9.3.2.0...

BUILD FAILED (macOS 12.1 using ruby-build 20211203)

Inspect or clean up the working tree at /var/folders/5y/9zpy_s_n6sd6vv3wr62qvp9m0000gn/T/ruby-build.20211218085858.46483.y64qfJ
Results logged to /var/folders/5y/9zpy_s_n6sd6vv3wr62qvp9m0000gn/T/ruby-build.20211218085858.46483.log

Last 10 log lines:
ETag: "cb8b94b645ba55690ff601a675f3e821-4"
X-Cache: Hit from cloudfront
Via: 1.1 41a1988bf0eebd2eb412a5ab1f1f394e.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: SFO5-C3
X-Amz-Cf-Id: ARBMLyFX8KpNp4XO9W6BrCkEw_ZksRYTuqW8Aqca0HWfAQlWbGa98A==
Age: 63617

/var/folders/5y/9zpy_s_n6sd6vv3wr62qvp9m0000gn/T/ruby-build.20211218085858.46483.y64qfJ/jruby-9.3.2.0 /var/folders/5y/9zpy_s_n6sd6vv3wr62qvp9m0000gn/T/ruby-build.20211218085858.46483.y64qfJ ~
ERROR:  While executing gem ... (Errno::EACCES)
    Permission denied - /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/gems/shared/cache/jruby-launcher-1.1.19-java.gem
    
❯ sudo rm /Library/Java/JavaVirtualMachines/openjdk.jdk
Password:

❯ rbenv install jruby-9.3.2.0
Downloading jruby-dist-9.3.2.0-bin.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/26699ca02beeafa8326573c1125c57a5971ba8b94d15f84e6b3baf2594244f33
Installing jruby-9.3.2.0...

BUILD FAILED (macOS 12.1 using ruby-build 20211203)

Inspect or clean up the working tree at /var/folders/5y/9zpy_s_n6sd6vv3wr62qvp9m0000gn/T/ruby-build.20211218090032.46620.2Rg4A4
Results logged to /var/folders/5y/9zpy_s_n6sd6vv3wr62qvp9m0000gn/T/ruby-build.20211218090032.46620.log

Last 10 log lines:
ETag: "cb8b94b645ba55690ff601a675f3e821-4"
X-Cache: Hit from cloudfront
Via: 1.1 3466f1977d0fde72d3b068733212f226.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: SFO5-C3
X-Amz-Cf-Id: M2_mLkEI-SVQqmy_xs7kmSocFOrbO3Mx9AU9exCrOtl4Mw5rIILscw==
Age: 63711

/var/folders/5y/9zpy_s_n6sd6vv3wr62qvp9m0000gn/T/ruby-build.20211218090032.46620.2Rg4A4/jruby-9.3.2.0 /var/folders/5y/9zpy_s_n6sd6vv3wr62qvp9m0000gn/T/ruby-build.20211218090032.46620.2Rg4A4 ~
ERROR:  While executing gem ... (Gem::Package::PathError)
    installing into parent path COPYING of /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/gems/shared/gems/jruby-launcher-1.1.19-java is not allowed

It seems like jruby-launcher doesn't have permission to copy the jruby files out of the temp directory into my HOME/.rbenv directory:

❯ ls /var/folders/5y/9zpy_s_n6sd6vv3wr62qvp9m0000gn/T/ruby-build.20211218090032.46620.2Rg4A4/jruby-9.3.2.0
BSDL		COPYING		LEGAL		LICENSE.RUBY	bin		lib		samples

Which looks similar maybe to jruby/jruby-launcher#44. I did try setting JAVA_HOME (export JAVA_HOME=$(/usr/libexec/java_home)) but still no success 😢

@bensheldon
Copy link
Author

Oh! So it looks like the install did successfully complete, but the permissions still seem off. I'm speculating that java doesn't have file-system access or something weird like that.

❯ gem update --system
Updating rubygems-update
ERROR:  While executing gem ... (Gem::Package::PathError)
    installing into parent path CHANGELOG.md of /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/gems/shared/gems/rubygems-update-3.2.33 is not allowed
    ```

@bensheldon
Copy link
Author

Here's the error for a simple $ bundle:

❯ bundle
Warning: the running version of Bundler (2.2.29) is older than the version that created the lockfile (2.2.30). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.2.30`.
Fetching https://github.com/bensheldon/appraisal.git

Retrying `git clone https://github.com/bensheldon/appraisal.git /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/gems/shared/cache/bundler/git/appraisal-58028a2af8f062598d91decf90c82b7eb55f6a9b --bare --no-hardlinks --quiet` at /Users/bensheldon/Repositories/bensheldon/good_job due to error (2/4): Errno::EACCES Permission denied - /opt/homebrew/bin/git

Retrying `git clone https://github.com/bensheldon/appraisal.git /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/gems/shared/cache/bundler/git/appraisal-58028a2af8f062598d91decf90c82b7eb55f6a9b --bare --no-hardlinks --quiet` at /Users/bensheldon/Repositories/bensheldon/good_job due to error (3/4): Errno::EACCES Permission denied - /opt/homebrew/bin/git

Retrying `git clone https://github.com/bensheldon/appraisal.git /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/gems/shared/cache/bundler/git/appraisal-58028a2af8f062598d91decf90c82b7eb55f6a9b --bare --no-hardlinks --quiet` at /Users/bensheldon/Repositories/bensheldon/good_job due to error (4/4): Errno::EACCES Permission denied - /opt/homebrew/bin/git

Fetching https://github.com/bensheldon/appraisal.git




Errno::EACCES: Permission denied - /opt/homebrew/bin/git
                      spawn at org/jruby/RubyProcess.java:1671
                      spawn at org/jruby/RubyKernel.java:1723
                  popen_run at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/open3.rb:213
                     popen3 at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/open3.rb:101
                   capture3 at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/open3.rb:281
  capture_and_filter_stderr at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/source/git/git_proxy.rb:233
                        git at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/source/git/git_proxy.rb:168
         with_clean_git_env at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/shared_helpers.rb:70
                        git at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/source/git/git_proxy.rb:167
               full_version at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/source/git/git_proxy.rb:84
                git_version at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/env.rb:78
                environment at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/env.rb:116
                     report at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/env.rb:17
   request_issue_report_for at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/friendly_errors.rb:97
                  log_error at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/friendly_errors.rb:50
       with_friendly_errors at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/friendly_errors.rb:134
                     <main> at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/gems/shared/gems/bundler-2.2.29/exe/bundle:37
                       load at org/jruby/RubyKernel.java:1052
                     <main> at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/bin/bundle:23
Errno::EACCES: Permission denied - /opt/homebrew/bin/git
                      spawn at org/jruby/RubyProcess.java:1671
                      spawn at org/jruby/RubyKernel.java:1723
                  popen_run at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/open3.rb:213
                     popen3 at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/open3.rb:101
                   capture3 at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/open3.rb:281
  capture_and_filter_stderr at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/source/git/git_proxy.rb:233
                        git at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/source/git/git_proxy.rb:168
         with_clean_git_env at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/shared_helpers.rb:70
                        git at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/source/git/git_proxy.rb:167
                  git_retry at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/source/git/git_proxy.rb:160
                        run at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/retry.rb:40
                    attempt at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/retry.rb:30
                  git_retry at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/source/git/git_proxy.rb:159
                   checkout at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/source/git/git_proxy.rb:99
                      fetch at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/source/git.rb:326
                      specs at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/source/git.rb:172
                 spec_names at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/source.rb:59
           all_requirements at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/source_map.rb:20
                        map at org/jruby/RubyArray.java:2642
           all_requirements at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/source_map.rb:19
        source_requirements at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/definition.rb:830
                    resolve at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/definition.rb:262
          resolve_remotely! at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/definition.rb:178
          resolve_if_needed at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/installer.rb:283
                        run at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/installer.rb:82
                       lock at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/process_lock.rb:19
                        run at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/installer.rb:71
                    install at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/installer.rb:23
                        run at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/cli/install.rb:60
                    install at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/cli.rb:253
                  temporary at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/settings.rb:131
                    install at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/cli.rb:252
                        run at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/vendor/thor/lib/thor/command.rb:27
             invoke_command at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/vendor/thor/lib/thor/invocation.rb:127
                   dispatch at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/vendor/thor/lib/thor.rb:392
                   dispatch at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/cli.rb:31
                      start at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/vendor/thor/lib/thor/base.rb:485
                      start at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/cli.rb:25
                     <main> at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/gems/shared/gems/bundler-2.2.29/exe/bundle:49
       with_friendly_errors at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/friendly_errors.rb:128
                     <main> at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/gems/shared/gems/bundler-2.2.29/exe/bundle:37
                       load at org/jruby/RubyKernel.java:1052
                     <main> at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/bin/bundle:23
Errno::EACCES: Permission denied - /opt/homebrew/bin/git
                      spawn at org/jruby/RubyProcess.java:1671
                      spawn at org/jruby/RubyKernel.java:1723
                  popen_run at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/open3.rb:213
                     popen3 at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/open3.rb:101
                   capture3 at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/open3.rb:281
  capture_and_filter_stderr at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/source/git/git_proxy.rb:233
                        git at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/source/git/git_proxy.rb:168
         with_clean_git_env at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/shared_helpers.rb:70
                        git at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/source/git/git_proxy.rb:167
                  git_retry at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/source/git/git_proxy.rb:160
                        run at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/retry.rb:40
                    attempt at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/retry.rb:30
                  git_retry at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/source/git/git_proxy.rb:159
                   checkout at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/source/git/git_proxy.rb:99
                      fetch at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/source/git.rb:326
                      specs at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/source/git.rb:172
                 spec_names at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/source.rb:59
           all_requirements at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/source_map.rb:20
                        map at org/jruby/RubyArray.java:2642
           all_requirements at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/source_map.rb:19
        source_requirements at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/definition.rb:830
                    resolve at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/definition.rb:262
          resolve_remotely! at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/definition.rb:178
          resolve_if_needed at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/installer.rb:283
                        run at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/installer.rb:82
                       lock at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/process_lock.rb:12
                       open at org/jruby/RubyIO.java:1148
                       lock at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/process_lock.rb:9
                        run at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/installer.rb:71
                    install at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/installer.rb:23
                        run at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/cli/install.rb:60
                    install at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/cli.rb:253
                  temporary at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/settings.rb:131
                    install at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/cli.rb:252
                        run at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/vendor/thor/lib/thor/command.rb:27
             invoke_command at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/vendor/thor/lib/thor/invocation.rb:127
                   dispatch at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/vendor/thor/lib/thor.rb:392
                   dispatch at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/cli.rb:31
                      start at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/vendor/thor/lib/thor/base.rb:485
                      start at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/cli.rb:25
                     <main> at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/gems/shared/gems/bundler-2.2.29/exe/bundle:49
       with_friendly_errors at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/stdlib/bundler/friendly_errors.rb:128
                     <main> at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/lib/ruby/gems/shared/gems/bundler-2.2.29/exe/bundle:37
                       load at org/jruby/RubyKernel.java:1052
                     <main> at /Users/bensheldon/.rbenv/versions/jruby-9.3.2.0/bin/bundle:23

@reydi
Copy link

reydi commented Jun 11, 2022

@bensheldon hey, did you get through this issue? I'm encountering the exact same issue and can't find any resolution yet

@bensheldon
Copy link
Author

@reydi I had good luck with the latest versions of jruby. rbenv install jruby-9.3.4.0 does work for me; but the older ones (and jruby-9.2) haven't worked.

@eregon
Copy link
Member

eregon commented Jul 11, 2022

The older jruby versions most likely don't support M1 (specifically, the FFI parts). Closing as upstream issue/use latest JRuby.

@eregon eregon closed this as not planned Won't fix, can't repro, duplicate, stale Jul 11, 2022
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

4 participants