-
Notifications
You must be signed in to change notification settings - Fork 121
libv8 fails to build on macOS 10.15 (Catalina, darwin19) #280
Comments
macOS Beta 10.15 (19A501i) |
it probably doesn't freeze.. just takes 40 minutes to compile since I haven't gotten around to publishing a binary version |
@ignisf thank you |
Fetching libv8 7.3.492.27.1
Installing libv8 7.3.492.27.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /Users/sharevari/.rvm/gems/ruby-2.6.3@honshu/gems/libv8-7.3.492.27.1/ext/libv8
/Users/sharevari/.rvm/rubies/ruby-2.6.3/bin/ruby -I /Users/sharevari/.rvm/rubies/ruby-2.6.3/lib/ruby/site_ruby/2.6.0 -r ./siteconf20190715-77504-e9hbn0.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/sharevari/.rvm/gems/ruby-2.6.3@honshu/gems/libv8-7.3.492.27.1/vendor/_gclient_v8_TNyW_2' in '/Users/sharevari/.rvm/gems/ruby-2.6.3@honshu/gems/libv8-7.3.492.27.1/vendor'
Cloning into '/Users/sharevari/.rvm/gems/ruby-2.6.3@honshu/gems/libv8-7.3.492.27.1/vendor/_gclient_v8_TNyW_2'...
remote: Sending approximately 853.36 MiB ...
remote: Counting objects: 7685, done
remote: Finding sources: 16% (4/25)
remote: Finding sources: 36% (9/25)
remote: Finding sources: 52% (13/25)
remote: Finding sources: 72% (17/25)
remote: Finding sources: 88% (22/25)
remote: Finding sources: 100% (25/25)
Receiving objects: 4% (27527/688152), 9.04 MiB | 18.08 MiB/s
Receiving objects: 7% (45929/688152), 9.04 MiB | 18.08 MiB/s
Receiving objects: 10% (68816/688152), 21.10 MiB | 21.10 MiB/s
Receiving objects: 12% (88702/688152), 34.03 MiB | 22.68 MiB/s
Receiving objects: 16% (103223/688152), 41.80 MiB | 20.90 MiB/s
Receiving objects: 19% (130749/688152), 60.77 MiB | 24.31 MiB/s
Receiving objects: 21% (149612/688152), 60.77 MiB | 24.31 MiB/s
Receiving objects: 24% (165157/688152), 82.69 MiB | 27.56 MiB/s
Receiving objects: 28% (185802/688152), 82.69 MiB | 27.56 MiB/s
Receiving objects: 31% (213328/688152), 102.28 MiB | 29.22 MiB/s
Receiving objects: 33% (231520/688152), 102.28 MiB | 29.22 MiB/s
Receiving objects: 36% (247735/688152), 121.19 MiB | 30.30 MiB/s
Receiving objects: 40% (268380/688152), 121.19 MiB | 30.30 MiB/s
Receiving objects: 43% (295906/688152), 121.19 MiB | 30.30 MiB/s
Receiving objects: 46% (316550/688152), 142.14 MiB | 31.59 MiB/s
Receiving objects: 49% (337195/688152), 142.14 MiB | 31.59 MiB/s
Receiving objects: 53% (357840/688152), 142.14 MiB | 31.59 MiB/s
Receiving objects: 55% (378484/688152), 159.60 MiB | 33.46 MiB/s
Receiving objects: 57% (392247/688152), 192.64 MiB | 35.25 MiB/s
Receiving objects: 59% (406010/688152), 230.33 MiB | 37.68 MiB/s
Receiving objects: 61% (419773/688152), 263.63 MiB | 35.86 MiB/s
Receiving objects: 63% (433536/688152), 314.41 MiB | 34.42 MiB/s
Receiving objects: 65% (447299/688152), 382.31 MiB | 33.79 MiB/s
Receiving objects: 66% (458209/688152), 419.37 MiB | 32.94 MiB/s
Receiving objects: 68% (468068/688152), 457.12 MiB | 33.88 MiB/s
Receiving objects: 70% (481707/688152), 519.21 MiB | 32.91 MiB/s
Receiving objects: 72% (495470/688152), 570.16 MiB | 33.51 MiB/s
Receiving objects: 74% (509233/688152), 589.49 MiB | 33.50 MiB/s
Receiving objects: 77% (522996/688152), 627.93 MiB | 34.40 MiB/s
Receiving objects: 79% (543641/688152), 663.15 MiB | 35.51 MiB/s
Receiving objects: 81% (557404/688152), 699.49 MiB | 36.67 MiB/s
Receiving objects: 83% (572120/688152), 735.64 MiB | 36.78 MiB/s
Receiving objects: 86% (588089/688152), 771.54 MiB | 36.23 MiB/s
Receiving objects: 89% (612456/688152), 789.76 MiB | 35.96 MiB/s
Receiving objects: 91% (626219/688152), 806.83 MiB | 35.72 MiB/s
Receiving objects: 94% (646863/688152), 827.12 MiB | 36.43 MiB/s
Receiving objects: 98% (667508/688152), 827.12 MiB | 36.43 MiB/s
remote: Total 688152 (delta 548539), reused 688145 (delta 548539)
Receiving objects: 100% (688152/688152), 853.24 MiB | 34.22 MiB/s, done.
Resolving deltas: 5% (22007/548539)
Resolving deltas: 9% (49369/548539)
Resolving deltas: 14% (71337/548539)
Resolving deltas: 18% (104037/548539)
Resolving deltas: 24% (126166/548539)
Resolving deltas: 28% (153594/548539)
Resolving deltas: 33% (181040/548539)
Resolving deltas: 38% (208555/548539)
Resolving deltas: 43% (235968/548539)
Resolving deltas: 48% (264409/548539)
Resolving deltas: 51% (279756/548539)
Resolving deltas: 56% (307204/548539)
Resolving deltas: 60% (329137/548539)
Resolving deltas: 63% (345623/548539)
Resolving deltas: 66% (362036/548539)
Resolving deltas: 69% (379710/548539)
Resolving deltas: 72% (398026/548539)
[0:01:00] Still working on:945/548539)
[0:01:00] v8
Resolving deltas: 77% (422404/548539)
Resolving deltas: 81% (444572/548539)
Resolving deltas: 84% (462154/548539)
Resolving deltas: 88% (482718/548539)
[0:01:10] Still working on:203/548539)
[0:01:10] v8
Resolving deltas: 92% (508351/548539)
Resolving deltas: 96% (526611/548539)
Resolving deltas: 99% (545827/548539)
Resolving deltas: 100% (548539/548539), done.
[0:01:20] Still working on:
[0:01:20] v8
[0:01:30] Still working on:
[0:01:30] v8
[0:01:38] Still working on:
[0:01:38] v8
________ running '/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python v8/third_party/depot_tools/update_depot_tools_toggle.py --disable' in
'/Users/sharevari/.rvm/gems/ruby-2.6.3@honshu/gems/libv8-7.3.492.27.1/vendor'
________ running '/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python v8/build/landmines.py --landmine-scripts v8/tools/get_landmines.py' in
'/Users/sharevari/.rvm/gems/ruby-2.6.3@honshu/gems/libv8-7.3.492.27.1/vendor'
________ running 'download_from_google_storage --no_resume --platform=darwin --no_auth --bucket chromium-clang-format -s v8/buildtools/mac/clang-format.sha1' in
'/Users/sharevari/.rvm/gems/ruby-2.6.3@honshu/gems/libv8-7.3.492.27.1/vendor'
Error: Command 'download_from_google_storage --no_resume --platform=darwin --no_auth --bucket chromium-clang-format -s v8/buildtools/mac/clang-format.sha1' returned non-zero exit status 1 in
/Users/sharevari/.rvm/gems/ruby-2.6.3@honshu/gems/libv8-7.3.492.27.1/vendor
Failed to fetch file gs://chromium-clang-format/025ca7c75f37ef4a40f3a67d81ddd11d7d0cdb9b for v8/buildtools/mac/clang-format. [Err:
/Users/sharevari/.rvm/gems/ruby-2.6.3@honshu/gems/libv8-7.3.492.27.1/vendor/depot_tools/external_bin/gsutil/gsutil_4.28/gsutil/third_party/boto/boto/pyami/config.py:69: UserWarning: Unable to load AWS_CREDENTIAL_FILE
()
warnings.warn('Unable to load AWS_CREDENTIAL_FILE (%s)' % full_path)
]
0> Failed to fetch file gs://chromium-clang-format/025ca7c75f37ef4a40f3a67d81ddd11d7d0cdb9b for v8/buildtools/mac/clang-format, skipping. [Err:
/Users/sharevari/.rvm/gems/ruby-2.6.3@honshu/gems/libv8-7.3.492.27.1/vendor/depot_tools/external_bin/gsutil/gsutil_4.28/gsutil/third_party/boto/boto/pyami/config.py:69: UserWarning: Unable to load AWS_CREDENTIAL_FILE
()
warnings.warn('Unable to load AWS_CREDENTIAL_FILE (%s)' % full_path)
]
Downloading 1 files took 25.696109 second(s)
Hook 'download_from_google_storage --no_resume --platform=darwin --no_auth --bucket chromium-clang-format -s v8/buildtools/mac/clang-format.sha1' took 26.24 secs
Running: gclient root
Running: gclient config --spec 'solutions = [
{
"url": "https://chromium.googlesource.com/v8/v8.git",
"managed": False,
"name": "v8",
"deps_file": "DEPS",
"custom_deps": {},
},
]
'
Running: gclient sync --with_branch_heads
Subprocess failed with return code 2.
/Users/sharevari/.rvm/gems/ruby-2.6.3@honshu/gems/libv8-7.3.492.27.1/ext/libv8/builder.rb:83:in `block in setup_build_deps!': unable to fetch v8 source (RuntimeError)
from /Users/sharevari/.rvm/gems/ruby-2.6.3@honshu/gems/libv8-7.3.492.27.1/ext/libv8/builder.rb:81:in `chdir'
from /Users/sharevari/.rvm/gems/ruby-2.6.3@honshu/gems/libv8-7.3.492.27.1/ext/libv8/builder.rb:81:in `setup_build_deps!'
from /Users/sharevari/.rvm/gems/ruby-2.6.3@honshu/gems/libv8-7.3.492.27.1/ext/libv8/builder.rb:40:in `build_libv8!'
from /Users/sharevari/.rvm/gems/ruby-2.6.3@honshu/gems/libv8-7.3.492.27.1/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/sharevari/.rvm/gems/ruby-2.6.3@honshu/gems/libv8-7.3.492.27.1 for inspection.
Results logged to /Users/sharevari/.rvm/gems/ruby-2.6.3@honshu/extensions/x86_64-darwin-19/2.6.0/libv8-7.3.492.27.1/gem_make.out
An error occurred while installing libv8 (7.3.492.27.1), and Bundler cannot continue.
Make sure that `gem install libv8 -v '7.3.492.27.1' --source 'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
mini_racer was resolved to 0.2.6, which depends on
libv8 |
@ignisf Were you successful in building it on darwin19? If that's the case it would be super helpful of you to release some binary darwin19 builds for a couple of versions on rubygems so that we can check early if our dependency gems ( |
Failing too after clean install Catalina |
same error |
Same issue here on Catalina - libv8 @ 6.7.288.46.1 |
Hello, https://github.com/cowboyd/libv8/releases/download/v7.3.492.27.1/libv8-7.3.492.27.1-universal-darwin-19.gem |
@ignisf Quickly tested with mini_racer 0.2.6:
Testing method: ran the following in IRB.
Quick notes unrelated to libv8 itself:
|
Additional note: Catalina thinned everything to |
Solved my problem by require Thanks you. |
@ignisf also ran unit tests on
I don't know if this was present before. (EDIT: apparently, it was) Anyway, thanks a lot for this @ignisf, you made my day! |
I've pushed the |
How would one go about getting therubyracer to use that version of libv8? I was able to gem install therubyracer, but bundle still fails with |
@willc0de4food, unfortunately the only way to do so is by rewriting large parts of therubyracer. rubyjs/therubyracer#348 |
Ahh, I see.. Well, at least it's in the works. Thanks! |
I'm still having problems fetching the source to compile it. The earlier comment indicate that a compiled binary was pushed up someplace but the readme only shows support up to darwin17. Would it be possible to automate more of the binary build process? |
Got past my roadblock. It was getting stuck in Eventually after trying it a few times I just went into |
Try using this solution. This worked for me. |
@ignisf Could we get a or some some darwin19 binary gem packages that satisfy therubyracer's version constraint? |
Work for me too. |
Hi all, we've published binary versions for Catalina for both the current 7.3 release and the upcoming 8.4 release. Users of therubyracer are encouraged to switch to mini_racer, which uses up to date versions of v8 that have been compiled for Catalina. |
I updated 3 gems at once, worked for me: bundle update libv8 mini_racer mimemagic |
Clean install of macOS Public Beta 19A501i, Xcode 11 beta 2 11M337n. No Homebrew, just system Ruby (2.6.3-p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19])
Tried multiple versions of the gem (from 6.7.288.46.1 to 7.3.492.27.3beta1), same failure: Seems like the call to
gclient sync
fails.No binary version published yet, so it obviously falls back to building. Log output below.
if you don't have access to a darwin19 machine, I can try things provided I'm given directions.
The text was updated successfully, but these errors were encountered: