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

Byebug is not installing in mac m2 version 11.0.1 #849

Open
SDeode opened this issue May 9, 2024 · 2 comments
Open

Byebug is not installing in mac m2 version 11.0.1 #849

SDeode opened this issue May 9, 2024 · 2 comments

Comments

@SDeode
Copy link

SDeode commented May 9, 2024

I am installing byebug 11.0.1 using rbenv 2.7.7 for our local project but it's keep failing.
Error that I am seeing is -
context.c:190:20: error: incompatible function pointer types passing 'VALUE (struct call_with_inspection_data )' (aka 'unsigned long (struct call_with_inspection_data )') to parameter of type 'VALUE ()(VALUE)' (aka 'unsigned long ()(unsigned long)') [-Wincompatible-function-pointer-types]
return rb_ensure(open_debug_inspector, (VALUE)data, close_debug_inspector,
^~~~~~~~~~~~~~~~~~~~
/Users/sumitsinghdeode/.rbenv/versions/2.7.7/include/ruby-2.7.0/ruby/ruby.h:1992:24: note: passing argument to parameter here
VALUE rb_ensure(VALUE()(VALUE),VALUE,VALUE()(VALUE),VALUE);

Expected behavior

It should get installed

Actual behavior

I am trying to install using gem install byebug -v 11.0.1 it's failing

Steps to reproduce the problem

Just try the gem install

@SDeode
Copy link
Author

SDeode commented May 9, 2024

Make output
current directory: /Users/sumitsinghdeode/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/byebug-11.0.1/ext/byebug
/Users/sumitsinghdeode/.rbenv/versions/2.7.7/bin/ruby -I /Users/sumitsinghdeode/.rbenv/versions/2.7.7/lib/ruby/2.7.0 -r ./siteconf20240509-87608-hjaq58.rb extconf.rb
creating Makefile

current directory: /Users/sumitsinghdeode/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/byebug-11.0.1/ext/byebug
make "DESTDIR=" clean

current directory: /Users/sumitsinghdeode/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/byebug-11.0.1/ext/byebug
make "DESTDIR="
compiling breakpoint.c
compiling byebug.c
compiling context.c
context.c:190:20: error: incompatible function pointer types passing 'VALUE (struct call_with_inspection_data )' (aka 'unsigned long (struct call_with_inspection_data )') to parameter of type 'VALUE ()(VALUE)' (aka 'unsigned long ()(unsigned long)') [-Wincompatible-function-pointer-types]
return rb_ensure(open_debug_inspector, (VALUE)data, close_debug_inspector,
^~~~~~~~~~~~~~~~~~~~
/Users/sumitsinghdeode/.rbenv/versions/2.7.7/include/ruby-2.7.0/ruby/ruby.h:1992:24: note: passing argument to parameter here
VALUE rb_ensure(VALUE()(VALUE),VALUE,VALUE()(VALUE),VALUE);
^
context.c:190:55: error: incompatible function pointer types passing 'VALUE (struct call_with_inspection_data )' (aka 'unsigned long (struct call_with_inspection_data )') to parameter of type 'VALUE ()(VALUE)' (aka 'unsigned long ()(unsigned long)') [-Wincompatible-function-pointer-types]
return rb_ensure(open_debug_inspector, (VALUE)data, close_debug_inspector,
^~~~~~~~~~~~~~~~~~~~~
/Users/sumitsinghdeode/.rbenv/versions/2.7.7/include/ruby-2.7.0/ruby/ruby.h:1992:46: note: passing argument to parameter here
VALUE rb_ensure(VALUE()(VALUE),VALUE,VALUE()(VALUE),VALUE);
^
context.c:672:3: error: incompatible function pointer types passing 'VALUE (VALUE)' (aka 'unsigned long (unsigned long)') to parameter of type 'VALUE ()(VALUE, VALUE)' (aka 'unsigned long ()(unsigned long, unsigned long)') [-Wincompatible-function-pointer-types]
rb_define_singleton_method(cDebugThread, "inherited", dt_inherited, 1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sumitsinghdeode/.rbenv/versions/2.7.7/include/ruby-2.7.0/ruby/intern.h:1218:137: note: expanded from macro 'rb_define_singleton_method'
#define rb_define_singleton_method(klass, mid, func, arity) rb_define_singleton_method_choose_prototypem3((arity),(func))((klass),(mid),(func),(arity));
^~~~~~
/Users/sumitsinghdeode/.rbenv/versions/2.7.7/include/ruby-2.7.0/ruby/intern.h:1195:1: note: passing argument to parameter 'func' here
RB_METHOD_DEFINITION_DECL(rb_define_singleton_method, (2,3), (VALUE klass, const char *name), (klass, name))
^
/Users/sumitsinghdeode/.rbenv/versions/2.7.7/include/ruby-2.7.0/ruby/intern.h:1074:71: note: expanded from macro 'RB_METHOD_DEFINITION_DECL'
RB_METHOD_DEFINITION_DECL_1(def,nonnull,def##0 ,0 ,decl,vars,(VALUE))
^
/Users/sumitsinghdeode/.rbenv/versions/2.7.7/include/ruby-2.7.0/ruby/intern.h:1069:5: note: expanded from macro '
RB_METHOD_DEFINITION_DECL_1'
RB_METHOD_DEFINITION_DECL_C(def,nonnull,defname,decl,vars,funcargs)
^
/Users/sumitsinghdeode/.rbenv/versions/2.7.7/include/ruby-2.7.0/ruby/intern.h:1042:118: note: expanded from macro 'RB_METHOD_DEFINITION_DECL_C'
attribute((unused,weakref(#def),nonnull nonnull))static void defname(RB_UNWRAP_MACRO decl,VALUE(*func)funcargs,int arity);
^
3 errors generated.
make: *** [context.o] Error 1

make failed, exit code 2

@jalaj-hn
Copy link

jalaj-hn commented Jun 6, 2024

Any update on this? I am also not able to install 11.0.1 on my M1 mac (Sonoma 14.5). But updating to 11.1.3 fixes the issue.

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