mezis / blurrily

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

Unable to Compile the Gem on OSX 10.8.3 #1

Closed marcusleemitchell closed 11 years ago

marcusleemitchell commented 11 years ago

I get the following when compiling the gem

~/src/blurrily master $ gem install blurrily-0.0.1.gem
Building native extensions.  This could take a while...
ERROR:  Error installing blurrily-0.0.1.gem:
    ERROR: Failed to build gem native extension.

    /Users/mmitchell/.rvm/rubies/ruby-2.0.0-p0/bin/ruby extconf.rb
creating Makefile

make
compiling map_ext.c
compiling storage.c
cc1: warnings being treated as errors
storage.c: In function ‘blurrily_storage_load’:
storage.c:222: warning: implicit conversion shortens 64-bit value into a 32-bit value
storage.c: In function ‘blurrily_storage_put’:
storage.c:351: warning: implicit conversion shortens 64-bit value into a 32-bit value
storage.c: In function ‘blurrily_storage_find’:
storage.c:406: warning: implicit conversion shortens 64-bit value into a 32-bit value
make: *** [storage.o] Error 1
$ ruby -v
=> ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.3.0]

$ ruby -e 'puts RUBY_PLATFORM'
=> x86_64-darwin12.3.0

$ uname -a
=> Darwin marcus.local 12.3.0 Darwin Kernel Version 12.3.0: Sun Jan  6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64 x86_64

$ gcc --version
=> i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
dawid-sklodowski commented 11 years ago

For me it compiled ok:

$ ruby -v
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin11.4.2]

$ ruby -e 'puts RUBY_PLATFORM'
x86_64-darwin11.4.2

$ uname -a
Darwin dawid.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64

$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)

Also I'm on rbenv, while Marcus on rvm.

mezis commented 11 years ago

Looks like a 32bit-specific issue.