Heroku - Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
Closed this issue · 1 comments
suriyaa commented
Can not deploy buntobot/archivist:
-----> Using set buildpack heroku/ruby
-----> Ruby app detected
-----> Compiling Ruby/Rack
-----> Using Ruby version: ruby-2.2.4
-----> Installing dependencies using bundler 1.11.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Installing daemons 1.1.9
Installing dotenv 0.9.0
Installing addressable 2.3.5
Installing thor 0.18.1
Installing multipart-post 1.2.0
Installing eventmachine 1.0.3 with native extensions
Installing git 1.2.6
Installing rack 1.5.2
Using bundler 1.11.2
Installing tilt 1.4.1
Installing faraday 0.8.8
Installing foreman 0.63.0
Installing warden 1.2.3
Installing rack-protection 1.5.1
Installing sawyer 0.5.1
Installing sinatra 1.4.4
Installing octokit 2.6.1
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/tmp/build_7dcc2e983366bfa0b07d0212bcf2b5ea/buntobot-archivist-67e023f/vendor/ruby-2.2.4/bin/ruby -r ./siteconf20160618-285-1dueo6q.rb extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... no
checking for inotify_init() in sys/inotify.h... yes
checking for writev() in sys/uio.h... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_enable_interrupt()... no
checking for rb_time_new()... yes
checking for sys/event.h... no
checking for epoll_create() in sys/epoll.h... yes
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling rubymain.cpp
compiling em.cpp
em.cpp: In member function ‘void EventMachine_t::_RunEpollOnce()’:
em.cpp:574:37: error: ‘rb_thread_select’ was not declared in this scope
EmSelect (0, NULL, NULL, NULL, &tv);
^
em.cpp: In member function ‘int SelectData_t::_Select()’:
em.cpp:827:67: error: ‘rb_thread_select’ was not declared in this scope
return EmSelect (maxsocket+1, &fdreads, &fdwrites, &fderrors, &tv);
^
em.cpp: In member function ‘void EventMachine_t::_RunSelectOnce()’:
em.cpp:946:40: error: ‘rb_thread_select’ was not declared in this scope
EmSelect (0, NULL, NULL, NULL, &tv);
^
make: *** [em.o] Error 1
make failed, exit code 2
Gem files will remain installed in /tmp/build_7dcc2e983366bfa0b07d0212bcf2b5ea/buntobot-archivist-67e023f/vendor/bundle/ruby/2.2.0/gems/eventmachine-1.0.3 for inspection.
Results logged to /tmp/build_7dcc2e983366bfa0b07d0212bcf2b5ea/buntobot-archivist-67e023f/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0-static/eventmachine-1.0.3/gem_make.out
Installing warden-github 1.0.0
An error occurred while installing eventmachine (1.0.3), and Bundler cannot
continue.
Make sure that `gem install eventmachine -v '1.0.3'` succeeds before bundling.
Bundler Output: Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Installing daemons 1.1.9
Installing dotenv 0.9.0
Installing addressable 2.3.5
Installing thor 0.18.1
Installing multipart-post 1.2.0
Installing eventmachine 1.0.3 with native extensions
Installing git 1.2.6
Installing rack 1.5.2
Using bundler 1.11.2
Installing tilt 1.4.1
Installing faraday 0.8.8
Installing foreman 0.63.0
Installing warden 1.2.3
Installing rack-protection 1.5.1
Installing sawyer 0.5.1
Installing sinatra 1.4.4
Installing octokit 2.6.1
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/tmp/build_7dcc2e983366bfa0b07d0212bcf2b5ea/buntobot-archivist-67e023f/vendor/ruby-2.2.4/bin/ruby -r ./siteconf20160618-285-1dueo6q.rb extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... no
checking for inotify_init() in sys/inotify.h... yes
checking for writev() in sys/uio.h... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_enable_interrupt()... no
checking for rb_time_new()... yes
checking for sys/event.h... no
checking for epoll_create() in sys/epoll.h... yes
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling rubymain.cpp
compiling em.cpp
em.cpp: In member function ‘void EventMachine_t::_RunEpollOnce()’:
em.cpp:574:37: error: ‘rb_thread_select’ was not declared in this scope
EmSelect (0, NULL, NULL, NULL, &tv);
^
em.cpp: In member function ‘int SelectData_t::_Select()’:
em.cpp:827:67: error: ‘rb_thread_select’ was not declared in this scope
return EmSelect (maxsocket+1, &fdreads, &fdwrites, &fderrors, &tv);
^
em.cpp: In member function ‘void EventMachine_t::_RunSelectOnce()’:
em.cpp:946:40: error: ‘rb_thread_select’ was not declared in this scope
EmSelect (0, NULL, NULL, NULL, &tv);
^
make: *** [em.o] Error 1
make failed, exit code 2
Gem files will remain installed in /tmp/build_7dcc2e983366bfa0b07d0212bcf2b5ea/buntobot-archivist-67e023f/vendor/bundle/ruby/2.2.0/gems/eventmachine-1.0.3 for inspection.
Results logged to /tmp/build_7dcc2e983366bfa0b07d0212bcf2b5ea/buntobot-archivist-67e023f/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0-static/eventmachine-1.0.3/gem_make.out
Installing warden-github 1.0.0
An error occurred while installing eventmachine (1.0.3), and Bundler cannot
continue.
Make sure that `gem install eventmachine -v '1.0.3'` succeeds before bundling.
!
! Failed to install gems via Bundler.
!
! Push rejected, failed to compile Ruby app