Open fazibear opened 9 years ago
Still can't get it to work.
here is a backtrace:
Warning: Could not process value of macro "UV_EXTERN"
Warning: Could not process value of macro "XX"
Warning: Could not process value of macro "XX"
Warning: Could not process value of macro "XX"
Warning: Could not process value of macro "UV_REQ_FIELDS"
Warning: Could not process value of macro "UV_HANDLE_FIELDS"
Warning: Could not process value of macro "UV_STREAM_FIELDS"
Warning: Could not process value of macro "XX"
/Users/fazibear/.rubies/2.2.0/lib/ruby/gems/2.2.0/gems/ffi_gen-1.2.0/lib/ffi_gen.rb:407:in `block in read_declaration': undefined method `+' for nil:NilClass (NoMethodError)
from /Users/fazibear/.rubies/2.2.0/lib/ruby/gems/2.2.0/gems/ffi_gen-1.2.0/lib/ffi_gen.rb:372:in `each'
from /Users/fazibear/.rubies/2.2.0/lib/ruby/gems/2.2.0/gems/ffi_gen-1.2.0/lib/ffi_gen.rb:372:in `read_declaration'
from /Users/fazibear/.rubies/2.2.0/lib/ruby/gems/2.2.0/gems/ffi_gen-1.2.0/lib/ffi_gen.rb:346:in `block in declarations'
from /Users/fazibear/.rubies/2.2.0/lib/ruby/gems/2.2.0/gems/ffi_gen-1.2.0/lib/ffi_gen.rb:338:in `each'
from /Users/fazibear/.rubies/2.2.0/lib/ruby/gems/2.2.0/gems/ffi_gen-1.2.0/lib/ffi_gen.rb:338:in `each_with_index'
from /Users/fazibear/.rubies/2.2.0/lib/ruby/gems/2.2.0/gems/ffi_gen-1.2.0/lib/ffi_gen.rb:338:in `declarations'
from /Users/fazibear/.rubies/2.2.0/lib/ruby/gems/2.2.0/gems/ffi_gen-1.2.0/lib/ffi_gen/ruby_output.rb:10:in `block in generate_rb'
from /Users/fazibear/.rubies/2.2.0/lib/ruby/gems/2.2.0/gems/ffi_gen-1.2.0/lib/ffi_gen.rb:150:in `indent'
from /Users/fazibear/.rubies/2.2.0/lib/ruby/gems/2.2.0/gems/ffi_gen-1.2.0/lib/ffi_gen/ruby_output.rb:5:in `generate_rb'
from /Users/fazibear/.rubies/2.2.0/lib/ruby/gems/2.2.0/gems/ffi_gen-1.2.0/lib/ffi_gen.rb:280:in `generate'
from /Users/fazibear/.rubies/2.2.0/lib/ruby/gems/2.2.0/gems/ffi_gen-1.2.0/lib/ffi_gen.rb:745:in `generate'
from libuv.rb:3:in `<main>'
Works for me with libuv from Debian testing... which version do you have?
Installed with brew: libuv-1.1.0
on Yosemite.
0.10 here. I don't have a newer version in the repository.
Trying to generate libuv, but with no luck
with llvm-3.5.0_2 installed on Yosemite
here is backtrace