Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby 2.6 on windows 10 #69

Closed
Ingu opened this issue Jan 15, 2019 · 3 comments
Closed

Ruby 2.6 on windows 10 #69

Ingu opened this issue Jan 15, 2019 · 3 comments

Comments

@Ingu
Copy link

Ingu commented Jan 15, 2019

On windows i'm getting

Fetching debase 0.2.3.beta3 (was 0.2.2)
Installing debase 0.2.3.beta3 (was 0.2.2) with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/debase-0.2.3.beta3/ext
C:/Ruby26-x64/bin/ruby.exe -I C:/Ruby26-x64/lib/ruby/2.6.0 -r
./siteconf20190115-12680-1s6z5xq.rb extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
checking for vm_core.h... yes
checking for iseq.h... yes
checking for version.h... yes
checking for vm_core.h... yes
checking for vm_insnhelper.h... yes
checking for vm_core.h... yes
checking for method.h... yes
creating Makefile

current directory: C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/debase-0.2.3.beta3/ext
make "DESTDIR=" clean

current directory: C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/debase-0.2.3.beta3/ext
make "DESTDIR="
generating debase_internals-x64-mingw32.def
compiling breakpoint.c
compiling context.c
compiling debase_internals.c
debase_internals.c: In function 'my_iseqw_check':
debase_internals.c:647:13: warning: implicit declaration of function
'ibf_load_iseq_complete'; did you mean 'rb_iseq_compile'?
[-Wimplicit-function-declaration]
             ibf_load_iseq_complete(iseq);
             ^~~~~~~~~~~~~~~~~~~~~~
             rb_iseq_compile
debase_internals.c: In function 'Debase_set_trace_flag_to_iseq':
debase_internals.c:659:31: warning: initialization discards 'const' qualifier
from pointer target type [-Wdiscarded-qualifiers]
             rb_iseq_t *iseq = my_iseqw_check(rb_iseq);
                               ^~~~~~~~~~~~~~
debase_internals.c:660:13: warning: implicit declaration of function
'rb_iseq_trace_set'; did you mean 'rb_iseq_pathobj_set'?
[-Wimplicit-function-declaration]
             rb_iseq_trace_set(iseq, RUBY_EVENT_TRACEPOINT_ALL);
             ^~~~~~~~~~~~~~~~~
             rb_iseq_pathobj_set
debase_internals.c: In function 'Debase_unset_trace_flags':
debase_internals.c:667:31: warning: initialization discards 'const' qualifier
from pointer target type [-Wdiscarded-qualifiers]
             rb_iseq_t *iseq = my_iseqw_check(rb_iseq);
                               ^~~~~~~~~~~~~~
debase_internals.c: In function 'Init_debase_internals':
debase_internals.c:724:64: warning: passing argument 3 of
'rb_define_module_function' from incompatible pointer type
[-Wincompatible-pointer-types]
rb_define_module_function(mDebase, "set_trace_flag_to_iseq",
Debase_set_trace_flag_to_iseq, 1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:/Ruby26-x64/include/ruby-2.6.0/ruby.h:33,
                 from ./debase_internals.h:4,
                 from debase_internals.c:1:
C:/Ruby26-x64/include/ruby-2.6.0/ruby/ruby.h:1787:50: note: expected 'VALUE
(*)()' {aka 'long long unsigned int (*)()'} but argument is of type 'void
(*)(VALUE,  VALUE)' {aka 'void (*)(long long unsigned int,  long long unsigned
int)'}
 void rb_define_module_function(VALUE,const char*,VALUE(*)(ANYARGS),int);
                                                  ^~~~~~~~~~~~~~~~~
debase_internals.c:727:58: warning: passing argument 3 of
'rb_define_module_function' from incompatible pointer type
[-Wincompatible-pointer-types]
rb_define_module_function(mDebase, "unset_iseq_flags",
Debase_unset_trace_flags, 1);
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:/Ruby26-x64/include/ruby-2.6.0/ruby.h:33,
                 from ./debase_internals.h:4,
                 from debase_internals.c:1:
C:/Ruby26-x64/include/ruby-2.6.0/ruby/ruby.h:1787:50: note: expected 'VALUE
(*)()' {aka 'long long unsigned int (*)()'} but argument is of type 'void
(*)(VALUE,  VALUE)' {aka 'void (*)(long long unsigned int,  long long unsigned
int)'}
 void rb_define_module_function(VALUE,const char*,VALUE(*)(ANYARGS),int);
                                                  ^~~~~~~~~~~~~~~~~
compiling locker.c
linking shared-object debase_internals.so
debase_internals.o:debase_internals.c:(.text+0x596): undefined reference to
`ibf_load_iseq_complete'
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:261: debase_internals.so] Błąd 1

make failed, exit code 2

Gem files will remain installed in
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/debase-0.2.3.beta3 for inspection.
Results logged to
C:/Ruby26-x64/lib/ruby/gems/2.6.0/extensions/x64-mingw32/2.6.0/debase-0.2.3.beta3/gem_make.out

An error occurred while installing debase (0.2.3.beta3), and Bundler cannot
continue.
Make sure that `gem install debase -v '0.2.3.beta3' --source
'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  debase

using https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.0-1/rubyinstaller-devkit-2.6.0-1-x64.exe

gemfile:

  gem 'debase', '~> 0.2.3.beta3'
  gem 'debase-ruby_core_source', '~> 0.10.4'
ViugiNick added a commit to ViugiNick/debase that referenced this issue Jan 16, 2019
valich pushed a commit that referenced this issue Jan 18, 2019
@Ingu
Copy link
Author

Ingu commented Jan 21, 2019

@valich this one fixed compilation on ruby 2.6 on windows, could you release v0.2.3.beta4 ?

@valich
Copy link
Collaborator

valich commented Jan 21, 2019

Done, please check.

@Ingu Ingu closed this as completed Jan 24, 2019
@Ingu
Copy link
Author

Ingu commented Jan 24, 2019

works great, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants