arthurnn / arthurnn/code-scanning-rubocop
"Install dependencies" step of GitHub Action fails
- Dominant language
- Ruby
- Stars
- 20
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
cooljeanius/explore#21 is currently failing due to:
```
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/gems/3.2.0/gems/yajl-ruby-1.1.0/ext/yajl
/opt/hostedtoolcache/Ruby/3.2.2/x64/bin/ruby extconf.rb
creating Makefile
current directory:
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/gems/3.2.0/gems/yajl-ruby-1.1.0/ext/yajl
make DESTDIR\= sitearchdir\=./.gem.20240808-3144-qr1e12
sitelibdir\=./.gem.20240808-3144-qr1e12 clean
current directory:
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/gems/3.2.0/gems/yajl-ruby-1.1.0/ext/yajl
make DESTDIR\= sitearchdir\=./.gem.20240808-3144-qr1e12
sitelibdir\=./.gem.20240808-3144-qr1e12
compiling yajl.c
compiling yajl_alloc.c
compiling yajl_buf.c
compiling yajl_encode.c
compiling yajl_ext.c
yajl_ext.c: In function ‘yajl_encode_part’:
yajl_ext.c:117:21: warning: variable ‘status’ set but not used
[-Wunused-but-set-variable]
117 | yajl_gen_status status;
| ^~~~~~
yajl_ext.c: In function ‘rb_yajl_parser_parse’:
yajl_ext.c:442:17: warning: variable ‘stat’ set but not used
[-Wunused-but-set-variable]
442 | yajl_status stat;
| ^~~~
In file included from
/opt/hostedtoolcache/Ruby/3.2.2/x64/include/ruby-3.2.0/ruby/ruby.h:27,
from
/opt/hostedtoolcache/Ruby/3.2.2/x64/include/ruby-3.2.0/ruby.h:38,
from yajl_ext.h:32,
from yajl_ext.c:24:
yajl_ext.c: In function ‘rb_yajl_encoder_enable_json_gem_ext’:
yajl_ext.c:852:22: error: ‘rb_cFixnum’ undeclared (first use in this function);
did you mean ‘rb_cFile’?
852 | rb_define_method(rb_cFixnum, "to_json",
rb_yajl_json_ext_fixnum_to_json, -1);
| ^~~~~~~~~~
/opt/hostedtoolcache/Ruby/3.2.2/x64/include/ruby-3.2.0/ruby/internal/anyargs.h:288:120:
note: in definition of macro ‘rb_define_method’
288 | #define rb_define_method(klass, mid, func, arity)
RBIMPL_ANYARGS_DISPATCH_rb_define_method((arity), (func))((klass), (mid),
(func), (arity))
|
^~~~~
yajl_ext.c:852:22: note: each undeclared identifier is reported only once for
each function it appears in
852 | rb_define_method(rb_cFixnum, "to_json",
rb_yajl_json_ext_fixnum_to_json, -1);
| ^~~~~~~~~~
/opt/hostedtoolcache/Ruby/3.2.2/x64/include/ruby-3.2.0/ruby/internal/anyargs.h:288:120:
note: in definition of macro ‘rb_define_method’
288 | #define rb_define_method(klass, mid, func, arity)
RBIMPL_ANYARGS_DISPATCH_rb_define_method((arity), (func))((klass), (mid),
(func), (arity))
|
^~~~~
yajl_ext.c: In function ‘Init_yajl’:
yajl_ext.c:863:6: warning: old-style function definition
[-Wold-style-definition]
863 | void Init_yajl() {
| ^~~~~~~~~
yajl_ext.c: At top level:
cc1: note: unrecognized command-line option ‘-Wno-self-assign’ may have been
intended to silence earlier diagnostics
cc1: note: unrecognized command-line option ‘-Wno-parentheses-equality’ may have
been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option ‘-Wno-constant-logical-operand’ may
have been intended to silence earlier diagnostics
make: *** [Makefile:248: yajl_ext.o] Error 1
make failed, exit code 2
Gem files will remain installed in
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/gems/3.2.0/gems/yajl-ruby-1.1.0 for
inspection.
Results logged to
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/gems/3.2.0/extensions/x86_64-linux/3.2.0/yajl-ruby-1.1.0/gem_make.out
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/3.2.0/rubygems/ext/builder.rb:119:in
`run'
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/3.2.0/rubygems/ext/builder.rb:51:in
`block in make'
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/3.2.0/rubygems/ext/builder.rb:43:in
`each'
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/3.2.0/rubygems/ext/builder.rb:43:in
`make'
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/3.2.0/rubygems/ext/ext_conf_builder.rb:41:in
`build'
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/3.2.0/rubygems/ext/builder.rb:187:in
`build_extension'
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/3.2.0/rubygems/ext/builder.rb:221:in
`block in build_extensions'
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/3.2.0/rubygems/ext/builder.rb:218:in
`each'
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/3.2.0/rubygems/ext/builder.rb:218:in
`build_extensions'
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/3.2.0/rubygems/installer.rb:843:in
`build_extensions'
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/3.2.0/bundler/rubygems_gem_installer.rb:72:in
`build_extensions'
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/3.2.0/bundler/rubygems_gem_installer.rb:28:in
`install'
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/3.2.0/bundler/source/rubygems.rb:200:in
`install'
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/3.2.0/bundler/installer/gem_installer.rb:54:in
`install'
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/3.2.0/bundler/installer/gem_installer.rb:16:in
`install_from_spec'
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/3.2.0/bundler/installer/parallel_installer.rb:156:in
`do_install'
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/3.2.0/bundler/installer/parallel_installer.rb:147:in
`block in worker_pool'
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/3.2.0/bundler/worker.rb:62:in
`apply_func'
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/3.2.0/bundler/worker.rb:57:in
`block in process_queue'
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/3.2.0/bundler/worker.rb:54:in
`loop'
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/3.2.0/bundler/worker.rb:54:in
`process_queue'
/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/3.2.0/bundler/worker.rb:90:in
`block (2 levels) in create_threads'
An error occurred while installing yajl-ruby (1.1.0), and Bundler cannot
continue.
In Gemfile:
github-pages was resolved to 28, which depends on
jekyll-mentions was resolved to 0.1.3, which depends on
jekyll was resolved to 2.4.0, which depends on
pygments.rb was resolved to 0.6.0, which depends on
yajl-ruby
Error: Process completed with exit code 5.
```
I think this is due to either brianmario/yajl-ruby#116 and/or brianmario/yajl-ruby#164 (not quite sure which)...
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the GitHub Actions “Install dependencies” step and the Gemfile dependency chain shown in the report, especially github-pages → jekyll → pygments.rb → yajl-ruby. Reproduce the failure under Ruby 3.2 and verify that dependency installation completes successfully in the action.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, jekyll, ruby
- Domain
- build-system, ci-cd
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100