louismullie / treat

Natural language processing framework for Ruby.
Other
1.37k stars 128 forks source link

Treat fails to install on Arch Linux #112

Closed diegoviola closed 7 years ago

diegoviola commented 9 years ago
[diego@myhost ~]$ gem install --no-document treat
Fetching: mime-types-1.25.1.gem (100%)
Successfully installed mime-types-1.25.1
Fetching: yomu-0.2.2.gem (100%)
Successfully installed yomu-0.2.2
Fetching: birch-0.0.8.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing treat:
        ERROR: Failed to build gem native extension.

    /home/diego/.rubies/ruby-2.2.2/bin/ruby -r ./siteconf20150708-27663-1n0izm2.rb extconf.rb
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling native.c
native.c: In function ‘birch_edge_initialize’:
native.c:42:8: warning: unused variable ‘direction’ [-Wunused-variable]
  VALUE direction;
        ^
native.c:41:8: warning: unused variable ‘directed’ [-Wunused-variable]
  VALUE directed;
        ^
native.c:40:8: warning: unused variable ‘node_b’ [-Wunused-variable]
  VALUE node_b;
        ^
native.c:39:8: warning: unused variable ‘node_a’ [-Wunused-variable]
  VALUE node_a;
        ^
native.c: In function ‘birch_has_features’:
native.c:272:8: warning: implicit declaration of function ‘RHASH’ [-Wimplicit-function-declaration]
   if (!RHASH(features)->ntbl) {
        ^
native.c:272:23: error: invalid type argument of ‘->’ (have ‘int’)
   if (!RHASH(features)->ntbl) {
                       ^
native.c: In function ‘birch_edge_initialize’:
native.c:58:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
native.c: In function ‘birch_has_features’:
native.c:275:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
Makefile:237: recipe for target 'native.o' failed
make: *** [native.o] Error 1

make failed, exit code 2

Gem files will remain installed in /home/diego/.gem/ruby/2.2.2/gems/birch-0.0.8 for inspection.
Results logged to /home/diego/.gem/ruby/2.2.2/extensions/x86_64-linux/2.2.0-static/birch-0.0.8/gem_make.out
[diego@myhost ~]$ 
voronoipotato commented 9 years ago

I think this is the same issue as https://github.com/louismullie/treat/issues/91

louismullie commented 7 years ago

Fixed in most recent birch release