Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile ferret native extensions in Windows environment #10

Open
TechRsch opened this issue Sep 7, 2013 · 3 comments
Open

Comments

@TechRsch
Copy link

TechRsch commented Sep 7, 2013

I am trying to install ferret to support treat but am unable to do so as it throws multiple compile-time errors. I have tried it with various gem install commands with platform and libraries provided. I also tried it with the gem-compiler with the same results.

Are you supporting this gem and can you tell me why the compile is failing? Environment and errors follow. Thanks.

The environment is:

RubyGems Environment:
  - RUBYGEMS VERSION: 2.0.7
  - RUBY VERSION: 1.9.3 (2013-06-27 patchlevel 448) [i386-mingw32]
  - INSTALLATION DIRECTORY: D:/BitNami/rubystack-1.9.3-12/ruby/lib/ruby/gems/1.9.1
  - RUBY EXECUTABLE: D:/BitNami/rubystack-1.9.3-12/ruby/bin/ruby.exe
  - EXECUTABLE DIRECTORY: D:/BitNami/rubystack-1.9.3-12/ruby/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-mingw32
  - GEM PATHS:
     - D:/BitNami/rubystack-1.9.3-12/ruby/lib/ruby/gems/1.9.1
     - C:/Users/Richard/.gem/ruby/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
     - "gem" => "--no-ri --no-rdoc"
  - REMOTE SOURCES:
     - https://rubygems.org/

The errors are:

D:\BitNami\rubystack-1.9.3-12\projects\ferret>gem fetch ferret --platform=ruby
Fetching: ferret-0.11.8.5.gem (100%)
Downloaded ferret-0.11.8.5

D:\BitNami\rubystack-1.9.3-12\projects\ferret>gem compile ferret-0.11.8.5.gem
Unpacking gem: 'ferret-0.11.8.5' in temporary directory...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
    ERROR: Failed to build gem native extension.

    D:/BitNami/rubystack-1.9.3-12/ruby/bin/ruby.exe extconf.rb
creating Makefile

make
generating ferret_ext-i386-mingw32.def
compiling analysis.c
compiling array.c
compiling bitvector.c
bitvector.c: In function 'frt_bv_eq':
bitvector.c:54:5: warning: ISO C90 forbids mixed declarations and code
compiling BZLIB_blocksort.c
compiling BZLIB_bzlib.c
compiling BZLIB_compress.c
compiling BZLIB_crctable.c
compiling BZLIB_decompress.c
compiling BZLIB_huffman.c
compiling BZLIB_randtable.c
compiling compound_io.c
compound_io.c: In function 'cmpdi_read_i':
compound_io.c:136:9: warning: unknown conversion type character 'l' in format
compound_io.c:136:9: warning: unknown conversion type character 'l' in format
compound_io.c:136:9: warning: too many arguments for format
compound_io.c: In function 'cw_copy_file':
compound_io.c:325:9: warning: unknown conversion type character 'l' in format
compound_io.c:325:9: warning: too many arguments for format
compound_io.c:334:9: warning: unknown conversion type character 'l' in format
compound_io.c:334:9: warning: unknown conversion type character 'l' in format
compound_io.c:334:9: warning: too many arguments for format
compiling document.c
compiling except.c
except.c:23:37: warning: initialization discards qualifiers from pointer target type
except.c:24:29: warning: initialization discards qualifiers from pointer target type
compiling ferret.c
compiling field_index.c
field_index.c: In function 'string_handle_term':
field_index.c:237:23: warning: operation on 'index->values' may be undefined
compiling filter.c
compiling fs_store.c
fs_store.c: In function 'fso_seek_i':
fs_store.c:252:9: warning: unknown conversion type character 'l' in format
fs_store.c:252:9: warning: format '%s' expects type 'char *', but argument 4 has type 'long long int'
fs_store.c:252:9: warning: too many arguments for format
fs_store.c: In function 'fsi_seek_i':
fs_store.c:306:9: warning: unknown conversion type character 'l' in format
fs_store.c:306:9: warning: format '%s' expects type 'char *', but argument 4 has type 'long long int'
fs_store.c:306:9: warning: too many arguments for format
fs_store.c: In function 'fsi_length_i':
fs_store.c:322:5: warning: implicit declaration of function 'fstati64'
fs_store.c: In function 'fs_store_new':
fs_store.c:431:17: warning: unused variable 'stt'
compiling global.c
global.c: In function 'frt_vstrfmt':
global.c:190:23: warning: assignment discards qualifiers from pointer target type
global.c: In function 'signal_to_string':
global.c:412:14: error: 'SIGBUS' undeclared (first use in this function)
global.c:412:14: note: each undeclared identifier is reported only once for each function it appears in
global.c: In function 'frt_init':
global.c:436:22: error: storage size of 'action' isn't known
global.c:443:5: warning: implicit declaration of function 'sigemptyset'
global.c:446:5: error: storage size of '__old' isn't known
global.c:446:5: warning: implicit declaration of function 'sigaction'
global.c:446:5: warning: unused variable '__old'
global.c:447:5: error: storage size of '__old' isn't known
global.c:447:5: warning: unused variable '__old'
global.c:448:5: error: storage size of '__old' isn't known
global.c:448:5: warning: unused variable '__old'
global.c:449:5: error: storage size of '__old' isn't known
global.c:449:5: error: 'SIGBUS' undeclared (first use in this function)
global.c:449:5: warning: unused variable '__old'
global.c:450:5: error: storage size of '__old' isn't known
global.c:450:5: warning: unused variable '__old'
global.c:436:22: warning: unused variable 'action'
make: *** [global.o] Error 1


Gem files will remain installed in C:/Users/Richard/AppData/Local/Temp/d20130906-13424-um3ump/ferret-0.11.8.5 for inspec
tion.
Results logged to C:/Users/Richard/AppData/Local/Temp/d20130906-13424-um3ump/ferret-0.11.8.5/ext/gem_make.out

D:\BitNami\rubystack-1.9.3-12\projects\ferret>
@talek
Copy link

talek commented Oct 13, 2013

I have the same problem! Ferret doesn't compile on Windows. Any ideas or workarounds?

@talek
Copy link

talek commented Oct 14, 2013

I've just tested with Ruby 2.0. Same problem. :(

@talek
Copy link

talek commented Oct 17, 2013

Workaround: sdsykes-ferret gem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants