mezis / blurrily

Millisecond fuzzy string matching for Ruby
MIT License
90 stars 14 forks source link

Cannot install on macos sierra #48

Open mohammedyasir opened 7 years ago

mohammedyasir commented 7 years ago

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /Users/yasirazgar/.rvm/gems/ruby-2.1.7@ih/gems/blurrily-1.0.0/ext/blurrily

/Users/yasirazgar/.rvm/rubies/ruby-2.1.7/bin/ruby -r ./siteconf20170404-21940-i7quij.rb extconf.rb creating Makefile

current directory: /Users/yasirazgar/.rvm/gems/ruby-2.1.7@ih/gems/blurrily-1.0.0/ext/blurrily make "DESTDIR=" clean

current directory: /Users/yasirazgar/.rvm/gems/ruby-2.1.7@ih/gems/blurrily-1.0.0/ext/blurrily make "DESTDIR=" compiling map_ext.c compiling search_tree.c compiling storage.c storage.c:283:43: error: taking address of packed member 'refs' of class or structure 'trigram_map_t' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member] if (haystack->refs) blurrily_refs_free(&haystack->refs); ^~~~~~ storage.c:405:24: error: taking address of packed member 'refs' of class or structure 'trigram_map_t' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member] blurrily_refs_new(&haystack->refs); ^~~~~~ 2 errors generated. make: *** [storage.o] Error 1

make failed, exit code 2

Gem files will remain installed in /Users/yasirazgar/.rvm/gems/ruby-2.1.7@ih/gems/blurrily-1.0.0 for inspection. Results logged to /Users/yasirazgar/.rvm/gems/ruby-2.1.7@ih/extensions/x86_64-darwin-16/2.1.0/blurrily-1.0.0/gem_make.out

An error occurred while installing blurrily (1.0.0), and Bundler cannot continue. Make sure that gem install blurrily -v '1.0.0' succeeds before bundling.

erdem commented 7 years ago

+1

tim-meredith commented 7 years ago

Revert your Xcode version back to 8.2.1 and then try to install again. You can find the older version of Xcode at https://developer.apple.com/download/more/

wibbly commented 5 years ago

Any chance this might get fixed?

It's beyond my understanding of C and I really want to use blurrily ...