V8@8.5 fails for linux

I can’t install v8 at all on linux. I tried to look at the formula and I think it tries to call xcode, which triggers an error since it is expecting OS X. The url even seems to be pointing to the mac version:

url “https://omahaproxy.appspot.com/all.json?os=mac&channel=stable

If I try to run it I get the error:

Error: undefined method `latest_version’ for OS::Mac::Xcode:Module

I tried changing this and removing the xcode dependency but I get stuck with the error:

…/src/base/logging.h:14:23: fatal error: string_view: No such file or directory

What am I doing wrong?

Thanks!

url “https://omahaproxy.appspot.com/all.json?os=mac&channel=stable”

This is referencing the location to check for updates and those don’t differ between macOS and Linux.

As for the XCode dependency, it seems nobody put in the work yet to make the install work on linux. So when you make it work don’t forget to file a pull request.

This is referencing the location to check for updates and those don’t differ between macOS and Linux.

I see, thanks.

Do you have any suggestions regarding?

…/src/base/logging.h:14:23: fatal error: string_view: No such file or directory

Unfortunately I don’t know much about the v8 build process. Maybe you can check how fedora or debian build it?

Please note that your build already fails during the compilation step of gn, a build tool of V8.

It looks identical to the issue observed while trying to get deno to work for linuxbrew, which could be solved by adding some additional dependencies there (however another error still persisted during that attempt):

Also I did some testing with a third-party provided gn binary back then and everything else worked just fine. So at least once you fixed the gn issue building V8 itself should (hopefully) succeed. However using a third-party binary isn’t an option for homebrew, so you have to find a way to fix the gn build issue.