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

Build error with JRuby 1.6.7 and XCode 4.3 #49

Closed
carlhoerberg opened this issue Mar 30, 2012 · 4 comments
Closed

Build error with JRuby 1.6.7 and XCode 4.3 #49

carlhoerberg opened this issue Mar 30, 2012 · 4 comments

Comments

@carlhoerberg
Copy link

$ jgem install puma
Building native extensions.  This could take a while...
ERROR:  Error installing puma:
    ERROR: Failed to build gem native extension.

        /Users/carl/.rvm/rubies/jruby-1.6.7/bin/jruby extconf.rb
WARNING: JRuby does not support native extensions or the `mkmf' library very well.
Check http://kenai.com/projects/jruby/pages/Home for alternatives.
creating Makefile

make
cc -I. -I/Users/carl/.rvm/rubies/jruby-1.6.7/lib/native/include -I/Users/carl/.rvm/rubies/jruby-1.6.7/lib/native/include/ruby -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE      -fPIC -DTARGET_RT_MAC_CFM=0  -fno-omit-frame-pointer -fno-strict-aliasing  -fexceptions    -arch i386 -c http11_parser.c
cc -I. -I/Users/carl/.rvm/rubies/jruby-1.6.7/lib/native/include -I/Users/carl/.rvm/rubies/jruby-1.6.7/lib/native/include/ruby -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE      -fPIC -DTARGET_RT_MAC_CFM=0  -fno-omit-frame-pointer -fno-strict-aliasing  -fexceptions    -arch i386 -c puma_http11.c
cc -dynamic -bundle -undefined dynamic_lookup  -o puma_http11.bundle http11_parser.o puma_http11.o -L"." -L"/Users/carl/.rvm/rubies/jruby-1.6.7/lib" -bundle -framework JavaVM -Wl,-syslibroot, -mmacosx-version-min=10.5   -arch i386  
ld: library not found for -lbundle1.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [puma_http11.bundle] Error 1


Gem files will remain installed in /Users/carl/.rvm/gems/jruby-1.6.7/gems/puma-1.0.0 for inspection.
Results logged to /Users/carl/.rvm/gems/jruby-1.6.7/gems/puma-1.0.0/ext/puma_http11/gem_make.out
@evanphx
Copy link
Member

evanphx commented Mar 30, 2012

I mistakenly didn't push the java platform gem. It should be up there now and fix your issue.

@evanphx evanphx closed this as completed Mar 30, 2012
@carlhoerberg
Copy link
Author

i don't know.. :P

$ gem install puma
Successfully installed puma-1.1.0-java
1 gem installed

$ puma
LoadError: no such file to load -- puma/compat
  require at org/jruby/RubyKernel.java:1042
  require at /Users/carl/.rvm/rubies/jruby-1.6.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36
   (root) at /Users/carl/.rvm/gems/jruby-1.6.7/gems/puma-1.1.0-java/lib/puma/server.rb:8
  require at org/jruby/RubyKernel.java:1042
  require at /Users/carl/.rvm/gems/jruby-1.6.7/gems/puma-1.1.0-java/lib/puma/server.rb:36
   (root) at /Users/carl/.rvm/gems/jruby-1.6.7/gems/puma-1.1.0-java/lib/puma/cli.rb:4
  require at org/jruby/RubyKernel.java:1042
  require at /Users/carl/.rvm/gems/jruby-1.6.7/gems/puma-1.1.0-java/lib/puma/cli.rb:36
   (root) at /Users/carl/.rvm/gems/jruby-1.6.7/gems/puma-1.1.0-java/bin/puma:6
     load at org/jruby/RubyKernel.java:1068
   (root) at /Users/carl/.rvm/gems/jruby-1.6.7/gems/puma-1.1.0-java/bin/puma:19

@carlhoerberg
Copy link
Author

but if i comment out line 8 in lib/puma/server.rb it seems to work fine :)

@evanphx
Copy link
Member

evanphx commented Mar 31, 2012

Fixed in 1.1.1. Not sure why hoe let me release that...

aleksei-burlakov pushed a commit to aleksei-burlakov/puma that referenced this issue Sep 6, 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

2 participants