SamSaffron / flamegraph

Flamegraph profiling support for Ruby 2.0
MIT License
382 stars 36 forks source link

Doesn't work on windows #3

Open ezuhaib opened 10 years ago

ezuhaib commented 10 years ago

While trying to install it I get:

Building native extensions.  This could take a while...
ERROR:  Error installing flamegraph:
ERROR: Failed to build gem native extension.

C:/Ruby200/bin/ruby.exe extconf.rb
creating Makefile
make
generating fast_stack-i386-mingw32.def
compiling fast_stack.c
In file included from c:/Ruby200/include/ruby-2.0.0/ruby/defines.h:153:0,
             from c:/Ruby200/include/ruby-2.0.0/ruby/ruby.h:70,
             from c:/Ruby200/include/ruby-2.0.0/ruby.h:33,
             from fast_stack.c:3:
c:/Ruby200/include/ruby-2.0.0/ruby/win32.h:276:12: error: conflicting types for 'gettimeofday'
In file included from fast_stack.c:2:0:
c:\ruby200\devkit\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/sys/time.h:42:13: note: previous declaration of 'gettimeofday' was here
fast_stack.c: In function 'rb_profile_start':
.
.
.
SamSaffron commented 10 years ago

Sorry, very very unlikely to fix this

ezuhaib commented 10 years ago

I see... Please document windows incompatibility.