Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
0.9.3
-
None
-
None
-
OSX El Capitan
Description
$ gem install thrift
Building native extensions. This could take a while...
ERROR: Error installing thrift:
ERROR: Failed to build gem native extension.
/Users/abogdanovich/.rvm/rubies/ruby-2.1.4/bin/ruby -r ./siteconf20160402-39000-1ng8myg.rb extconf.rb
checking for strlcpy() in string.h... yes
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling binary_protocol_accelerated.c
compiling bytes.c
compiling compact_protocol.c
compact_protocol.c:442:41: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value]
rb_exc_raise(get_protocol_exception(INT2FIX(-1), rb_str_new2(buf)));
^~~~~~~~~~~
/Users/abogdanovich/.rvm/rubies/ruby-2.1.4/include/ruby-2.1.0/ruby/ruby.h:231:48: note: expanded from macro 'INT2FIX'
#define INT2FIX ((VALUE)(((SIGNED_VALUE))<<1 | FIXNUM_FLAG))
~~~~~~~~~~~~~~~~~~~^
compact_protocol.c:451:41: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value]
rb_exc_raise(get_protocol_exception(INT2FIX(-1), rb_str_new2(buf)));
^~~~~~~~~~~
/Users/abogdanovich/.rvm/rubies/ruby-2.1.4/include/ruby-2.1.0/ruby/ruby.h:231:48: note: expanded from macro 'INT2FIX'
#define INT2FIX ((VALUE)(((SIGNED_VALUE))<<1 | FIXNUM_FLAG))
~~~~~~~~~~~~~~~~~~~^
2 errors generated.
make: *** [compact_protocol.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/abogdanovich/.rvm/gems/ruby-2.1.4/gems/thrift-0.9.3.0 for inspection.
Results logged to /Users/abogdanovich/.rvm/gems/ruby-2.1.4/extensions/x86_64-darwin-13/2.1.0-static/thrift-0.9.3.0/gem_make.out