ruby-debug19 #3

Closed
andreaslyngstad opened this Issue Mar 1, 2012 · 6 comments

Comments

Projects
None yet
3 participants
@andreaslyngstad

I cant get ruby-debug to work on these bulids I get this when I try to install
$ gem install ruby-debug19 -- --with-ruby-include=c:/Ruby193_faster
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug19:
ERROR: Failed to build gem native extension.

    c:/Ruby193_faster/bin/ruby.exe extconf.rb --with-ruby-include=c:/Ruby193_faster

checking for rb_method_entry_t.body in method.h... no
checking for vm_core.h... no
c:/Ruby193_faster/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:39: Use RbConfig instead of obsolete and deprecated Config.
checking for rb_method_entry_t.body in method.h... no
checking for vm_core.h... yes
checking for iseq.h... yes
checking for insns.inc... yes
checking for insns_info.inc... yes
checking for eval_intern.h... yes
creating Makefile

make
generating ruby_debug-i386-mingw32.def
compiling breakpoint.c
compiling ruby_debug.c
ruby_debug.c:29:19: error: conflicting types for 'rb_iseq_compile_with_option'
c:/Ruby193_faster/include/ruby-1.9.1/ruby-1.9.3-p0/vm_core.h:505:7: note: previous declaration of 'rb_iseq_compile_with_option' was here
ruby_debug.c: In function 'context_jump':
ruby_debug.c:2414:53: warning: comparison between signed and unsigned integer expressions
ruby_debug.c:2428:27: warning: comparison between signed and unsigned integer expressions
make: *** [ruby_debug.o] Error 1

Gem files will remain installed in c:/Ruby193_faster/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.25 for inspection.
Results logged to c:/Ruby193_faster/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.25/ext/ruby_debug/gem_make.out

@funny-falcon

This comment has been minimized.

Show comment Hide comment
@funny-falcon

funny-falcon Mar 1, 2012

Is it compiled with stock ruby-1.9.3-p125?

Is it compiled with stock ruby-1.9.3-p125?

@funny-falcon

This comment has been minimized.

Show comment Hide comment
@funny-falcon

funny-falcon Mar 1, 2012

Hmm, I see that RUBY_REVISION is set to '0', so that ruby-debug19 wrongly assume ruby version.
Stock 1.9.3:

$ ruby -v
ruby 1.9.3p125 (2012-02-16 revision 34643) [i686-linux]
$ ruby -e 'p RUBY_REVISION'
34643
$ rvm install 1.9.3-fast --patch falcon
...
$ rvm 1.9.3-fast
$ ruby -v
ruby 1.9.3p125 (2012-02-16) [i686-linux]
$ ruby -e 'p RUBY_REVISION'
0

Which magic set RUBY_REVISION?

Hmm, I see that RUBY_REVISION is set to '0', so that ruby-debug19 wrongly assume ruby version.
Stock 1.9.3:

$ ruby -v
ruby 1.9.3p125 (2012-02-16 revision 34643) [i686-linux]
$ ruby -e 'p RUBY_REVISION'
34643
$ rvm install 1.9.3-fast --patch falcon
...
$ rvm 1.9.3-fast
$ ruby -v
ruby 1.9.3p125 (2012-02-16) [i686-linux]
$ ruby -e 'p RUBY_REVISION'
0

Which magic set RUBY_REVISION?

@andreaslyngstad

This comment has been minimized.

Show comment Hide comment
@andreaslyngstad

andreaslyngstad Mar 1, 2012

on my machine

$ ruby -v
tcs-ruby 1.9.3p0 (2011-11-08) [i386-mingw32]

RUBY_REVISION is set to '0', as you say.
But, I do not have rvm here in windows country.
I tried

$ ruby -e 'p RUBY_REVISION'
0

and

 $ ruby -e 'p 125'
 125

but still

$ ruby -v
tcs-ruby 1.9.3p0 (2011-11-08) [i386-mingw32]

I really do not know what I am doing. Sorry.

on my machine

$ ruby -v
tcs-ruby 1.9.3p0 (2011-11-08) [i386-mingw32]

RUBY_REVISION is set to '0', as you say.
But, I do not have rvm here in windows country.
I tried

$ ruby -e 'p RUBY_REVISION'
0

and

 $ ruby -e 'p 125'
 125

but still

$ ruby -v
tcs-ruby 1.9.3p0 (2011-11-08) [i386-mingw32]

I really do not know what I am doing. Sorry.

@shirosaki

This comment has been minimized.

Show comment Hide comment
@shirosaki

shirosaki Mar 1, 2012

Please check this instruction.
http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug

First download linecache19-0.5.13.gem and ruby-debug-base19-0.11.26.gem from http://rubyforge.org/frs/?group_id=8883

Then,

gem install linecache19-0.5.13.gem
gem install ruby-debug-base19-0.11.26.gem -- --with-ruby-include=C:/Ruby193_faster/include/ruby-1.9.1/ruby-1.9.3-p0
gem install ruby-debug19

Please check this instruction.
http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug

First download linecache19-0.5.13.gem and ruby-debug-base19-0.11.26.gem from http://rubyforge.org/frs/?group_id=8883

Then,

gem install linecache19-0.5.13.gem
gem install ruby-debug-base19-0.11.26.gem -- --with-ruby-include=C:/Ruby193_faster/include/ruby-1.9.1/ruby-1.9.3-p0
gem install ruby-debug19
@andreaslyngstad

This comment has been minimized.

Show comment Hide comment
@andreaslyngstad

andreaslyngstad Mar 1, 2012

Hats of and thank you. That fixed it!

$ gem install ruby-debug19
Fetching: ruby-debug19-0.11.6.gem (100%)
Successfully installed ruby-debug19-0.11.6
1 gem installed
Installing ri documentation for ruby-debug19-0.11.6...
Installing RDoc documentation for ruby-debug19-0.11.6...

Hats of and thank you. That fixed it!

$ gem install ruby-debug19
Fetching: ruby-debug19-0.11.6.gem (100%)
Successfully installed ruby-debug19-0.11.6
1 gem installed
Installing ri documentation for ruby-debug19-0.11.6...
Installing RDoc documentation for ruby-debug19-0.11.6...
@funny-falcon

This comment has been minimized.

Show comment Hide comment
@funny-falcon

funny-falcon Mar 2, 2012

I see: my patch changes ChangeLog (I copied changelog items which points to Narihiro Nakamuro's GC commits), it forces revision.h to be rewritten :( I'll fix it in couple of days

I see: my patch changes ChangeLog (I copied changelog items which points to Narihiro Nakamuro's GC commits), it forces revision.h to be rewritten :( I'll fix it in couple of days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment