Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3772

Can't compile ruby gem on OSX El Capitan

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 0.9.3
    • Fix Version/s: None
    • Component/s: Ruby - Compiler
    • Labels:
      None
    • Environment:

      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              abogdanovich Anton Bogdanovich

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment