-
Notifications
You must be signed in to change notification settings - Fork 419
Open
Description
Problem
Under Ruby 2.5.3 and 2.5.1, bundle install
fails with:
An error occurred while installing yajl-ruby (1.1.0), and Bundler cannot continue.
Make sure that `gem install yajl-ruby -v '1.1.0' --source 'https://rubygems.org/'` succeeds before bundling.
I have checked against Ruby 2.3.3 and the problem does not exist with this version.
Fix
This seems to be caused by the current Gemfile.lock
. The solution would be either to remove the file from the repo or generate a new one.
Full console output:
Fetching gem metadata from https://rubygems.org/...........
Using rake 10.1.0
Using bundler 1.17.2
Using fast-stemmer 1.0.2
Using classifier 1.3.3
Using coderay 1.0.9
Using colorator 0.1
Using highline 1.6.19
Using commander 4.1.4
Using directory_watcher 1.4.1
Using kramdown 1.0.2
Using liquid 2.5.1
Using syntax 1.0.0
Using maruku 0.6.1
Using posix-spawn 0.3.6
Fetching yajl-ruby 1.1.0
Installing yajl-ruby 1.1.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /Users/stuff/.rvm/gems/ruby-2.5.3/gems/yajl-ruby-1.1.0/ext/yajl
/Users/stuff/.rvm/rubies/ruby-2.5.3/bin/ruby -r ./siteconf20190101-62306-1m0584p.rb extconf.rb
creating Makefile
current directory: /Users/stuff/.rvm/gems/ruby-2.5.3/gems/yajl-ruby-1.1.0/ext/yajl
make "DESTDIR=" clean
current directory: /Users/stuff/.rvm/gems/ruby-2.5.3/gems/yajl-ruby-1.1.0/ext/yajl
make "DESTDIR="
compiling yajl.c
compiling yajl_alloc.c
compiling yajl_buf.c
compiling yajl_encode.c
compiling yajl_ext.c
yajl_ext.c:42:19: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
int len = RARRAY_LEN(wrapper->builderStack);
~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/stuff/.rvm/rubies/ruby-2.5.3/include/ruby-2.5.0/ruby/ruby.h:1021:23: note: expanded from macro 'RARRAY_LEN'
#define RARRAY_LEN(a) rb_array_len(a)
^~~~~~~~~~~~~~~
yajl_ext.c:47:19: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
int len = RARRAY_LEN(wrapper->builderStack);
~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/stuff/.rvm/rubies/ruby-2.5.3/include/ruby-2.5.0/ruby/ruby.h:1021:23: note: expanded from macro 'RARRAY_LEN'
#define RARRAY_LEN(a) rb_array_len(a)
^~~~~~~~~~~~~~~
yajl_ext.c:64:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
len = RARRAY_LEN(wrapper->builderStack);
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/stuff/.rvm/rubies/ruby-2.5.3/include/ruby-2.5.0/ruby/ruby.h:1021:23: note: expanded from macro 'RARRAY_LEN'
#define RARRAY_LEN(a) rb_array_len(a)
^~~~~~~~~~~~~~~
yajl_ext.c:176:19: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(str);
~ ^~~~~~~~~~~~~~~~
/Users/stuff/.rvm/rubies/ruby-2.5.3/include/ruby-2.5.0/ruby/ruby.h:975:6: note: expanded from macro 'RSTRING_LEN'
RSTRING_EMBED_LEN(str) : \
^~~~~~~~~~~~~~~~~~~~~~
/Users/stuff/.rvm/rubies/ruby-2.5.3/include/ruby-2.5.0/ruby/ruby.h:971:6: note: expanded from macro 'RSTRING_EMBED_LEN'
(long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
yajl_ext.c:176:19: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(str);
~ ^~~~~~~~~~~~~~~~
/Users/stuff/.rvm/rubies/ruby-2.5.3/include/ruby-2.5.0/ruby/ruby.h:976:28: note: expanded from macro 'RSTRING_LEN'
RSTRING(str)->as.heap.len)
~~~~~~~~~~~~~~~~~~~~~~^~~
yajl_ext.c:184:19: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(obj);
~ ^~~~~~~~~~~~~~~~
/Users/stuff/.rvm/rubies/ruby-2.5.3/include/ruby-2.5.0/ruby/ruby.h:975:6: note: expanded from macro 'RSTRING_LEN'
RSTRING_EMBED_LEN(str) : \
^~~~~~~~~~~~~~~~~~~~~~
/Users/stuff/.rvm/rubies/ruby-2.5.3/include/ruby-2.5.0/ruby/ruby.h:971:6: note: expanded from macro 'RSTRING_EMBED_LEN'
(long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
yajl_ext.c:184:19: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(obj);
~ ^~~~~~~~~~~~~~~~
/Users/stuff/.rvm/rubies/ruby-2.5.3/include/ruby-2.5.0/ruby/ruby.h:976:28: note: expanded from macro 'RSTRING_LEN'
RSTRING(str)->as.heap.len)
~~~~~~~~~~~~~~~~~~~~~~^~~
yajl_ext.c:192:23: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(str);
~ ^~~~~~~~~~~~~~~~
/Users/stuff/.rvm/rubies/ruby-2.5.3/include/ruby-2.5.0/ruby/ruby.h:975:6: note: expanded from macro 'RSTRING_LEN'
RSTRING_EMBED_LEN(str) : \
^~~~~~~~~~~~~~~~~~~~~~
/Users/stuff/.rvm/rubies/ruby-2.5.3/include/ruby-2.5.0/ruby/ruby.h:971:6: note: expanded from macro 'RSTRING_EMBED_LEN'
(long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
yajl_ext.c:192:23: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(str);
~ ^~~~~~~~~~~~~~~~
/Users/stuff/.rvm/rubies/ruby-2.5.3/include/ruby-2.5.0/ruby/ruby.h:976:28: note: expanded from macro 'RSTRING_LEN'
RSTRING(str)->as.heap.len)
~~~~~~~~~~~~~~~~~~~~~~^~~
yajl_ext.c:198:23: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(str);
~ ^~~~~~~~~~~~~~~~
/Users/stuff/.rvm/rubies/ruby-2.5.3/include/ruby-2.5.0/ruby/ruby.h:975:6: note: expanded from macro 'RSTRING_LEN'
RSTRING_EMBED_LEN(str) : \
^~~~~~~~~~~~~~~~~~~~~~
/Users/stuff/.rvm/rubies/ruby-2.5.3/include/ruby-2.5.0/ruby/ruby.h:971:6: note: expanded from macro 'RSTRING_EMBED_LEN'
(long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
yajl_ext.c:198:23: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(str);
~ ^~~~~~~~~~~~~~~~
/Users/stuff/.rvm/rubies/ruby-2.5.3/include/ruby-2.5.0/ruby/ruby.h:976:28: note: expanded from macro 'RSTRING_LEN'
RSTRING(str)->as.heap.len)
~~~~~~~~~~~~~~~~~~~~~~^~~
yajl_ext.c:463:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(input);
~ ^~~~~~~~~~~~~~~~~~
/Users/stuff/.rvm/rubies/ruby-2.5.3/include/ruby-2.5.0/ruby/ruby.h:975:6: note: expanded from macro 'RSTRING_LEN'
RSTRING_EMBED_LEN(str) : \
^~~~~~~~~~~~~~~~~~~~~~
/Users/stuff/.rvm/rubies/ruby-2.5.3/include/ruby-2.5.0/ruby/ruby.h:971:6: note: expanded from macro 'RSTRING_EMBED_LEN'
(long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
yajl_ext.c:463:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(input);
~ ^~~~~~~~~~~~~~~~~~
/Users/stuff/.rvm/rubies/ruby-2.5.3/include/ruby-2.5.0/ruby/ruby.h:976:28: note: expanded from macro 'RSTRING_LEN'
RSTRING(str)->as.heap.len)
~~~~~~~~~~~~~~~~~~~~~~^~~
yajl_ext.c:469:19: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(parsed);
~ ^~~~~~~~~~~~~~~~~~~
/Users/stuff/.rvm/rubies/ruby-2.5.3/include/ruby-2.5.0/ruby/ruby.h:975:6: note: expanded from macro 'RSTRING_LEN'
RSTRING_EMBED_LEN(str) : \
^~~~~~~~~~~~~~~~~~~~~~
/Users/stuff/.rvm/rubies/ruby-2.5.3/include/ruby-2.5.0/ruby/ruby.h:971:6: note: expanded from macro 'RSTRING_EMBED_LEN'
(long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
yajl_ext.c:469:19: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(parsed);
~ ^~~~~~~~~~~~~~~~~~~
/Users/stuff/.rvm/rubies/ruby-2.5.3/include/ruby-2.5.0/ruby/ruby.h:976:28: note: expanded from macro 'RSTRING_LEN'
RSTRING(str)->as.heap.len)
~~~~~~~~~~~~~~~~~~~~~~^~~
yajl_ext.c:509:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(chunk);
~ ^~~~~~~~~~~~~~~~~~
/Users/stuff/.rvm/rubies/ruby-2.5.3/include/ruby-2.5.0/ruby/ruby.h:975:6: note: expanded from macro 'RSTRING_LEN'
RSTRING_EMBED_LEN(str) : \
^~~~~~~~~~~~~~~~~~~~~~
/Users/stuff/.rvm/rubies/ruby-2.5.3/include/ruby-2.5.0/ruby/ruby.h:971:6: note: expanded from macro 'RSTRING_EMBED_LEN'
(long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
yajl_ext.c:509:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(chunk);
~ ^~~~~~~~~~~~~~~~~~
/Users/stuff/.rvm/rubies/ruby-2.5.3/include/ruby-2.5.0/ruby/ruby.h:976:28: note: expanded from macro 'RSTRING_LEN'
RSTRING(str)->as.heap.len)
~~~~~~~~~~~~~~~~~~~~~~^~~
yajl_ext.c:852:22: error: use of undeclared identifier 'rb_cFixnum'
rb_define_method(rb_cFixnum, "to_json", rb_yajl_json_ext_fixnum_to_json, -1);
^
17 warnings and 1 error generated.
make: *** [yajl_ext.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/stuff/.rvm/gems/ruby-2.5.3/gems/yajl-ruby-1.1.0 for inspection.
Results logged to /Users/stuff/.rvm/gems/ruby-2.5.3/extensions/x86_64-darwin-17/2.5.0/yajl-ruby-1.1.0/gem_make.out
An error occurred while installing yajl-ruby (1.1.0), and Bundler cannot continue.
Make sure that `gem install yajl-ruby -v '1.1.0' --source 'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
jekyll was resolved to 1.1.2, which depends on
pygments.rb was resolved to 0.5.2, which depends on
yajl-ruby
osbre, jpdenford, hannut91, FuhuXia, ZachariahRosenberg and 3 more
Metadata
Metadata
Assignees
Labels
No labels