rubinius/rubinius — Issue #1574: Can't build native extensions
Author: dnagir
Created: 2012-02-28 00:06:20+00:00
State: open

```
> ruby -v
rubinius 2.0.0dev (1.9.3 057326c1 yyyy-mm-dd JI) [x86_64-apple-darwin11.3.0]
(rbx=2ec8d) dnagir@DIMA-MAC.LOCAL ~/proj/abc
> bundle
/Users/dnagir/.rvm/rubies/rbx-2.0.0pre/lib/rubygems/custom_require.rb:36:in `require':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
Fetching git://github.com/dnagir/no-peeping-toms.git
remote: Counting objects: 283, done.
remote: Compressing objects: 100% (146/146), done.
remote: Total 283 (delta 105), reused 269 (delta 97)
Receiving objects: 100% (283/283), 109.86 KiB | 76 KiB/s, done.
Resolving deltas: 100% (105/105), done.
Fetching https://github.com/dnagir/webrat.git
remote: Counting objects: 8740, done.
remote: Compressing objects: 100% (3599/3599), done.
remote: Total 8740 (delta 5876), reused 7690 (delta 4999)
Receiving objects: 100% (8740/8740), 29.32 MiB | 355 KiB/s, done.
Resolving deltas: 100% (5876/5876), done.
Fetching source index for http://rubygems.org/
Using rake (0.9.2.2)
Installing i18n (0.6.0)
Installing multi_json (1.0.4)
Installing activesupport (3.2.1)
Installing builder (3.0.0)
Installing activemodel (3.2.1)
Installing erubis (2.7.0)
Installing journey (1.0.1)
Installing rack (1.4.1)
Installing rack-cache (1.1)
Installing rack-test (0.6.1)
Installing hike (1.2.1)
Installing tilt (1.3.3)
Installing sprockets (2.1.2)
Installing actionpack (3.2.1)
Installing mime-types (1.17.2)
Installing polyglot (0.3.3)
Installing treetop (1.4.10)
Installing mail (2.4.1)
Installing actionmailer (3.2.1)
Installing active_attr (0.5.0.alpha2)
Installing arel (3.0.0)
Installing tzinfo (0.3.31)
Installing activerecord (3.2.1)
Installing activeresource (3.2.1)
Installing addressable (2.2.6)
Installing allowy (0.2.0)
Installing bcrypt-ruby (3.0.1) with native extensions
Installing binding_of_caller (0.6.2) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/Users/dnagir/.rvm/rubies/rbx-2.0.0pre/bin/rbx extconf.rb
creating Makefile

make
compiling binding_of_caller.c
In file included from binding_of_caller.c:4:
./ruby_headers/193/vm_core.h:32:2: error: #error "unsupported thread type"
In file included from binding_of_caller.c:4:
./ruby_headers/193/vm_core.h:279: error: expected specifier-qualifier-list before ‘rb_global_vm_lock_t’
./ruby_headers/193/vm_core.h:353: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ruby_thread_data_type’
./ruby_headers/193/vm_core.h:366: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rb_jmpbuf_t’
./ruby_headers/193/vm_core.h:369: error: expected specifier-qualifier-list before ‘rb_jmpbuf_t’
./ruby_headers/193/vm_core.h:426: error: expected specifier-qualifier-list before ‘rb_thread_id_t’
./ruby_headers/193/vm_core.h:676: warning: data definition has no type or storage class
./ruby_headers/193/vm_core.h:676: warning: type defaults to ‘int’ in declaration of ‘NOINLINE’
./ruby_headers/193/vm_core.h:716: error: expected ‘)’ before ‘*’ token
./ruby_headers/193/vm_core.h:717: error: expected ‘)’ before ‘*’ token
./ruby_headers/193/vm_core.h:730: error: expected declaration specifiers or ‘...’ before ‘rb_event_flag_t’
binding_of_caller.c:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
binding_of_caller.c:65: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘binding_data_type’
binding_of_caller.c: In function ‘binding_alloc’:
binding_of_caller.c:77: warning: implicit declaration of function ‘TypedData_Make_Struct’
binding_of_caller.c:77: error: expected expression before ‘rb_binding_t’
binding_of_caller.c: In function ‘binding_of_caller’:
binding_of_caller.c:122: warning: implicit declaration of function ‘TypedData_Get_Struct’
binding_of_caller.c:122: error: expected expression before ‘rb_thread_t’
binding_of_caller.c:140: error: ‘rb_cBinding’ undeclared (first use in this function)
binding_of_caller.c:140: error: (Each undeclared identifier is reported only once
binding_of_caller.c:140: error: for each function it appears in.)
binding_of_caller.c: In function ‘frame_count’:
binding_of_caller.c:172: error: expected expression before ‘rb_thread_t’
binding_of_caller.c: In function ‘Init_binding_of_caller’:
binding_of_caller.c:218: error: ‘rb_cBinding’ undeclared (first use in this function)
make: *** [binding_of_caller.o] Error 1

Gem files will remain installed in /Users/dnagir/.rvm/gems/rbx-2.0.0pre/gems/binding_of_caller-0.6.2 for inspection.
Results logged to /Users/dnagir/.rvm/gems/rbx-2.0.0pre/gems/binding_of_caller-0.6.2/ext/binding_of_caller/gem_make.out
An error occured while installing binding_of_caller (0.6.2), and Bundler cannot continue.
Make sure that `gem install binding_of_caller -v '0.6.2'` succeeds before bundling.
```