-
Notifications
You must be signed in to change notification settings - Fork 121
7.3.492.27.1 does not build on FreeBSD 12.1 #291
Comments
@spagu I don't think it is supported. I reckon it is possible to compile v8 and build your own gem on FreeBSD. You could look into my approach https://github.com/runlevel5/v8-ppc64le and adapt that for FreeBSD. |
Since this gem is a packaging of upstream v8 for Ruby, I'm not sure how in-scope it is for us to support operating systems that v8 itself doesn't support. If we wanted to go down this route, I think it makes more sense to support freebsd by reintroducing the |
@nightpool such a pain in the neck to get v8 compile for non-supported platform. Sometimes I wonder if moving to other JS engine is a better choice |
@runlevel5 we attempted use of nodejs’s vendored libv8, which made things somewhat easier (see discussion at #289) |
Recent release are no better on FreeBSD 12.1
|
Our solution was to switch to node. This was said by lloeki above, but I am restating it to make this solution stand out. Here is the Freshports link to the node package https://www.freshports.org/www/node/ Remove any of these you have in your Gemfile: libv8, therubyracer, mini_racer and anything with a dependency on libv8. Install node on your server (not just used to precompile assets). |
@nightpool The V8 library is supported with recent versions for FreeBSD. Here is the Frestports link https://www.freshports.org/lang/v8/ So I don't think it is a reasonable position that the libv8 gem is unnecessary because V8 is not available for FreeBSD. |
I thought I saw a comment critical of non-support for FreeBSD based on how beloved that OS is. In that regard this is open source so enthusiasm for a platform may translate to behove that belover to do the work to support this gem on FreeBSD. |
Glad to see some movement that way. I’m progressively adding more targets to sqreen/libv8-node, including FreeBSD, but we don’t have a direct use case for now, so other targets get more priority (like macOS arm64+arm64e and linux aarch64). |
libv8-node doesn't have FreeBSD binaries yet but the |
Closing as libv8-node supports that (from source). We can't build binaries as we don't have access to FreeBSD infrastructure. Maybe cross-compilation is an option but that's much better tackled at libv8-node anyway. |
FreeBSD is very easy to install. I'm sure you can get help with that if you ask here. |
Oh I'm very well aware of that, this is not an issue of knowledge or ability but of resources (time, maintenance, integration e.g CI). Anyway, tracked here: rubyjs/libv8-node#49 |
gem install libv8 -v '7.3.492.27.1' --source 'https://rubygems.org/'
How to solve?
The text was updated successfully, but these errors were encountered: