Skip to content

Instantly share code, notes, and snippets.

@vilusa
Created January 25, 2022 11:37
Show Gist options
  • Save vilusa/9e3b8b13f62551599d32a189aff8e4ec to your computer and use it in GitHub Desktop.
Save vilusa/9e3b8b13f62551599d32a189aff8e4ec to your computer and use it in GitHub Desktop.
libv8 error
➜  voice git:(master) gem install libv8 --version 8.4.255 -- --with-system-v8
Building native extensions with: '--with-system-v8'
This could take a while...
ERROR:  Error installing libv8:
        ERROR: Failed to build gem native extension.

    current directory: /Users/vilusa/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/libv8-8.4.255.0/ext/libv8
/Users/vilusa/.rbenv/versions/2.5.8/bin/ruby -r ./siteconf20220125-58008-1un33av.rb extconf.rb --with-system-v8
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/vilusa/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/libv8-8.4.255.0/vendor/_gclient_v8_hpgpx6tc' in '/Users/vilusa/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/libv8-8.4.255.0/vendor'
Klonlama konumu: '/Users/vilusa/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/libv8-8.4.255.0/vendor/_gclient_v8_hpgpx6tc'...
remote: Finding sources: 100% (17/17)           ting objects: 1           
remote: Total 898065 (delta 760398), reused 898062 (delta 760398)        
Nesneler alınıyor: 100% (898065/898065), 888.95 MiB | 4.46 MiB/sn, bitti.
Deltalar çözülüyor: 100% (760398/760398), bitti.
[0:04:30] Still working on:
[0:04:30]   v8
[0:04:32] Still working on:
[0:04:32]   v8
[0:07:49] Still working on:
[0:07:49]   v8/third_party/icu
[0:07:59] Still working on:
[0:07:59]   v8/third_party/icu
[0:08:09] Still working on:
[0:08:09]   v8/third_party/icu
[0:08:19] Still working on:
[0:08:19]   v8/third_party/icu
[0:08:20] Still working on:
[0:08:20]   v8/third_party/icu
________ running 'vpython third_party/depot_tools/update_depot_tools_toggle.py --disable' in '/Users/vilusa/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/libv8-8.4.255.0/vendor'
/Users/vilusa/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/libv8-8.4.255.0/vendor/depot_tools/.cipd_bin/vpython: could not resolve options: failed to resolve Python script: stat /Users/vilusa/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/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/vilusa/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/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/vilusa/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/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/vilusa/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/libv8-8.4.255.0/ext/libv8/builder.rb:81:in `chdir'
        from /Users/vilusa/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/libv8-8.4.255.0/ext/libv8/builder.rb:81:in `setup_build_deps!'
        from /Users/vilusa/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/libv8-8.4.255.0/ext/libv8/builder.rb:40:in `build_libv8!'
        from /Users/vilusa/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/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/vilusa/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/libv8-8.4.255.0 for inspection.
Results logged to /Users/vilusa/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/extensions/x86_64-darwin-21/2.5.0/libv8-8.4.255.0/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment