-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
I failed to install ppl and I got a return that I don't understand at all.
$ gem install ppl
Building native extensions. This could take a while...
ERROR: Error installing ppl:
ERROR: Failed to build gem native extension.
current directory: /home/porter14/gems/gems/rugged-0.24.6.1/ext/rugged
/usr/bin/ruby2.7 -I /usr/lib/ruby/vendor_ruby -r ./siteconf20230423-3970-qvl1zn.rb extconf.rb
checking for gmake... yes
checking for cmake... yes
checking for pkg-config... yes
-- cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo -G "Unix Makefiles"
-- /usr/bin/gmake
checking for -lgit2... yes
checking for git2.h... yes
creating Makefile
current directory: /home/porter14/gems/gems/rugged-0.24.6.1/ext/rugged
make DESTDIR\= clean
current directory: /home/porter14/gems/gems/rugged-0.24.6.1/ext/rugged
make DESTDIR\=
compiling rugged.c
rugged.c: In function ‘rb_git_minimize_oid’:
rugged.c:309:31: warning: passing argument 3 of ‘rb_iterate’ from incompatible pointer type [-Wincompatible-pointer-types]
309 | rb_iterate(rb_each, rb_enum, &minimize_cb, (VALUE)shrt);
| ^~~~~~~~~~~~
| |
| VALUE (*)(VALUE, git_oid_shorten *) {aka long unsigned int (*)(long unsigned int, git_oid_shorten *)}
In file included from /usr/include/ruby-2.7.0/ruby.h:33,
from rugged.h:33,
from rugged.c:25:
/usr/include/ruby-2.7.0/ruby/ruby.h:1984:40: note: expected ‘rb_block_call_func_t’ {aka ‘long unsigned int (*)(long unsigned int, long unsigned int, int, const long unsigned int *, long unsigned int)’} but argument is of type ‘VALUE (*)(VALUE, git_oid_shorten *)’ {aka ‘long unsigned int (*)(long unsigned int, git_oid_shorten *)’}
1984 | VALUE rb_iterate(VALUE(*)(VALUE),VALUE,rb_block_call_func_t,VALUE);
| ^~~~~~~~~~~~~~~~~~~~
rugged.c:321:32: warning: passing argument 3 of ‘rb_iterate’ from incompatible pointer type [-Wincompatible-pointer-types]
321 | rb_iterate(rb_each, rb_enum, &minimize_yield, (VALUE)yield_data);
| ^~~~~~~~~~~~~~~
| |
| VALUE (*)(VALUE, VALUE *) {aka long unsigned int (*)(long unsigned int, long unsigned int *)}
In file included from /usr/include/ruby-2.7.0/ruby.h:33,
from rugged.h:33,
from rugged.c:25:
/usr/include/ruby-2.7.0/ruby/ruby.h:1984:40: note: expected ‘rb_block_call_func_t’ {aka ‘long unsigned int (*)(long unsigned int, long unsigned int, int, const long unsigned int *, long unsigned int)’} but argument is of type ‘VALUE (*)(VALUE, VALUE *)’ {aka ‘long unsigned int (*)(long unsigned int, long unsigned int *)’}
1984 | VALUE rb_iterate(VALUE(*)(VALUE),VALUE,rb_block_call_func_t,VALUE);
| ^~~~~~~~~~~~~~~~~~~~
compiling rugged_backend.c
compiling rugged_blame.c
In file included from /usr/include/ruby-2.7.0/ruby.h:33,
from rugged.h:33,
from rugged_blame.c:25:
rugged_blame.c: In function ‘rb_git_blame_each’:
/usr/include/ruby-2.7.0/ruby/ruby.h:1871:3: error: call to ‘rb_varargs_bad_length’ declared with attribute error: argument length doesn't match
1871 | rb_varargs_bad_length(argc, vargc)), \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/ruby-2.7.0/ruby/ruby.h:2690:6: note: in expansion of macro ‘rb_varargs_argc_check’
2690 | rb_varargs_argc_check(rb_funcall_argc, rb_funcall_nargs), \
| ^~~~~~~~~~~~~~~~~~~~~
rugged_blame.c:263:10: note: in expansion of macro ‘rb_funcall’
263 | return rb_funcall(self, rb_intern("to_enum"), 1, CSTR2SYM("each"), self);
| ^~~~~~~~~~
make: *** [Makefile:245: rugged_blame.o] Error 1
make failed, exit code 2
Gem files will remain installed in /home/porter14/gems/gems/rugged-0.24.6.1 for inspection.
Results logged to /home/porter14/gems/extensions/x86_64-linux/2.7.0/rugged-0.24.6.1/gem_make.out
I hope you can help with this.
Metadata
Metadata
Assignees
Labels
No labels