sqreen / ruby-agent

Sqreen agent for Ruby
2 stars 2 forks source link

Cannot install 1.25.0 on Github CI #7

Open davidwessman opened 2 years ago

davidwessman commented 2 years ago

Locally I manage to install it, but on CI (ubuntu-20.04) it fails with:

bundle install log ```sh 2022-02-07T08:00:19.2302425Z ##[group]Run ruby/setup-ruby@v1 2022-02-07T08:00:19.2302699Z with: 2022-02-07T08:00:19.2302936Z bundler-cache: true 2022-02-07T08:00:19.2303187Z ruby-version: default 2022-02-07T08:00:19.2303435Z bundler: default 2022-02-07T08:00:19.2303687Z working-directory: . 2022-02-07T08:00:19.2303941Z cache-version: 0 2022-02-07T08:00:19.2304185Z ##[endgroup] 2022-02-07T08:00:19.3942131Z Using 2.6.9 as input from file .ruby-version 2022-02-07T08:00:19.3989021Z ##[group]Modifying PATH 2022-02-07T08:00:19.3992723Z Entries added to PATH to use selected Ruby: 2022-02-07T08:00:19.3996032Z /opt/hostedtoolcache/Ruby/2.6.9/x64/bin 2022-02-07T08:00:19.3999878Z ##[endgroup] 2022-02-07T08:00:19.4014046Z ##[group]Print Ruby version 2022-02-07T08:00:19.4065434Z [command]/opt/hostedtoolcache/Ruby/2.6.9/x64/bin/ruby --version 2022-02-07T08:00:19.6738287Z ruby 2.6.9p207 (2021-11-24 revision 67954) [x86_64-linux] 2022-02-07T08:00:19.6776259Z Took 0.28 seconds 2022-02-07T08:00:19.6781317Z ##[endgroup] 2022-02-07T08:00:19.6788105Z ##[group]Installing Bundler 2022-02-07T08:00:19.6809132Z Using Bundler 2.2.33 from Gemfile.lock BUNDLED WITH 2.2.33 2022-02-07T08:00:19.6819863Z [command]/opt/hostedtoolcache/Ruby/2.6.9/x64/bin/gem install bundler -v 2.2.33 2022-02-07T08:00:21.4060824Z Successfully installed bundler-2.2.33 2022-02-07T08:00:21.4061953Z 1 gem installed 2022-02-07T08:00:21.4094259Z Took 1.73 seconds 2022-02-07T08:00:21.4095296Z ##[endgroup] 2022-02-07T08:00:21.4097942Z ##[group]bundle install 2022-02-07T08:00:21.4116734Z [command]/opt/hostedtoolcache/Ruby/2.6.9/x64/bin/bundle config --local path /home/runner/work/uppstyrt/uppstyrt/vendor/bundle 2022-02-07T08:00:21.6184442Z [command]/opt/hostedtoolcache/Ruby/2.6.9/x64/bin/bundle config --local deployment true 2022-02-07T08:00:21.8113033Z Cache key: setup-ruby-bundler-cache-v3-ubuntu-20.04-ruby-2.6.9-Gemfile.lock-8fa2d32fbe77518300a9018671ee213f41007d27f9a9faa5855cfbffdb510ce9 2022-02-07T08:00:21.8835445Z [command]/opt/hostedtoolcache/Ruby/2.6.9/x64/bin/bundle install --jobs 4 2022-02-07T08:05:30.5426010Z Gem::Ext::BuildError: ERROR: Failed to build gem native extension. 2022-02-07T08:05:30.5427119Z 2022-02-07T08:05:30.5427948Z current directory: 2022-02-07T08:05:30.5429034Z /home/runner/work/uppstyrt/uppstyrt/vendor/bundle/ruby/2.6.0/gems/mini_racer-0.6.2/ext/mini_racer_extension 2022-02-07T08:05:30.5429896Z /opt/hostedtoolcache/Ruby/2.6.9/x64/bin/ruby -I 2022-02-07T08:05:30.5430463Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/2.6.0 -r 2022-02-07T08:05:30.5431063Z ./siteconf20220207-1628-a57wdy.rb extconf.rb 2022-02-07T08:05:30.5432171Z checking for -lpthread... yes 2022-02-07T08:05:30.5432517Z creating Makefile 2022-02-07T08:05:30.5432695Z 2022-02-07T08:05:30.5432802Z current directory: 2022-02-07T08:05:30.5433356Z /home/runner/work/uppstyrt/uppstyrt/vendor/bundle/ruby/2.6.0/gems/mini_racer-0.6.2/ext/mini_racer_extension 2022-02-07T08:05:30.5433736Z make "DESTDIR=" clean 2022-02-07T08:05:30.5433894Z 2022-02-07T08:05:30.5433997Z current directory: 2022-02-07T08:05:30.5434512Z /home/runner/work/uppstyrt/uppstyrt/vendor/bundle/ruby/2.6.0/gems/mini_racer-0.6.2/ext/mini_racer_extension 2022-02-07T08:05:30.5434882Z make "DESTDIR=" 2022-02-07T08:05:30.5435157Z compiling mini_racer_extension.cc 2022-02-07T08:05:30.5436121Z cc1plus: warning: command line option ‘-Wimplicit-int’ is valid for C/ObjC but 2022-02-07T08:05:30.5436477Z not for C++ 2022-02-07T08:05:30.5437046Z mini_racer_extension.cc: In function ‘VALUE convert_v8_to_ruby(v8::Isolate*, 2022-02-07T08:05:30.5437519Z v8::Local, v8::Local)’: 2022-02-07T08:05:30.5438088Z mini_racer_extension.cc:573:18: warning: ‘stackCounter.StackCounter::isolate’ 2022-02-07T08:05:30.5438665Z may be used uninitialized in this function [-Wmaybe-uninitialized] 2022-02-07T08:05:30.5439051Z 573 | StackCounter stackCounter(isolate); 2022-02-07T08:05:30.5439322Z | ^~~~~~~~~~~~ 2022-02-07T08:05:30.5439576Z At global scope: 2022-02-07T08:05:30.5440039Z cc1plus: warning: unrecognized command line option ‘-Wno-self-assign’ 2022-02-07T08:05:30.5440630Z cc1plus: warning: unrecognized command line option ‘-Wno-parentheses-equality’ 2022-02-07T08:05:30.5441060Z cc1plus: warning: unrecognized command line option 2022-02-07T08:05:30.5441464Z ‘-Wno-constant-logical-operand’ 2022-02-07T08:05:30.5441900Z linking shared-object mini_racer_extension.so 2022-02-07T08:05:30.5442171Z g++: error: 2022-02-07T08:05:30.5442809Z /home/runner/work/uppstyrt/uppstyrt/vendor/bundle/ruby/2.6.0/gems/libv8-node-16.10.0.0-x86_64-linux/vendor/v8/x86_64-linux/libv8/obj/libv8_monolith.a: 2022-02-07T08:05:30.5443232Z No such file or directory 2022-02-07T08:05:30.5443550Z make: *** [Makefile:262: mini_racer_extension.so] Error 1 2022-02-07T08:05:30.5444086Z 2022-02-07T08:05:30.5444200Z make failed, exit code 2 2022-02-07T08:05:30.5444349Z 2022-02-07T08:05:30.5444478Z Gem files will remain installed in 2022-02-07T08:05:30.5445001Z /home/runner/work/uppstyrt/uppstyrt/vendor/bundle/ruby/2.6.0/gems/mini_racer-0.6.2 2022-02-07T08:05:30.5445398Z for inspection. 2022-02-07T08:05:30.5445625Z Results logged to 2022-02-07T08:05:30.5446188Z /home/runner/work/uppstyrt/uppstyrt/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/mini_racer-0.6.2/gem_make.out 2022-02-07T08:05:30.5446484Z 2022-02-07T08:05:30.5446672Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/2.6.0/rubygems/ext/builder.rb:99:in 2022-02-07T08:05:30.5446992Z `run' 2022-02-07T08:05:30.5447319Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/2.6.0/rubygems/ext/builder.rb:51:in 2022-02-07T08:05:30.5447630Z `block in make' 2022-02-07T08:05:30.5447967Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/2.6.0/rubygems/ext/builder.rb:43:in 2022-02-07T08:05:30.5448331Z `each' 2022-02-07T08:05:30.5448804Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/2.6.0/rubygems/ext/builder.rb:43:in 2022-02-07T08:05:30.5449102Z `make' 2022-02-07T08:05:30.5449433Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/2.6.0/rubygems/ext/ext_conf_builder.rb:62:in 2022-02-07T08:05:30.5449923Z `block in build' 2022-02-07T08:05:30.5450246Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/2.6.0/tempfile.rb:295:in `open' 2022-02-07T08:05:30.5450684Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/2.6.0/rubygems/ext/ext_conf_builder.rb:29:in 2022-02-07T08:05:30.5450996Z `build' 2022-02-07T08:05:30.5451321Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/2.6.0/rubygems/ext/builder.rb:185:in 2022-02-07T08:05:30.5451678Z `block in build_extension' 2022-02-07T08:05:30.5452004Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/2.6.0/monitor.rb:235:in 2022-02-07T08:05:30.5452323Z `mon_synchronize' 2022-02-07T08:05:30.5452653Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/2.6.0/rubygems/ext/builder.rb:181:in 2022-02-07T08:05:30.5452989Z `build_extension' 2022-02-07T08:05:30.5453308Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/2.6.0/rubygems/ext/builder.rb:229:in 2022-02-07T08:05:30.5453653Z `block in build_extensions' 2022-02-07T08:05:30.5454016Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/2.6.0/rubygems/ext/builder.rb:226:in 2022-02-07T08:05:30.5454310Z `each' 2022-02-07T08:05:30.5454632Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/2.6.0/rubygems/ext/builder.rb:226:in 2022-02-07T08:05:30.5454949Z `build_extensions' 2022-02-07T08:05:30.5455288Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/2.6.0/rubygems/installer.rb:830:in 2022-02-07T08:05:30.5455619Z `build_extensions' 2022-02-07T08:05:30.5456190Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/gems/2.6.0/gems/bundler-2.2.33/lib/bundler/rubygems_gem_installer.rb:71:in 2022-02-07T08:05:30.5456575Z `build_extensions' 2022-02-07T08:05:30.5457115Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/gems/2.6.0/gems/bundler-2.2.33/lib/bundler/rubygems_gem_installer.rb:28:in 2022-02-07T08:05:30.5457482Z `install' 2022-02-07T08:05:30.5457995Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/gems/2.6.0/gems/bundler-2.2.33/lib/bundler/source/rubygems.rb:204:in 2022-02-07T08:05:30.5458360Z `install' 2022-02-07T08:05:30.5458914Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/gems/2.6.0/gems/bundler-2.2.33/lib/bundler/installer/gem_installer.rb:54:in 2022-02-07T08:05:30.5459272Z `install' 2022-02-07T08:05:30.5459812Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/gems/2.6.0/gems/bundler-2.2.33/lib/bundler/installer/gem_installer.rb:16:in 2022-02-07T08:05:30.5460184Z `install_from_spec' 2022-02-07T08:05:30.5460767Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/gems/2.6.0/gems/bundler-2.2.33/lib/bundler/installer/parallel_installer.rb:186:in 2022-02-07T08:05:30.5461149Z `do_install' 2022-02-07T08:05:30.5461707Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/gems/2.6.0/gems/bundler-2.2.33/lib/bundler/installer/parallel_installer.rb:177:in 2022-02-07T08:05:30.5462097Z `block in worker_pool' 2022-02-07T08:05:30.5462704Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/gems/2.6.0/gems/bundler-2.2.33/lib/bundler/worker.rb:62:in 2022-02-07T08:05:30.5463053Z `apply_func' 2022-02-07T08:05:30.5463559Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/gems/2.6.0/gems/bundler-2.2.33/lib/bundler/worker.rb:57:in 2022-02-07T08:05:30.5463919Z `block in process_queue' 2022-02-07T08:05:30.5464443Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/gems/2.6.0/gems/bundler-2.2.33/lib/bundler/worker.rb:54:in 2022-02-07T08:05:30.5464773Z `loop' 2022-02-07T08:05:30.5465264Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/gems/2.6.0/gems/bundler-2.2.33/lib/bundler/worker.rb:54:in 2022-02-07T08:05:30.5465621Z `process_queue' 2022-02-07T08:05:30.5466124Z /opt/hostedtoolcache/Ruby/2.6.9/x64/lib/ruby/gems/2.6.0/gems/bundler-2.2.33/lib/bundler/worker.rb:91:in 2022-02-07T08:05:30.5466506Z `block (2 levels) in create_threads' 2022-02-07T08:05:30.5466688Z 2022-02-07T08:05:30.5466860Z An error occurred while installing mini_racer (0.6.2), and Bundler cannot 2022-02-07T08:05:30.5467179Z continue. 2022-02-07T08:05:30.5467317Z 2022-02-07T08:05:30.5467407Z In Gemfile: 2022-02-07T08:05:30.5467674Z sqreen was resolved to 1.25.0, which depends on 2022-02-07T08:05:30.5467951Z mini_racer 2022-02-07T08:05:30.5924925Z Took 309.18 seconds 2022-02-07T08:05:30.5928193Z ##[endgroup] 2022-02-07T08:05:30.5958657Z ##[error]The process '/opt/hostedtoolcache/Ruby/2.6.9/x64/bin/bundle' failed with exit code 5 ```

Versions

I am not sure if this is enough information or the right place to report it.

kapso commented 2 years ago

Running into the same issue, also this issue exists on Heroku as well.