We have a bunch of apps and all of those use fastlane, We have one that was building OK, but suddenly stopped working, We are getting this error in the fastlane step:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/usr/local/lib/ruby/gems/2.4.0/gems/json-1.8.3/ext/json/ext/generator
/usr/local/bin/ruby -r ./siteconf20170418-2616-n3pwb0.rb extconf.rb
creating Makefile
current directory:
/usr/local/lib/ruby/gems/2.4.0/gems/json-1.8.3/ext/json/ext/generator
make âDESTDIR=â clean
current directory:
/usr/local/lib/ruby/gems/2.4.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR="
compiling generator.c
generator.c: In function âgenerate_jsonâ:
generator.c:861:25: error: ârb_cFixnumâ undeclared (first use in this function)
} else if (klass == rb_cFixnum) {
^
generator.c:861:25: note: each undeclared identifier is reported only once for
each function it appears in
generator.c:863: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
/usr/local/lib/ruby/gems/2.4.0/gems/json-1.8.3 for inspection.
Results logged to
/usr/local/lib/ruby/gems/2.4.0/extensions/x86_64-linux/2.4.0-static/json-1.8.3/gem_make.out
An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that gem install json -v '1.8.3'
succeeds before bundling.
Command failed, error: exit status 5
| |
±â±--------------------------------------------------------------±---------+
| x | fastlane (exit code: 1) | 16 sec |
±â±--------------------------------------------------------------±---------+
| Issue tracker: https://github.com/bitrise-io/steps-fastlane/issues |
| Source: https://github.com/bitrise-io/steps-fastlane |
±â±--------------------------------------------------------------±---------+
How can we fix this?