-
Notifications
You must be signed in to change notification settings - Fork 123
therubyracer/libv8 broken on FreeBSD 9 #52
Comments
This can probably be closed now too, now that it's been merged. :P |
Actually the binary gem (libv8-3.3.10.4) still have the problem therefore there is no way to build therubyracer on freebsd :( |
@andreacgranata can you not use the pre-release version of therubyracer? 0.11.0beta8? |
I successfully got everything working on FreeBSD just last night. It's pretty much that simple. :) |
@rikai of course I know the now everything is working on FreeBSD with the beta version of therubyracer and with the lastest version of libV8. @cowboyd I'm trying to install Gitlab (https://github.com/gitlabhq/) on FreeBSD. The Gitlab Gemfile.lock declare therubyracer 0.10.1 so i was hoping to get a working stable version also on FreeBSD. Anyway what's the point in having a broken gem (libv8-3.3.10.4-amd64-freebsd-9) on rubygems? :) |
There isn't much point, although @renchap was the one who compiled it. I believe that it's working for him, no? |
I had the same issue on FreeBSD 9 amd64 as OP. So I installed the latest version of libv8 3.11.8.3. |
@yurivict did you build libv8 from the source or you just installed the gem? |
I installed the libv8 gem, it still doesn't work, even with 0.11.0beta8. |
There is a separate gem called libv8-freebsd. I remember that worked for me but I can't remember how I installed that with bundle. It should work though. It's currently at version 3.11.8.3. |
Oh, there also exists therubyracer-freebsd; version 0.10.1 whereas therubyracer has version 0.11.0. See here: rubyjs/therubyracer#158 |
Right. I was trying to get this all to work with Gitlab too but as it turns out, it seems that on Gitlab you can simply comment therubyracer and libv8 from Gemfile and Gemfile.lock and Gitlab still seems to work. |
I have compiled a new version a therubyracer for FreeBSD 9 64 bits. You can find the gem here : http://zekk.renchap.com/therubyracer-0.11.0-amd64-freebsd-9.gem To install it using bundler (for Rails for example), put it in vendor/cache, then run bundler. It should use this gem file, and it worked fine for me on 2 servers. gem 'therubyracer', '0.11.0' I will check with @cowboyd to upload in on rubygems, so it should work out of the box. |
Hi,
When I'm trying to install therubyracer on FreeBSD 9 AMD64 i got this error message:
[xxxxx@xxxxx-vm ~]$ sudo gem install therubyracer
Fetching: libv8-3.3.10.4-amd64-freebsd-9.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing therubyracer:
ERROR: Failed to build gem native extension.
creating Makefile
make
compiling rr.cpp
rr.cpp: In function 'VALUE rr_define_finalizer(VALUE, void_, VALUE)':
rr.cpp:48: warning: control reaches end of non-void function
compiling v8.cpp
In file included from v8.cpp:16:
v8_locker.h:6:7: warning: no newline at end of file
In file included from v8.cpp:17:
v8_debug.h:6:7: warning: no newline at end of file
In file included from v8.cpp:18:
v8_v8.h:6:7: warning: no newline at end of file
compiling v8_array.cpp
v8_array.cpp:48:2: warning: no newline at end of file
compiling v8_callbacks.cpp
compiling v8_context.cpp
compiling v8_date.cpp
v8_date.cpp:34:2: warning: no newline at end of file
compiling v8_debug.cpp
In file included from v8_debug.cpp:2:
v8_debug.h:6:7: warning: no newline at end of file
compiling v8_exception.cpp
v8_exception.cpp:10: warning: '::stack' defined but not used
compiling v8_external.cpp
v8_external.cpp:10: warning: '::references' defined but not used
compiling v8_function.cpp
compiling v8_handle.cpp
compiling v8_locker.cpp
In file included from v8_locker.cpp:2:
v8_locker.h:6:7: warning: no newline at end of file
v8_locker.cpp: In function 'VALUE::Unlock::Delete(VALUE)':
v8_locker.cpp:85: warning: control reaches end of non-void function
v8_locker.cpp: In function 'VALUE::Lock::Delete(VALUE)':
v8_locker.cpp:45: warning: control reaches end of non-void function
compiling v8_message.cpp
compiling v8_object.cpp
compiling v8_script.cpp
compiling v8_string.cpp
compiling v8_template.cpp
compiling v8_try_catch.cpp
compiling v8_v8.cpp
compiling v8_value.cpp
v8_value.cpp:175:2: warning: no newline at end of file
compiling v8_weakref.cpp
linking shared-object v8.so
/usr/bin/ld: /usr/local/lib/ruby/gems/1.9/gems/libv8-3.3.10.4-amd64-freebsd-9/lib/libv8/build/v8/libv8.a(api.o): relocation R_X86_64_32S against `ZTVN2v89ExtensionE' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/ruby/gems/1.9/gems/libv8-3.3.10.4-amd64-freebsd-9/lib/libv8/build/v8/libv8.a: could not read symbols: Bad value
** Error code 1
Stop in /usr/local/lib/ruby/gems/1.9/gems/therubyracer-0.10.2/ext/v8.
The pull request #51 fix that.
Cheers,
Andrea.
The text was updated successfully, but these errors were encountered: