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

Error when building after using one click deploy #3

Open
cornernote opened this issue May 17, 2017 · 4 comments
Open

Error when building after using one click deploy #3

cornernote opened this issue May 17, 2017 · 4 comments

Comments

@cornernote
Copy link

cornernote commented May 17, 2017

-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.3.4
-----> Installing dependencies using bundler 1.13.7
       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 multi_json 1.10.1
       Installing i18n 0.6.11
       Installing rake 10.3.2
       Installing builder 3.0.4
       Installing journey 1.0.4
       Installing erubis 2.7.0
       Installing rack 1.4.5
       Installing hike 1.2.3
       Installing tilt 1.4.1
       Installing mime-types 1.25.1
       Installing polyglot 0.3.5
       Installing arel 3.0.3
       Installing coderay 1.1.0
       Installing json 1.8.1 with native extensions
       Installing thor 0.19.1
       Installing tzinfo 0.3.41
       Installing net-ldap 0.3.1
       Installing pg 0.17.1 with native extensions
       Installing ruby-openid 2.3.0
       Using bundler 1.13.7
       Installing redcarpet 2.3.0 with native extensions
       Installing request_store 1.0.5
       Installing rmagick 2.13.3 with native extensions
       Installing activesupport 3.2.19
       Installing rack-cache 1.2
       Installing rack-test 0.6.2
       Installing sprockets 2.2.2
       Installing rack-ssl 1.3.4
       Installing treetop 1.4.15
       Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
       current directory:
       /tmp/build_4d26c417192b3c718b122d1289222eb3/cobyism-redmine-heroku-2373f31/vendor/bundle/ruby/2.3.0/gems/json-1.8.1/ext/json/ext/generator
       /tmp/build_4d26c417192b3c718b122d1289222eb3/cobyism-redmine-heroku-2373f31/vendor/ruby-2.3.4/bin/ruby
       -r ./siteconf20170517-230-sex8qd.rb extconf.rb
       creating Makefile
       current directory:
       /tmp/build_4d26c417192b3c718b122d1289222eb3/cobyism-redmine-heroku-2373f31/vendor/bundle/ruby/2.3.0/gems/json-1.8.1/ext/json/ext/generator
       make "DESTDIR=" clean
       current directory:
       /tmp/build_4d26c417192b3c718b122d1289222eb3/cobyism-redmine-heroku-2373f31/vendor/bundle/ruby/2.3.0/gems/json-1.8.1/ext/json/ext/generator
       make "DESTDIR="
       compiling generator.c
       In file included from generator.c:1:0:
       ../fbuffer/fbuffer.h: In function ‘fbuffer_to_s’:
       ../fbuffer/fbuffer.h:175:47: error: macro "rb_str_new" requires 2 arguments, but
       only 1 given
       VALUE result = rb_str_new(FBUFFER_PAIR(fb));
       ^
       ../fbuffer/fbuffer.h:175:20: warning: initialization makes integer from pointer
       without a cast [-Wint-conversion]
       VALUE result = rb_str_new(FBUFFER_PAIR(fb));
       ^
       Makefile:238: recipe for target 'generator.o' failed
       make: *** [generator.o] Error 1
       make failed, exit code 2
       Gem files will remain installed in
       /tmp/build_4d26c417192b3c718b122d1289222eb3/cobyism-redmine-heroku-2373f31/vendor/bundle/ruby/2.3.0/gems/json-1.8.1
       for inspection.
       Results logged to
       /tmp/build_4d26c417192b3c718b122d1289222eb3/cobyism-redmine-heroku-2373f31/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0/json-1.8.1/gem_make.out
       An error occurred while installing json (1.8.1), and Bundler cannot continue.
       Make sure that `gem install json -v '1.8.1'` 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 multi_json 1.10.1
       Installing i18n 0.6.11
       Installing rake 10.3.2
       Installing builder 3.0.4
       Installing journey 1.0.4
       Installing erubis 2.7.0
       Installing rack 1.4.5
       Installing hike 1.2.3
       Installing tilt 1.4.1
       Installing mime-types 1.25.1
       Installing polyglot 0.3.5
       Installing arel 3.0.3
       Installing coderay 1.1.0
       Installing json 1.8.1 with native extensions
       Installing thor 0.19.1
       Installing tzinfo 0.3.41
       Installing net-ldap 0.3.1
       Installing pg 0.17.1 with native extensions
       Installing ruby-openid 2.3.0
       Using bundler 1.13.7
       Installing redcarpet 2.3.0 with native extensions
       Installing request_store 1.0.5
       Installing rmagick 2.13.3 with native extensions
       Installing activesupport 3.2.19
       Installing rack-cache 1.2
       Installing rack-test 0.6.2
       Installing sprockets 2.2.2
       Installing rack-ssl 1.3.4
       Installing treetop 1.4.15
       Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
       
       current directory:
       /tmp/build_4d26c417192b3c718b122d1289222eb3/cobyism-redmine-heroku-2373f31/vendor/bundle/ruby/2.3.0/gems/json-1.8.1/ext/json/ext/generator
       /tmp/build_4d26c417192b3c718b122d1289222eb3/cobyism-redmine-heroku-2373f31/vendor/ruby-2.3.4/bin/ruby
       -r ./siteconf20170517-230-sex8qd.rb extconf.rb
       creating Makefile
       
       current directory:
       /tmp/build_4d26c417192b3c718b122d1289222eb3/cobyism-redmine-heroku-2373f31/vendor/bundle/ruby/2.3.0/gems/json-1.8.1/ext/json/ext/generator
       make "DESTDIR=" clean
       
       current directory:
       /tmp/build_4d26c417192b3c718b122d1289222eb3/cobyism-redmine-heroku-2373f31/vendor/bundle/ruby/2.3.0/gems/json-1.8.1/ext/json/ext/generator
       make "DESTDIR="
       compiling generator.c
       In file included from generator.c:1:0:
       ../fbuffer/fbuffer.h: In function ‘fbuffer_to_s’:
       ../fbuffer/fbuffer.h:175:47: error: macro "rb_str_new" requires 2 arguments, but
       only 1 given
       VALUE result = rb_str_new(FBUFFER_PAIR(fb));
       ^
       ../fbuffer/fbuffer.h:175:20: warning: initialization makes integer from pointer
       without a cast [-Wint-conversion]
       VALUE result = rb_str_new(FBUFFER_PAIR(fb));
       ^
       Makefile:238: recipe for target 'generator.o' failed
       make: *** [generator.o] Error 1
       
       make failed, exit code 2
       
       Gem files will remain installed in
       /tmp/build_4d26c417192b3c718b122d1289222eb3/cobyism-redmine-heroku-2373f31/vendor/bundle/ruby/2.3.0/gems/json-1.8.1
       for inspection.
       Results logged to
       /tmp/build_4d26c417192b3c718b122d1289222eb3/cobyism-redmine-heroku-2373f31/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0/json-1.8.1/gem_make.out
       
       An error occurred while installing json (1.8.1), and Bundler cannot continue.
       Make sure that `gem install json -v '1.8.1'` succeeds before bundling.
 !
 !     Failed to install gems via Bundler.
 !
 !     Push rejected, failed to compile Ruby app.
 !     Push failed
