mberlanda / cheidelacoriera

This Rails application aims to become a management system for away fans.
GNU General Public License v3.0
2 stars 1 forks source link

chore: upgrade to bullseye and ruby 2.7.8 #254

Closed mberlanda closed 1 year ago

mberlanda commented 1 year ago

Revision 1

mberlanda commented 1 year ago

In CI/CD it fails to build mini-racer:

bundle install output

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/home/runner/work/cheidelacoriera/cheidelacoriera/vendor/bundle/ruby/2.7.0/gems/mini_racer-0.6.0/ext/mini_racer_extension
/opt/hostedtoolcache/Ruby/2.7.8/x64/bin/ruby -I
/opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/2.7.0 -r
./siteconf20230723-1711-17c9zhk.rb extconf.rb
checking for -lpthread... yes
creating Makefile

current directory:
/home/runner/work/cheidelacoriera/cheidelacoriera/vendor/bundle/ruby/2.7.0/gems/mini_racer-0.6.0/ext/mini_racer_extension
make "DESTDIR=" clean

current directory:
/home/runner/work/cheidelacoriera/cheidelacoriera/vendor/bundle/ruby/2.7.0/gems/mini_racer-0.6.0/ext/mini_racer_extension
make "DESTDIR="
compiling mini_racer_extension.cc
In file included from
/home/runner/work/cheidelacoriera/cheidelacoriera/vendor/bundle/ruby/2.7.0/gems/libv8-node-16.10.0.0-x86_64-linux-musl/vendor/v8/include/v8.h:30,
                 from mini_racer_extension.cc:5:
/home/runner/work/cheidelacoriera/cheidelacoriera/vendor/bundle/ruby/2.7.0/gems/libv8-node-16.10.0.0-x86_64-linux-musl/vendor/v8/include/v8-internal.h:
In function ‘VALUE convert_v8_to_ruby(v8::Isolate*, v8::Local<v8::Context>,
v8::Local<v8::Value>)’:
/home/runner/work/cheidelacoriera/cheidelacoriera/vendor/bundle/ruby/2.7.0/gems/libv8-node-16.10.0.0-x86_64-linux-musl/vendor/v8/include/v8-internal.h:364:48:
warning: ‘stackCounter.StackCounter::isolate’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
  364 |     return *reinterpret_cast<void* const*>(addr);
      |                                                ^
mini_racer_extension.cc:556:18: note: ‘stackCounter.StackCounter::isolate’ was
declared here
  556 |     StackCounter stackCounter(isolate);
      |                  ^~~~~~~~~~~~
linking shared-object mini_racer_extension.so
/usr/bin/ld: cannot find
/home/runner/work/cheidelacoriera/cheidelacoriera/vendor/bundle/ruby/2.7.0/gems/libv8-node-16.10.0.0-x86_64-linux-musl/vendor/v8/x86_64-linux/libv8/obj/libv8_monolith.a:
No such file or directory
collect2: error: ld returned 1 exit status
make: *** [Makefile:263: mini_racer_extension.so] Error 1

make failed, exit code 2

Gem files will remain installed in
/home/runner/work/cheidelacoriera/cheidelacoriera/vendor/bundle/ruby/2.7.0/gems/mini_racer-0.6.0
for inspection.
Results logged to
/home/runner/work/cheidelacoriera/cheidelacoriera/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/mini_racer-0.6.0/gem_make.out

/opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/2.7.0/rubygems/ext/builder.rb:99:in
`run'
/opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/2.7.0/rubygems/ext/builder.rb:51:in
`block in make'
/opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/2.7.0/rubygems/ext/builder.rb:43:in
`each'
/opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/2.7.0/rubygems/ext/builder.rb:43:in
`make'
/opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/2.7.0/rubygems/ext/ext_conf_builder.rb:63:in
`block in build'
  /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/2.7.0/tempfile.rb:291:in `open'
/opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/2.7.0/rubygems/ext/ext_conf_builder.rb:30:in
`build'
/opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/2.7.0/rubygems/ext/builder.rb:169:in
`block in build_extension'
/opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/2.7.0/rubygems/ext/builder.rb:165:in
`synchronize'
/opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/2.7.0/rubygems/ext/builder.rb:165:in
`build_extension'
/opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/2.7.0/rubygems/ext/builder.rb:210:in
`block in build_extensions'
/opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/2.7.0/rubygems/ext/builder.rb:207:in
`each'
/opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/2.7.0/rubygems/ext/builder.rb:207:in
`build_extensions'
/opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/2.7.0/rubygems/installer.rb:844:in
`build_extensions'
/opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/bundler-2.3.8/lib/bundler/rubygems_gem_installer.rb:71:in
`build_extensions'
/opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/bundler-2.3.8/lib/bundler/rubygems_gem_installer.rb:28:in
`install'
/opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/bundler-2.3.8/lib/bundler/source/rubygems.rb:204:in
`install'
/opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/bundler-2.3.8/lib/bundler/installer/gem_installer.rb:54:in
`install'
/opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/bundler-2.3.8/lib/bundler/installer/gem_installer.rb:16:in
`install_from_spec'
/opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/bundler-2.3.8/lib/bundler/installer/parallel_installer.rb:186:in
`do_install'
/opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/bundler-2.3.8/lib/bundler/installer/parallel_installer.rb:177:in
`block in worker_pool'
/opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/bundler-2.3.8/lib/bundler/worker.rb:62:in
`apply_func'
/opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/bundler-2.3.8/lib/bundler/worker.rb:57:in
`block in process_queue'
/opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/bundler-2.3.8/lib/bundler/worker.rb:54:in
`loop'
/opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/bundler-2.3.8/lib/bundler/worker.rb:54:in
`process_queue'
/opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/gems/2.7.0/gems/bundler-2.3.8/lib/bundler/worker.rb:91:in
`block (2 levels) in create_threads'

An error occurred while installing mini_racer (0.6.0), and Bundler cannot
continue.

In Gemfile:
  mini_racer
Error: The process '/opt/hostedtoolcache/Ruby/2.7.8/x64/bin/bundle' failed with exit code 5

docker build

