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

native extensions broken for Solaris in 1.7.16 #2012

Closed
oblutak opened this issue Sep 29, 2014 · 5 comments
Closed

native extensions broken for Solaris in 1.7.16 #2012

oblutak opened this issue Sep 29, 2014 · 5 comments
Milestone

Comments

@oblutak
Copy link

oblutak commented Sep 29, 2014

This worked for me in 1.7.13.

./jruby-1.7.16/bin/jruby -S gem list
NoMethodError: undefined method `name' for nil:NilClass
_resort! at /usr/jruby/jruby-1.7.16/lib/ruby/shared/rubygems/specification.rb:717
sort! at org/jruby/RubyArray.java:3358
_resort! at /usr/jruby/jruby-1.7.16/lib/ruby/shared/rubygems/specification.rb:716
_all at /usr/jruby/jruby-1.7.16/lib/ruby/shared/rubygems/specification.rb:665
each at /usr/jruby/jruby-1.7.16/lib/ruby/shared/rubygems/specification.rb:855
reverse_each at org/jruby/RubyEnumerable.java:1072
latest_specs at /usr/jruby/jruby-1.7.16/lib/ruby/shared/rubygems/specification.rb:971
find_latest_files at /usr/jruby/jruby-1.7.16/lib/ruby/shared/rubygems.rb:490
load_plugins at /usr/jruby/jruby-1.7.16/lib/ruby/shared/rubygems.rb:1006
(root) at /usr/jruby/jruby-1.7.16/lib/ruby/shared/rubygems/gem_runner.rb:81
require at org/jruby/RubyKernel.java:1065
(root) at /usr/jruby/jruby-1.7.16/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1
require at /usr/jruby/jruby-1.7.16/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55
load at org/jruby/RubyKernel.java:1081
(root) at /usr/jruby/jruby-1.7.16/bin/gem:4

@mkristian
Copy link
Member

well, if I just install it and tun you command then I works for me. do you have any user-installed gems, i.e. in $HOME/.gem/jruby/1.9/ ?

the error says there is a Gem::Specification object without name - which indeed is strange.

@oblutak
Copy link
Author

oblutak commented Sep 29, 2014

Could be OS related. Works ok on a Redhat 6 install, but not on my Solaris workstations. I deleted my $HOME/.gem directory to eliminate that from the equation.
./jruby-1.7.16/bin/jruby --version
jruby 1.7.16 (1.9.3p392) 2014-09-25 575b395 on Java HotSpot(TM) Server VM 1.7.0_51-b13 +jit [SunOS-x86]

@oblutak
Copy link
Author

oblutak commented Sep 29, 2014

Think I isolated the issue a bit to 'native extensions'. This fails on Solaris, even if file exists
$ touch /tmp/a; jruby -e 'p File.file?("/tmp/a") '
false

but this appears to work
jruby -J-Djruby.native.enabled=false -e 'p File.file?("/tmp/a")

@oblutak oblutak changed the title gem command problems in 1.7.16 native extensions broken for Solaris in 1.7.16 Sep 29, 2014
@sax
Copy link

sax commented Oct 15, 2014

I'm running into this same problem in SmartOS.

pyhalov added a commit to pyhalov/oi-userland that referenced this issue Nov 24, 2014
Later jruby can't be built - jruby/jruby#2012
pyhalov added a commit to pyhalov/oi-userland that referenced this issue Nov 24, 2014
Later jruby can't be built - jruby/jruby#2012
pyhalov added a commit to pyhalov/oi-userland that referenced this issue Nov 24, 2014
Later jruby can't be built - jruby/jruby#2012
@oblutak
Copy link
Author

oblutak commented Jan 22, 2015

Not sure where it was fixed, but don't seem to have the issue in 1.7.18.

@oblutak oblutak closed this as completed Jan 22, 2015
@headius headius added this to the JRuby 1.7.18 milestone Jan 22, 2015
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