Skip to content

Instantly share code, notes, and snippets.

@2called-chaos
Last active March 23, 2021 17:09
Show Gist options
  • Save 2called-chaos/6025fb23a6cc85bb663e7fe62d7d589c to your computer and use it in GitHub Desktop.
Save 2called-chaos/6025fb23a6cc85bb663e7fe62d7d589c to your computer and use it in GitHub Desktop.
$ ruby -v
bundler ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin19]
$ bundler -v
Bundler version 2.2.15
$ tail -2 Gemfile.lock
BUNDLED WITH
2.2.14
$ bundle | grep libv8
Using libv8 8.4.255.0 (x86_64-darwin-19)
$ grep libv8 Gemfile.lock
libv8 (8.4.255.0)
libv8 (~> 8.4.255)
$ echo "gem 'dle'" >> Gemfile
$ bundle
Fetching gem metadata from https://www.rubygems.org/...........
Fetching gem metadata from https://www.rubygems.org/.
Resolving dependencies....
[..]
Fetching dle 1.0.1
Fetching libv8 8.4.255.0
[..]
Installing libv8 8.4.255.0 with native extensions
Installing dle 1.0.1
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /Users/chaos/.gem/ruby/2.7.2/gems/libv8-8.4.255.0/ext/libv8
/Users/chaos/.rubies/2.7.2/bin/ruby -I /Users/chaos/.rubies/2.7.2/lib/ruby/2.7.0 -r ./siteconf20210323-71196-145xi2g.rb extconf.rb
creating Makefile
WARNING: Your metrics.cfg file was invalid or nonexistent. A new one will be created.
________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/v8/v8.git
/Users/chaos/.gem/ruby/2.7.2/gems/libv8-8.4.255.0/vendor/_gclient_v8_iuxgmjwd' in '/Users/chaos/.gem/ruby/2.7.2/gems/libv8-8.4.255.0/vendor'
Cloning into '/Users/chaos/.gem/ruby/2.7.2/gems/libv8-8.4.255.0/vendor/_gclient_v8_iuxgmjwd'...
remote: Finding sources: 1733 .Counting objects: 1
remote: Finding sources: 14% (3/21)
[..]
remote: Finding sources: 100% (21/21)
Receiving objects: 2% (16633/831613), 3.39MiB | 6.77 MiB/s
[..]
Receiving objects: 99% (818268/831613), 1.09 GiB | 5.99 MiB/s
remote: Total 831613 (delta 646091), reused 831612 (delta 646091)
Receiving objects: 100% (831613/831613), 1.09 GiB | 6.08 MiB/s, done.
Resolving deltas: 3% (12922/646091)
[..]
Resolving deltas: 100% (646091/646091)
(646091/646091), done.
[0:04:07] Still working on:
[0:04:07] v8
7>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" "--no-checkout" "--progress"
"https://chromium.googlesource.com/external/github.com/tc39/test262.git"
"/Users/chaos/.gem/ruby/2.7.2/gems/libv8-8.4.255.0/vendor/v8/test/test262/_gclient_data_fqifwmal"' in
/Users/chaos/.gem/ruby/2.7.2/gems/libv8-8.4.255.0/vendor failed; will retry after a short nap...
9>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" "--no-checkout" "--progress"
"https://chromium.googlesource.com/chromium/tools/depot_tools.git"
"/Users/chaos/.gem/ruby/2.7.2/gems/libv8-8.4.255.0/vendor/v8/third_party/_gclient_depot_tools_cl6m748l"' in
/Users/chaos/.gem/ruby/2.7.2/gems/libv8-8.4.255.0/vendor failed; will retry after a short nap...
________ running 'vpython third_party/depot_tools/update_depot_tools_toggle.py --disable' in
'/Users/chaos/.gem/ruby/2.7.2/gems/libv8-8.4.255.0/vendor'
/Users/chaos/.gem/ruby/2.7.2/gems/libv8-8.4.255.0/vendor/depot_tools/.cipd_bin/vpython: could not resolve options: failed to resolve Python
script: stat /Users/chaos/.gem/ruby/2.7.2/gems/libv8-8.4.255.0/vendor/third_party/depot_tools/update_depot_tools_toggle.py: no such file or
directory
Error: Command 'vpython third_party/depot_tools/update_depot_tools_toggle.py --disable' returned non-zero exit status 1 in
/Users/chaos/.gem/ruby/2.7.2/gems/libv8-8.4.255.0/vendor
Running: gclient root
Running: gclient config --spec 'solutions = [
{
"name": "v8",
"url": "https://chromium.googlesource.com/v8/v8.git",
"deps_file": "DEPS",
"managed": False,
"custom_deps": {},
},
]
'
Running: gclient sync --with_branch_heads
Subprocess failed with return code 2.
/Users/chaos/.gem/ruby/2.7.2/gems/libv8-8.4.255.0/ext/libv8/builder.rb:83:in `block in setup_build_deps!': unable to fetch v8 source
(RuntimeError)
from /Users/chaos/.gem/ruby/2.7.2/gems/libv8-8.4.255.0/ext/libv8/builder.rb:81:in `chdir'
from /Users/chaos/.gem/ruby/2.7.2/gems/libv8-8.4.255.0/ext/libv8/builder.rb:81:in `setup_build_deps!'
from /Users/chaos/.gem/ruby/2.7.2/gems/libv8-8.4.255.0/ext/libv8/builder.rb:40:in `build_libv8!'
from /Users/chaos/.gem/ruby/2.7.2/gems/libv8-8.4.255.0/ext/libv8/location.rb:24:in `install!'
from extconf.rb:7:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in /Users/chaos/.gem/ruby/2.7.2/gems/libv8-8.4.255.0 for inspection.
Results logged to /Users/chaos/.gem/ruby/2.7.2/extensions/x86_64-darwin-19/2.7.0/libv8-8.4.255.0/gem_make.out
An error occurred while installing libv8 (8.4.255.0), and Bundler cannot continue.
Make sure that `gem install libv8 -v '8.4.255.0' --source 'https://www.rubygems.org/'` succeeds before bundling.
In Gemfile:
mini_racer was resolved to 0.3.1, which depends on
libv8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment