mark-moseley / linecache

GNU General Public License v2.0
29 stars 20 forks source link

linecache19 on WINDOWS: Makefile ARCHFLAG = -m64 causes \DevKit\mingw\bin\gcc error : sorry, unimplemented: 64-bit mode not compiled in #18

Open rupweb opened 11 years ago

rupweb commented 11 years ago

Is it really necessary to compile in 64 bit version? Do I then need the mingw 64 bit gcc? It's half impossible to install !

There must be an easier way around this, anyone seen the error before?

C:\JRuby\lib\ruby\gems\shared>gem install linecache19-0.5.13.gem Building native extensions. This could take a while... ERROR: Error installing linecache19-0.5.13.gem: ERROR: Failed to build gem native extension.

    C:/JRuby/bin/jruby.exe extconf.rb

C:/JRuby/lib/ruby/shared/mkmf.rb:14: Use RbConfig instead of obsolete and deprecated Config. checking for vm_core.h... no checking for vm_core.h... yes checking for version.h... yes creating Makefile

make gcc -I. -IC:/JRuby/lib/native/include -IC:/JRuby/lib/native/include/ruby -I. -DHAVE_VM_CORE_H -DHAVE_VERSION_H -IC:/JRuby/lib/native/include /ruby-1.9.3-p392 -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -m64 -march=native -mtune=native -c trace_nums.c trace_nums.c:1:0: sorry, unimplemented: 64-bit mode not compiled in In file included from trace_nums.c:21:0: C:/JRuby/lib/native/include/ruby-1.9.3-p392/vm_core.h:312:5: error: expected specifier-qualifier-list before 'rb_event_hook_t' C:/JRuby/lib/native/include/ruby-1.9.3-p392/vm_core.h:354:29: error: expected '=', ',', ';', 'asm' or 'attribute' before 'ruby_threadptr _data_type' C:/JRuby/lib/native/include/ruby-1.9.3-p392/vm_core.h:367:22: error: expected '=', ',', ';', 'asm' or 'attribute' before 'rb_jmpbuf_t' C:/JRuby/lib/native/include/ruby-1.9.3-p392/vm_core.h:370:5: error: expected specifier-qualifier-list before 'rb_jmpbuf_t' C:/JRuby/lib/native/include/ruby-1.9.3-p392/vm_core.h:478:5: error: expected specifier-qualifier-list before 'rb_event_hook_t' C:/JRuby/lib/native/include/ruby-1.9.3-p392/vm_core.h:512:13: error: expected '=', ',', ';', 'asm' or 'attribute' before 'VALUE' C:/JRuby/lib/native/include/ruby-1.9.3-p392/vm_core.h:513:13: error: expected '=', ',', ';', 'asm' or 'attribute' before 'VALUE' C:/JRuby/lib/native/include/ruby-1.9.3-p392/vm_core.h:514:13: error: expected '=', ',', ';', 'asm' or 'attribute' before 'VALUE' C:/JRuby/lib/native/include/ruby-1.9.3-p392/vm_core.h:515:13: error: expected '=', ',', ';', 'asm' or 'attribute' before 'VALUE' C:/JRuby/lib/native/include/ruby-1.9.3-p392/vm_core.h:663:6: warning: 'rb_thread_start_timer_thread' redeclared without dllimport attribute: previous dllimport ignored C:/JRuby/lib/native/include/ruby-1.9.3-p392/vm_core.h:664:6: error: conflicting types for 'rb_thread_stop_timer_thread' C:/JRuby/lib/native/include/ruby/ruby.h:1102:19: note: previous declaration of 'rb_thread_stop_timer_thread' was here C:/JRuby/lib/native/include/ruby-1.9.3-p392/vm_core.h:678:1: warning: data definition has no type or storage class C:/JRuby/lib/native/include/ruby-1.9.3-p392/vm_core.h:686:13: error: expected '=', ',', ';', 'asm' or 'attribute' before 'rb_thread_t' C:/JRuby/lib/native/include/ruby-1.9.3-p392/vm_core.h:732:48: error: expected declaration specifiers or '...' before 'rb_event_flag_t' tracenums.c:26:36: error: expected '=', ',', ';', 'asm' or 'attribute' before '' token make: _\ [trace_nums.o] Error 1

Gem files will remain installed in C:/JRuby/lib/ruby/gems/shared/gems/linecache19-0.5.13 for inspection. Results logged to C:/JRuby/lib/ruby/gems/shared/gems/linecache19-0.5.13/ext/trace_nums/gem_make.out

rupweb commented 11 years ago

Makefile says:

archflag = -m64 -march=native -mtune=native