#13 205.2 current directory:
#13 205.2 /app/cheidelacoriera/vendor/bundle/ruby/2.7.0/gems/mini_racer-0.6.0/ext/mini_racer_extension
#13 205.2 make "DESTDIR="
#13 205.2 compiling mini_racer_extension.cc
#13 205.2 In file included from /usr/local/include/ruby-2.7.0/ruby/ruby.h:2865,
#13 205.2                  from /usr/local/include/ruby-2.7.0/ruby.h:33,
#13 205.2                  from mini_racer_extension.cc:2:
#13 205.2 /usr/local/include/ruby-2.7.0/ruby/backward/cxxanyargs.hpp: In function ‘VALUE
#13 205.2 ruby::backward::cxxanyargs::rb_rescue(VALUE (*)(...), VALUE, VALUE (*)(...),
#13 205.2 VALUE)’:
#13 205.2 /usr/local/include/ruby-2.7.0/ruby/backward/cxxanyargs.hpp:202:14: warning:
#13 205.2 ‘VALUE ruby::backward::cxxanyargs::rb_rescue(VALUE (*)(...), VALUE, VALUE
#13 205.2 (*)(...), VALUE)’ is deprecated: Use of ANYARGS in this function is deprecated
#13 205.2 [-Wdeprecated-declarations]
#13 205.2   202 |     func1_t *t = reinterpret_cast<func1_t*>(q);
#13 205.2       |              ^
#13 205.2 /usr/local/include/ruby-2.7.0/ruby/backward/cxxanyargs.hpp:198:1: note: declared
#13 205.2 here
#13 205.2   198 | rb_rescue(type *q, VALUE w, type *e, VALUE r)
#13 205.2       | ^~~~~~~~~
#13 205.2 /usr/local/include/ruby-2.7.0/ruby/backward/cxxanyargs.hpp:202:42: warning:
#13 205.2 ‘VALUE ruby::backward::cxxanyargs::rb_rescue(VALUE (*)(...), VALUE, VALUE
#13 205.2 (*)(...), VALUE)’ is deprecated: Use of ANYARGS in this function is deprecated
#13 205.2 [-Wdeprecated-declarations]
#13 205.2   202 |     func1_t *t = reinterpret_cast<func1_t*>(q);
#13 205.2   /usr/local/lib/ruby/2.7.0/rubygems/ext/builder.rb:43:in `make'
#13 205.2 /usr/local/lib/ruby/2.7.0/rubygems/ext/ext_conf_builder.rb:63:in `block in
#13 205.2 build'
#13 205.2   /usr/local/lib/ruby/2.7.0/tempfile.rb:291:in `open'
#13 205.2   /usr/local/lib/ruby/2.7.0/rubygems/ext/ext_conf_builder.rb:30:in `build'
#13 205.2 /usr/local/lib/ruby/2.7.0/rubygems/ext/builder.rb:169:in `block in
#13 205.2 build_extension'
#13 205.2   /usr/local/lib/ruby/2.7.0/rubygems/ext/builder.rb:165:in `synchronize'
#13 205.2   /usr/local/lib/ruby/2.7.0/rubygems/ext/builder.rb:165:in `build_extension'
#13 205.2 /usr/local/lib/ruby/2.7.0/rubygems/ext/builder.rb:210:in `block in
#13 205.2 build_extensions'
#13 205.2   /usr/local/lib/ruby/2.7.0/rubygems/ext/builder.rb:207:in `each'
#13 205.2   /usr/local/lib/ruby/2.7.0/rubygems/ext/builder.rb:207:in `build_extensions'
#13 205.2   /usr/local/lib/ruby/2.7.0/rubygems/installer.rb:844:in `build_extensions'
#13 205.2 /usr/local/bundle/gems/bundler-2.3.8/lib/bundler/rubygems_gem_installer.rb:71:in
#13 205.2 `build_extensions'
#13 205.2 /usr/local/bundle/gems/bundler-2.3.8/lib/bundler/rubygems_gem_installer.rb:28:in
#13 205.2 `install'
#13 205.2 /usr/local/bundle/gems/bundler-2.3.8/lib/bundler/source/rubygems.rb:204:in
#13 205.2 `install'
#13 205.2 /usr/local/bundle/gems/bundler-2.3.8/lib/bundler/installer/gem_installer.rb:54:in
#13 205.2 `install'
#13 205.2 /usr/local/bundle/gems/bundler-2.3.8/lib/bundler/installer/gem_installer.rb:16:in
#13 205.2 `install_from_spec'
#13 205.2 /usr/local/bundle/gems/bundler-2.3.8/lib/bundler/installer/parallel_installer.rb:186:in
#13 205.2 `do_install'
#13 205.2 /usr/local/bundle/gems/bundler-2.3.8/lib/bundler/installer/parallel_installer.rb:177:in
#13 205.2 `block in worker_pool'
#13 205.2   /usr/local/bundle/gems/bundler-2.3.8/lib/bundler/worker.rb:62:in `apply_func'
#13 205.2 /usr/local/bundle/gems/bundler-2.3.8/lib/bundler/worker.rb:57:in `block in
#13 205.2 process_queue'
#13 205.2   /usr/local/bundle/gems/bundler-2.3.8/lib/bundler/worker.rb:54:in `loop'
#13 205.2 /usr/local/bundle/gems/bundler-2.3.8/lib/bundler/worker.rb:54:in
#13 205.2 `process_queue'
#13 205.2 /usr/local/bundle/gems/bundler-2.3.8/lib/bundler/worker.rb:91:in `block (2
#13 205.2 levels) in create_threads'
#13 205.2 
#13 205.2 An error occurred while installing mini_racer (0.6.0), and Bundler cannot
#13 205.2 continue.
#13 205.2 
#13 205.2 In Gemfile:
#13 205.2   mini_racer
#13 205.7 The following gems are missing
#13 205.7  * mini_racer (0.6.0)
#13 205.7 Install missing gems with `bundle install`
#13 ERROR: process "/bin/sh -c bundle config set deployment 'true' &&     bundle config set no-cache 'true' &&     bundle config set without 'development test lint' &&     bundle install --jobs 4 || bundle check" did not complete successfully: exit code: 1