SamSaffron / fast_stack

MIT License
20 stars 3 forks source link

Faststack on windows 7 #3

Closed MichaelSp closed 10 years ago

MichaelSp commented 10 years ago

I have some issues with gem install fast_stack -v '0.1.0' I'm not quite sure that this is related to fast_stack. It could be due to my poor ruby setup...

Here is the output

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.

C:\Users\Michael>gem install fast_stack
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing fast_stack:
        ERROR: Failed to build gem native extension.

    D:/dev/tools/Ruby200/bin/ruby.exe extconf.rb
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
generating fast_stack-i386-mingw32.def
compiling fast_stack.c
In file included from d:/dev/tools/Ruby200/include/ruby-2.0.0/ruby/defines.h:153:0,
                 from d:/dev/tools/Ruby200/include/ruby-2.0.0/ruby/ruby.h:70,
                 from d:/dev/tools/Ruby200/include/ruby-2.0.0/ruby.h:33,
                 from fast_stack.c:3:
d:/dev/tools/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:
d:\dev\tools\ruby_devkit-mingw64-32-4.7.2-20130224-1151-sfx\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':
fast_stack.c:9:22: error: storage size of 'timer' isn't known
fast_stack.c:11:34: error: 'suseconds_t' undeclared (first use in this function)
fast_stack.c:11:34: note: each undeclared identifier is reported only once for each function it appears in
fast_stack.c:11:46: error: expected ';' before 'rb_num2long_inline'
fast_stack.c:13:5: warning: implicit declaration of function 'setitimer' [-Wimplicit-function-declaration]
fast_stack.c:13:15: error: 'ITIMER_REAL' undeclared (first use in this function)
fast_stack.c:9:22: warning: unused variable 'timer' [-Wunused-variable]
fast_stack.c: In function 'rb_profile_stop':
fast_stack.c:21:22: error: storage size of 'timer' isn't known
fast_stack.c:23:15: error: 'ITIMER_REAL' undeclared (first use in this function)
fast_stack.c:21:22: warning: unused variable 'timer' [-Wunused-variable]
make: *** [fast_stack.o] Error 1

make failed, exit code 2

Gem files will remain installed in D:/dev/tools/Ruby200/lib/ruby/gems/2.0.0/gems/fast_stack-0.1.0 for inspection.
Results logged to D:/dev/tools/Ruby200/lib/ruby/gems/2.0.0/extensions/x86-mingw32/2.0.0/fast_stack-0.1.0/gem_make.out

C:\Users\Michael>
SamSaffron commented 10 years ago

sorry, not designed to work in windows, the API does not exist in win

On Sat, Apr 19, 2014 at 9:04 AM, MichaelSp notifications@github.com wrote:

I have some issues with gem install fast_stack -v '0.1.0' I'm not quite sure that this is related to fast_stack. It could be due to my poor ruby setup...

Here is the output

Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.

C:\Users\Michael>gem install fast_stack Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing fast_stack: ERROR: Failed to build gem native extension.

D:/dev/tools/Ruby200/bin/ruby.exe extconf.rb

creating Makefile

make "DESTDIR=" clean

make "DESTDIR=" generating fast_stack-i386-mingw32.def compiling fast_stack.c In file included from d:/dev/tools/Ruby200/include/ruby-2.0.0/ruby/defines.h:153:0, from d:/dev/tools/Ruby200/include/ruby-2.0.0/ruby/ruby.h:70, from d:/dev/tools/Ruby200/include/ruby-2.0.0/ruby.h:33, from fast_stack.c:3: d:/dev/tools/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: d:\dev\tools\ruby_devkit-mingw64-32-4.7.2-20130224-1151-sfx\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': fast_stack.c:9:22: error: storage size of 'timer' isn't known fast_stack.c:11:34: error: 'suseconds_t' undeclared (first use in this function) fast_stack.c:11:34: note: each undeclared identifier is reported only once for each function it appears in fast_stack.c:11:46: error: expected ';' before 'rb_num2long_inline' fast_stack.c:13:5: warning: implicit declaration of function 'setitimer' [-Wimplicit-function-declaration] fast_stack.c:13:15: error: 'ITIMER_REAL' undeclared (first use in this function) fast_stack.c:9:22: warning: unused variable 'timer' [-Wunused-variable] fast_stack.c: In function 'rb_profile_stop': fast_stack.c:21:22: error: storage size of 'timer' isn't known fast_stack.c:23:15: error: 'ITIMER_REAL' undeclared (first use in this function) fast_stack.c:21:22: warning: unused variable 'timer' [-Wunused-variable] make: *\ [fast_stack.o] Error 1

make failed, exit code 2

Gem files will remain installed in D:/dev/tools/Ruby200/lib/ruby/gems/2.0.0/gems/fast_stack-0.1.0 for inspection. Results logged to D:/dev/tools/Ruby200/lib/ruby/gems/2.0.0/extensions/x86-mingw32/2.0.0/fast_stack-0.1.0/gem_make.out

C:\Users\Michael>

— Reply to this email directly or view it on GitHubhttps://github.com/SamSaffron/fast_stack/issues/3 .

MichaelSp commented 10 years ago

What a bummer :/