Anton Bogdanovich created THRIFT-3772:
-----------------------------------------

             Summary: Can't compile ruby gem on OSX El Capitan
                 Key: THRIFT-3772
                 URL: https://issues.apache.org/jira/browse/THRIFT-3772
             Project: Thrift
          Issue Type: Bug
          Components: Ruby - Compiler
    Affects Versions: 0.9.3
         Environment: OSX El Capitan
            Reporter: Anton Bogdanovich


$ 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(i) ((VALUE)(((SIGNED_VALUE)(i))<<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(i) ((VALUE)(((SIGNED_VALUE)(i))<<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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to