-
Notifications
You must be signed in to change notification settings - Fork 34
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
Error while installing debase-0.2.5.beta2 #111
Comments
I'm seeing a similar issue on 0.2.4.1 (and it's still there on 0.2.5.beta2):
It sounds like the C compiler has changed the default for bundle config --local build.debase --with-cflags=-Wno-error=incompatible-pointer-types
# or:
gem install debase -v 0.2.5.beta2 -- --with-cflags=-Wno-error=incompatible-pointer-types So in your case, try: bundle config --local build.debase --with-cflags=-Wno-error=incompatible-function-pointer-types
# or:
gem install debase -v 0.2.5.beta2 -- --with-cflags=-Wno-error=incompatible-function-pointer-types Related: #108, grpc/grpc#35148, ruby-debug/ruby-debug-ide#242 |
I'm seeing this error myself:
versions
|
try |
No luck for me with 0.2.6 either |
@nateberkopec context, logs please. |
@hurricup in my case the0.2.6 version fails with
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /Users/diego/vendor/bundle/ruby/3.1.0/gems/ruby-debug-ide-0.7.3/ext
/Users/diego/.asdf/installs/ruby/3.1.2/bin/ruby mkrf_conf.rb
Installing base gem
Building native extensions. This could take a while...
Building native extensions. This could take a while...
ERROR: Failed to build gem native extension.
current directory: /Users/diego/vendor/bundle/ruby/3.1.0/gems/debase-0.2.6/ext
/Users/diego/.asdf/installs/ruby/3.1.2/bin/ruby -I /Users/diego/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0 -r ./siteconf20241111-49534-3s6pkc.rb extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
**************************************************************************
No source for ruby-3.1.2-p20 (revision 4491bb740a9506d76391ac44bb2fe6e483fec952) provided with
debase-ruby_core_source gem. Falling back to ruby-3.1.0-p0.
**************************************************************************
checking for vm_core.h... yes
checking for iseq.h... no
checking for iseq.h... yes
checking for version.h... yes
creating Makefile
current directory: /Users/diego/vendor/bundle/ruby/3.1.0/gems/debase-0.2.6/ext
make DESTDIR\= clean
current directory: /Users/diego/vendor/bundle/ruby/3.1.0/gems/debase-0.2.6/ext
make DESTDIR\=
compiling breakpoint.c
compiling context.c
compiling debase_internals.c
debase_internals.c:319:25: warning: initializing 'rb_control_frame_t *' (aka 'struct rb_control_frame_struct *') with an expression of type 'const rb_control_frame_t *' (aka 'const struct rb_control_frame_struct *') discards
qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
319 | rb_control_frame_t *start_cfp = RUBY_VM_END_CONTROL_FRAME(TH_INFO(thread));
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
debase_internals.c:770:3: error: incompatible function pointer types passing 'void (VALUE, VALUE)' (aka 'void (unsigned long, unsigned long)') to parameter of type 'VALUE (*)(VALUE, VALUE)' (aka 'unsigned long (*)(unsigned
long, unsigned long)') [-Wincompatible-function-pointer-types]
770 | rb_define_module_function(mDebase, "set_trace_flag_to_iseq", Debase_set_trace_flag_to_iseq, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/diego/.asdf/installs/ruby/3.1.2/include/ruby-3.1.0/ruby/internal/anyargs.h:337:142: note: expanded from macro 'rb_define_module_function'
337 | #define rb_define_module_function(mod, mid, func, arity) RBIMPL_ANYARGS_DISPATCH_rb_define_module_function((arity), (func))((mod), (mid), (func), (arity))
| ^~~~~~
/Users/diego/.asdf/installs/ruby/3.1.2/include/ruby-3.1.0/ruby/internal/anyargs.h:273:1: note: passing argument to parameter here
273 | RBIMPL_ANYARGS_DECL(rb_define_module_function, VALUE, const char *)
| ^
/Users/diego/.asdf/installs/ruby/3.1.2/include/ruby-3.1.0/ruby/internal/anyargs.h:255:72: note: expanded from macro 'RBIMPL_ANYARGS_DECL'
255 | RBIMPL_ANYARGS_ATTRSET(sym) static void sym ## _01(__VA_ARGS__, VALUE(*)(VALUE, VALUE), int); \
| ^
debase_internals.c:773:3: error: incompatible function pointer types passing 'void (VALUE, VALUE)' (aka 'void (unsigned long, unsigned long)') to parameter of type 'VALUE (*)(VALUE, VALUE)' (aka 'unsigned long (*)(unsigned
long, unsigned long)') [-Wincompatible-function-pointer-types]
773 | rb_define_module_function(mDebase, "unset_iseq_flags", Debase_unset_trace_flags, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/diego/.asdf/installs/ruby/3.1.2/include/ruby-3.1.0/ruby/internal/anyargs.h:337:142: note: expanded from macro 'rb_define_module_function'
337 | #define rb_define_module_function(mod, mid, func, arity) RBIMPL_ANYARGS_DISPATCH_rb_define_module_function((arity), (func))((mod), (mid), (func), (arity))
| ^~~~~~
/Users/diego/.asdf/installs/ruby/3.1.2/include/ruby-3.1.0/ruby/internal/anyargs.h:273:1: note: passing argument to parameter here
273 | RBIMPL_ANYARGS_DECL(rb_define_module_function, VALUE, const char *)
| ^
/Users/diego.asdf/installs/ruby/3.1.2/include/ruby-3.1.0/ruby/internal/anyargs.h:255:72: note: expanded from macro 'RBIMPL_ANYARGS_DECL'
255 | RBIMPL_ANYARGS_ATTRSET(sym) static void sym ## _01(__VA_ARGS__, VALUE(*)(VALUE, VALUE), int); \
| ^
1 warning and 2 errors generated.
make: *** [debase_internals.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/diego/vendor/bundle/ruby/3.1.0/gems/debase-0.2.6 for inspection. |
0.2.7 does not fix the issue I mentioned above. Log
|
@ZimbiX those errors are in ruby headers, we can't fix them. The only way is to disable the compiler error failing, see comments above. |
I saw the problem was reported on this issue #76. Even though it has been closed, but I saw different issue when installing that package with ruby 3.3.4
this is the error I got
debase_internals.c:770:3: error: incompatible function pointer types passing 'void (VALUE, VALUE)' (aka 'void (unsigned long, unsigned long)') to parameter of type 'VALUE ()(VALUE, VALUE)' (aka 'unsigned long ()(unsigned long, unsigned long)') [-Wincompatible-function-pointer-types]
The text was updated successfully, but these errors were encountered: