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

Unable to install due to error #508

Open
genehshawnee opened this issue Aug 10, 2021 · 1 comment
Open

Unable to install due to error #508

genehshawnee opened this issue Aug 10, 2021 · 1 comment

Comments

@genehshawnee
Copy link

I am trying to install on a ubuntu vm. I am getting everything before Byebug 6.0.0 to install via bundle install. I have updated, and rebooted. Here is the dump of the error

current directory: /var/lib/gems/2.7.0/gems/byebug-6.0.0/ext/byebug
/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20210810-10180-nclsvs.rb extconf.rb
creating Makefile

current directory: /var/lib/gems/2.7.0/gems/byebug-6.0.0/ext/byebug
make "DESTDIR=" clean

current directory: /var/lib/gems/2.7.0/gems/byebug-6.0.0/ext/byebug
make "DESTDIR="
compiling breakpoint.c
compiling byebug.c
compiling context.c
context.c: In function ‘call_with_debug_inspector’:
context.c:190:20: error: passing argument 1 of ‘rb_ensure’ from incompatible pointer type [-Werror=incompatible-pointer-types]
190 | return rb_ensure(open_debug_inspector, (VALUE) data, close_debug_inspector,
| ^~~~~~~~~~~~~~~~~~~~
| |
| VALUE ()(struct call_with_inspection_data ) {aka long unsigned int ()(struct call_with_inspection_data )}
In file included from /usr/include/ruby-2.7.0/ruby.h:33,
from ./byebug.h:4,
from context.c:1:
/usr/include/ruby-2.7.0/ruby/ruby.h:1990:17: note: expected ‘VALUE (
)(VALUE)’ {aka ‘long unsigned int (
)(long unsigned int)’} but argument is of type ‘VALUE ()(struct call_with_inspection_data )’ {aka ‘long unsigned int ()(struct call_with_inspection_data )’}
1990 | VALUE rb_ensure(VALUE(
)(VALUE),VALUE,VALUE(
)(VALUE),VALUE);
| ^~~~~~~~~~~~~~~
context.c:190:56: error: passing argument 3 of ‘rb_ensure’ from incompatible pointer type [-Werror=incompatible-pointer-types]
190 | return rb_ensure(open_debug_inspector, (VALUE) data, close_debug_inspector,
| ^~~~~~~~~~~~~~~~~~~~~
| |
| VALUE ()(struct call_with_inspection_data ) {aka long unsigned int ()(struct call_with_inspection_data )}
In file included from /usr/include/ruby-2.7.0/ruby.h:33,
from ./byebug.h:4,
from context.c:1:
/usr/include/ruby-2.7.0/ruby/ruby.h:1990:39: note: expected ‘VALUE (
)(VALUE)’ {aka ‘long unsigned int (
)(long unsigned int)’} but argument is of type ‘VALUE ()(struct call_with_inspection_data )’ {aka ‘long unsigned int ()(struct call_with_inspection_data )’}
1990 | VALUE rb_ensure(VALUE(
)(VALUE),VALUE,VALUE(
)(VALUE),VALUE);
| ^~~~~~~~~~~~~~~
In file included from /usr/include/ruby-2.7.0/ruby/ruby.h:2148,
from /usr/include/ruby-2.7.0/ruby.h:33,
from ./byebug.h:4,
from context.c:1:
context.c: In function ‘Init_context’:
/usr/include/ruby-2.7.0/ruby/intern.h:1218:137: error: passing argument 3 of ‘rb_define_singleton_method1’ from incompatible pointer type [-Werror=incompatible-pointer-types]
1218 | #define rb_define_singleton_method(klass, mid, func, arity) rb_define_singleton_method_choose_prototypem3((arity),(func))((klass),(mid),(func),(arity));
| ^~~~~~
| |
| VALUE ()(VALUE) {aka long unsigned int ()(long unsigned int)}
context.c:672:3: note: in expansion of macro ‘rb_define_singleton_method’
672 | rb_define_singleton_method(cDebugThread, "inherited", dt_inherited, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/ruby-2.7.0/ruby/intern.h:1195:27: note: expected ‘VALUE ()(VALUE, VALUE)’ {aka ‘long unsigned int ()(long unsigned int, long unsigned int)’} but argument is of type ‘VALUE ()(VALUE)’ {aka ‘long unsigned int ()(long unsigned int)’}
1195 | RB_METHOD_DEFINITION_DECL(rb_define_singleton_method, (2,3), (VALUE klass, const char *name), (klass, name))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/ruby-2.7.0/ruby/intern.h:1042:82: note: in definition of macro ‘RB_METHOD_DEFINITION_DECL_C’
1042 | attribute((unused,weakref(#def),nonnull nonnull))static void defname(RB_UNWRAP_MACRO decl,VALUE(*func)funcargs,int arity);
| ^~~~~~~
/usr/include/ruby-2.7.0/ruby/intern.h:1075:1: note: in expansion of macro ‘RB_METHOD_DEFINITION_DECL_1’
1075 | RB_METHOD_DEFINITION_DECL_1(def,nonnull,def##1 ,1 ,decl,vars,(VALUE,VALUE))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/ruby-2.7.0/ruby/intern.h:1195:1: note: in expansion of macro ‘RB_METHOD_DEFINITION_DECL’
1195 | RB_METHOD_DEFINITION_DECL(rb_define_singleton_method, (2,3), (VALUE klass, const char *name), (klass, name))
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:245: context.o] Error 1

make failed, exit code 2

@Earthquake939
Copy link

There are some dependencies for bundler on rails version 3.0.0, try with that version and not the 2.7.0

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