@HaswinVidanage
Copy link

is this being fixed ?

@kuolai
Copy link

kuolai commented Jul 3, 2018

2018/7/2 Got similar error when deploy redmine to heroku with one click
Error messages:
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.4.4
-----> Installing dependencies using bundler 1.15.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/.
Fetching rake 10.3.2
Fetching i18n 0.6.11
Fetching multi_json 1.10.1
Installing multi_json 1.10.1
Installing i18n 0.6.11
Installing rake 10.3.2
Fetching builder 3.0.4
Installing builder 3.0.4
Fetching erubis 2.7.0
Fetching journey 1.0.4
Installing erubis 2.7.0
Installing journey 1.0.4
Fetching rack 1.4.5
Fetching hike 1.2.3
Installing hike 1.2.3
Fetching tilt 1.4.1
Installing tilt 1.4.1
Installing rack 1.4.5
Fetching mime-types 1.25.1
Installing mime-types 1.25.1
Fetching polyglot 0.3.5
Installing polyglot 0.3.5
Fetching arel 3.0.3
Installing arel 3.0.3
Fetching tzinfo 0.3.41
Using bundler 1.15.2
Fetching coderay 1.1.0
Installing coderay 1.1.0
Fetching json 1.8.1
Fetching thor 0.19.1
Installing thor 0.19.1
Installing json 1.8.1 with native extensions
Installing tzinfo 0.3.41
Fetching net-ldap 0.3.1
Installing net-ldap 0.3.1
Fetching pg 0.17.1
Installing pg 0.17.1 with native extensions
Fetching ruby-openid 2.3.0
Installing ruby-openid 2.3.0
Fetching redcarpet 2.3.0
Installing redcarpet 2.3.0 with native extensions
Fetching request_store 1.0.5
Installing request_store 1.0.5
Fetching rmagick 2.13.3
Installing rmagick 2.13.3 with native extensions
Fetching activesupport 3.2.19
Installing activesupport 3.2.19
Fetching treetop 1.4.15
Installing treetop 1.4.15
Fetching rack-cache 1.2
Installing rack-cache 1.2
Fetching rack-test 0.6.2
Installing rack-test 0.6.2
Fetching sprockets 2.2.2
Installing sprockets 2.2.2
Fetching rack-ssl 1.3.4
Installing rack-ssl 1.3.4
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

   current directory:
   /tmp/build_adb2ad1791ccda19e25c1d458344103f/vendor/bundle/ruby/2.4.0/gems/json-1.8.1/ext/json/ext/generator
   /tmp/build_adb2ad1791ccda19e25c1d458344103f/vendor/ruby-2.4.4/bin/ruby -r
   ./siteconf20180703-241-5sjgjd.rb extconf.rb
   creating Makefile
   
   current directory:
   /tmp/build_adb2ad1791ccda19e25c1d458344103f/vendor/bundle/ruby/2.4.0/gems/json-1.8.1/ext/json/ext/generator
   make "DESTDIR=" clean
   
   current directory:
   /tmp/build_adb2ad1791ccda19e25c1d458344103f/vendor/bundle/ruby/2.4.0/gems/json-1.8.1/ext/json/ext/generator
   make "DESTDIR="
   compiling generator.c
   In file included from generator.c:1:0:
   ../fbuffer/fbuffer.h: In function ‘fbuffer_to_s’:
   ../fbuffer/fbuffer.h:175:47: error: macro "rb_str_new" requires 2 arguments, but
   only 1 given
        VALUE result = rb_str_new(FBUFFER_PAIR(fb));
                                                  ^
   ../fbuffer/fbuffer.h:175:20: warning: initialization makes integer from pointer
   without a cast [-Wint-conversion]
        VALUE result = rb_str_new(FBUFFER_PAIR(fb));
                       ^
   generator.c: In function ‘generate_json’:
   generator.c:840:25: error: ‘rb_cFixnum’ undeclared (first use in this function)
        } else if (klass == rb_cFixnum) {
                            ^
   generator.c:840:25: note: each undeclared identifier is reported only once for
   each function it appears in
   generator.c:842:25: error: ‘rb_cBignum’ undeclared (first use in this function)
        } else if (klass == rb_cBignum) {
                            ^
   generator.c: At top level:
   cc1: warning: unrecognized command line option ‘-Wno-self-assign’
   cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
   cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
   cc1: warning: unrecognized command line option ‘-Wno-tautological-compare’
   Makefile:241: recipe for target 'generator.o' failed
   make: *** [generator.o] Error 1
   
   make failed, exit code 2
   
   Gem files will remain installed in
   /tmp/build_adb2ad1791ccda19e25c1d458344103f/vendor/bundle/ruby/2.4.0/gems/json-1.8.1
   for inspection.
   Results logged to
   /tmp/build_adb2ad1791ccda19e25c1d458344103f/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0/json-1.8.1/gem_make.out
   
   An error occurred while installing json (1.8.1), and Bundler cannot continue.
   Make sure that `gem install json -v '1.8.1'` succeeds before bundling.
   
   In Gemfile:
     jquery-rails was resolved to 2.0.3, which depends on
       railties was resolved to 3.2.19, which depends on
         rdoc was resolved to 3.12.2, which depends on
           json
   Bundler Output: Fetching gem metadata from https://rubygems.org/..........
   Fetching version metadata from https://rubygems.org/..
   Fetching dependency metadata from https://rubygems.org/.
   Fetching rake 10.3.2
   Fetching i18n 0.6.11
   Fetching multi_json 1.10.1
   Installing multi_json 1.10.1
   Installing i18n 0.6.11
   Installing rake 10.3.2
   Fetching builder 3.0.4
   Installing builder 3.0.4
   Fetching erubis 2.7.0
   Fetching journey 1.0.4
   Installing erubis 2.7.0
   Installing journey 1.0.4
   Fetching rack 1.4.5
   Fetching hike 1.2.3
   Installing hike 1.2.3
   Fetching tilt 1.4.1
   Installing tilt 1.4.1
   Installing rack 1.4.5
   Fetching mime-types 1.25.1
   Installing mime-types 1.25.1
   Fetching polyglot 0.3.5
   Installing polyglot 0.3.5
   Fetching arel 3.0.3
   Installing arel 3.0.3
   Fetching tzinfo 0.3.41
   Using bundler 1.15.2
   Fetching coderay 1.1.0
   Installing coderay 1.1.0
   Fetching json 1.8.1
   Fetching thor 0.19.1
   Installing thor 0.19.1
   Installing json 1.8.1 with native extensions
   Installing tzinfo 0.3.41
   Fetching net-ldap 0.3.1
   Installing net-ldap 0.3.1
   Fetching pg 0.17.1
   Installing pg 0.17.1 with native extensions
   Fetching ruby-openid 2.3.0
   Installing ruby-openid 2.3.0
   Fetching redcarpet 2.3.0
   Installing redcarpet 2.3.0 with native extensions
   Fetching request_store 1.0.5
   Installing request_store 1.0.5
   Fetching rmagick 2.13.3
   Installing rmagick 2.13.3 with native extensions
   Fetching activesupport 3.2.19
   Installing activesupport 3.2.19
   Fetching treetop 1.4.15
   Installing treetop 1.4.15
   Fetching rack-cache 1.2
   Installing rack-cache 1.2
   Fetching rack-test 0.6.2
   Installing rack-test 0.6.2
   Fetching sprockets 2.2.2
   Installing sprockets 2.2.2
   Fetching rack-ssl 1.3.4
   Installing rack-ssl 1.3.4
   Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
   
   current directory:
   /tmp/build_adb2ad1791ccda19e25c1d458344103f/vendor/bundle/ruby/2.4.0/gems/json-1.8.1/ext/json/ext/generator
   /tmp/build_adb2ad1791ccda19e25c1d458344103f/vendor/ruby-2.4.4/bin/ruby -r
   ./siteconf20180703-241-5sjgjd.rb extconf.rb
   creating Makefile
   
   current directory:
   /tmp/build_adb2ad1791ccda19e25c1d458344103f/vendor/bundle/ruby/2.4.0/gems/json-1.8.1/ext/json/ext/generator
   make "DESTDIR=" clean
   
   current directory:
   /tmp/build_adb2ad1791ccda19e25c1d458344103f/vendor/bundle/ruby/2.4.0/gems/json-1.8.1/ext/json/ext/generator
   make "DESTDIR="
   compiling generator.c
   In file included from generator.c:1:0:
   ../fbuffer/fbuffer.h: In function ‘fbuffer_to_s’:
   ../fbuffer/fbuffer.h:175:47: error: macro "rb_str_new" requires 2 arguments, but
   only 1 given
        VALUE result = rb_str_new(FBUFFER_PAIR(fb));
                                                  ^
   ../fbuffer/fbuffer.h:175:20: warning: initialization makes integer from pointer
   without a cast [-Wint-conversion]
        VALUE result = rb_str_new(FBUFFER_PAIR(fb));
                       ^
   generator.c: In function ‘generate_json’:
   generator.c:840:25: error: ‘rb_cFixnum’ undeclared (first use in this function)
        } else if (klass == rb_cFixnum) {
                            ^
   generator.c:840:25: note: each undeclared identifier is reported only once for
   each function it appears in
   generator.c:842:25: error: ‘rb_cBignum’ undeclared (first use in this function)
        } else if (klass == rb_cBignum) {
                            ^
   generator.c: At top level:
   cc1: warning: unrecognized command line option ‘-Wno-self-assign’
   cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
   cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
   cc1: warning: unrecognized command line option ‘-Wno-tautological-compare’
   Makefile:241: recipe for target 'generator.o' failed
   make: *** [generator.o] Error 1
   
   make failed, exit code 2
   
   Gem files will remain installed in
   /tmp/build_adb2ad1791ccda19e25c1d458344103f/vendor/bundle/ruby/2.4.0/gems/json-1.8.1
   for inspection.
   Results logged to
   /tmp/build_adb2ad1791ccda19e25c1d458344103f/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0/json-1.8.1/gem_make.out
   
   An error occurred while installing json (1.8.1), and Bundler cannot continue.
   Make sure that `gem install json -v '1.8.1'` succeeds before bundling.
   
   In Gemfile:
     jquery-rails was resolved to 2.0.3, which depends on
       railties was resolved to 3.2.19, which depends on
         rdoc was resolved to 3.12.2, which depends on
           json

!
! Failed to install gems via Bundler.
!
! Push rejected, failed to compile Ruby app.
! Push failed

@hamzaaltaf
Copy link

hamzaaltaf commented Dec 14, 2018

any update on this issue? I am facing the exact same issue, please help !

@darbio
Copy link

darbio commented Mar 18, 2019

Still broken as of today

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

5 participants