We ran into a compilation error – out of the blue – in December 2020 on Debian 10 VMs as well as our local Debian 10 Desktops.
Bundle fails trying to compile
Installing libv8 3.16.14.19 with native extensions
The error log says:
IOError: [Errno 2] No such file or directory: '/home/username/application/shared/bundle/ruby/2.6.0/gems/libv8-7.3.492.27.1/vendor/build/config/gclient_args.gni'
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 1.
We've checked the tags on the Google v8 Repo and found that the requested tag 7.3.492.27.1
seems not to be available on the Google Repo:
libv8 did not install properly, expected binary v8 archive '/home/.../gyp
/libv8_snapshot.a'to exist, but it was not found
(Libv8::Location::Vendor::ArchiveNotFound)
Our only solution was to remove therubyracer
completely from the Gemfile :-(