Closed justinbkay closed 13 years ago
It appears that libv8 is not building for you. Is there a libv8.a in /usr/local/rvm/gems/ruby-1.9.2-p290/gems/libv8-3.3.10.2/lib/libv8/build/v8 ?
Negative, that file is not found anywhere on the system.
ls /usr/local/rvm/gems/ruby-1.9.2-p290/gems/libv8-3.3.10.2/lib/libv8/build/v8 .gitignore ChangeLog LICENSE.strongtalk LICENSE.valgrind SConstruct.orig include src AUTHORS LICENSE LICENSE.v8 SConstruct build preparser tools
Here is the full output:
Building native extensions. This could take a while...
ERROR: Error installing therubyracer:
ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb checking for main() in -lpthread... yes creating Makefile
make
g++ -I. -I/usr/local/rvm/gems/ruby-1.9.2-p290/gems/libv8-3.3.10.2/lib/libv8/v8/include -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/i386-freebsd8.2 -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I. -Wall -g -rdynamic -fPIC -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -orr.o -c rr.cpp
rr.cpp: In function 'VALUE rr_definefinalizer(VALUE, void, VALUE)':
rr.cpp:48: warning: no return statement in function returning non-void
v8_handle.h: In function 'v8::Persistent
Stop in /usr/local/rvm/gems/ruby-1.9.2-p290/gems/therubyracer-0.9.5/ext/v8.
Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.2-p290/gems/therubyracer-0.9.5 for inspection. Results logged to /usr/local/rvm/gems/ruby-1.9.2-p290/gems/therubyracer-0.9.5/ext/v8/gem_make.out
Ok, then the problem is that the libv8 gem is not building libv8.a properly for you. what is the mkmf.log output for that gem?
have_library: checking for main() in -lpthread... -------------------- yes
"gcc -o conftest -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/i386-freebsd8.2 -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unuse d-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC conftest.c -L. -L/usr/local/rvm/rubies/ruby-1.9.2-p290/lib -Wl,-R/usr/local/rvm/rubies/ruby-1.9.2-p290/lib -L. -rdynamic -Wl,-R -Wl,/usr /local/rvm/rubies/ruby-1.9.2-p290/lib -L/usr/local/rvm/rubies/ruby-1.9.2-p290/lib -lruby-static -lthr -lrt -lcrypt -lm -lc" checked program was: /* begin / 1: #include "ruby.h" 2: 3: int main() {return 0;} / end */
"gcc -o conftest -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/i386-freebsd8.2 -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unuse d-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC conftest.c -L. -L/usr/local/rvm/rubies/ruby-1.9.2-p290/lib -Wl,-R/usr/local/rvm/rubies/ruby-1.9.2-p290/lib -L. -rdynamic -Wl,-R -Wl,/usr /local/rvm/rubies/ruby-1.9.2-p290/lib -L/usr/local/rvm/rubies/ruby-1.9.2-p290/lib -lruby-static -lpthread -lthr -lrt -lcrypt -lm -lc" checked program was: /* begin _/ 1: #include "ruby.h" 2: 3: /top/ 4: int main() {return 0;} 5: int t() { void ((volatile p)()); p = (void (()()))main; return 0; } /_ end */
Not to hijack but +1 here. Same errors on Lion.
Any progress with this? I have same problem on FreeBSD 8.0.
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-freebsd8.0] gem 1.8.10
I ended up updating my ports and installing Node.js
On Fri, Oct 28, 2011 at 4:11 PM, Lenart Rudel < reply@reply.github.com>wrote:
Any progress with this? I have same problem on FreeBSD 8.0.
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-freebsd8.0] gem 1.8.10
Reply to this email directly or view it on GitHub: https://github.com/cowboyd/therubyracer/issues/113#issuecomment-2561845
Sites: http://byufootballapp.com http://broncodashboard.com http://jbkayconstruction.com https://twitter.com/justinbkay http://justinbkay.tumblr.com
It always takes longer than you expect, even when you take into account Hofstadters Law.
@justinbay: I also updated ports and installed node.js from /usr/ports/www/node. However I don't have any special gems listed as a requirement in the Gemfile. I see execjs installed as a requirement of coffee-script and uglifier. Is this OK or are things working by pure luck?
You just need the runtime, node.js in this case, and then the execjs gem.
On Sat, Oct 29, 2011 at 7:06 AM, Lenart Rudel < reply@reply.github.com>wrote:
@justinbay: I also updated ports and installed node.js from /usr/ports/www/node. However I don't have any special gems listed as a requirement in the Gemfile. I see execjs installed as a requirement of coffee-script and uglifier. Is this OK or are things working by pure luck?
Reply to this email directly or view it on GitHub: https://github.com/cowboyd/therubyracer/issues/113#issuecomment-2564807
Sites: http://byufootballapp.com http://broncodashboard.com http://jbkayconstruction.com https://twitter.com/justinbkay http://justinbkay.tumblr.com
It always takes longer than you expect, even when you take into account Hofstadters Law.
@justinbkay that is the mkmf.log for therubyracer. What is needed is the mkmf.log for libv8. The problem is with that gem. Unfortunately, I don't have access to a FreeBSD machine to get that gem working reliably /cc @fractaloop
Is this what you are looking for? This was 3 versions ago.
ext/v8/mkmf.log
have_library: checking for main() in -lpthread... -------------------- yes
"gcc -o conftest -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/i386-freebsd8.2 -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ ruby-1.9.1/ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-parameter -Wno-parent heses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC conftest.c -L. -L/usr/local/rvm/rubies/ruby-1.9 .2-p290/lib -Wl,-R/usr/local/rvm/rubies/ruby-1.9.2-p290/lib -L. -rdynamic -Wl,-R -Wl,/usr/local/rvm/rubies/ruby-1.9.2-p290/lib -L/usr/l ocal/rvm/rubies/ruby-1.9.2-p290/lib -lruby-static -lthr -lrt -lcrypt -lm -lc" checked program was: /* begin / 1: #include "ruby.h" 2: 3: int main() {return 0;} / end */
"gcc -o conftest -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/i386-freebsd8.2 -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ ruby-1.9.1/ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-parameter -Wno-parent heses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC conftest.c -L. -L/usr/local/rvm/rubies/ruby-1.9 .2-p290/lib -Wl,-R/usr/local/rvm/rubies/ruby-1.9.2-p290/lib -L. -rdynamic -Wl,-R -Wl,/usr/local/rvm/rubies/ruby-1.9.2-p290/lib -L/usr/l ocal/rvm/rubies/ruby-1.9.2-p290/lib -lruby-static -lpthread -lthr -lrt -lcrypt -lm -lc" checked program was: /* begin _/ 1: #include "ruby.h" 2: 3: /top/ 4: int main() {return 0;} 5: int t() { void ((volatile p)()); p = (void (()()))main; return 0; } /_ end */
Tried to install and got a new gem_make.out which is attached.
On Oct 31, 2011, at 5:33 AM, Charles Lowell wrote:
@justinbkay that is the mkmf.log for therubyracer. What is needed is the mkmf.log for libv8. The problem is with that gem. Unfortunately, I don't have access to a FreeBSD machine to get that gem working reliably /cc @fractaloop
Reply to this email directly or view it on GitHub: https://github.com/cowboyd/therubyracer/issues/113#issuecomment-2575797
can you show me the full pathname of ext/v8/mkmf.log
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/therubyracer-0.9.5/ext/v8/mkmf.log
On Mon, Oct 31, 2011 at 8:05 AM, Charles Lowell < reply@reply.github.com>wrote:
can you show me the full pathname of
ext/v8/mkmf.log
Reply to this email directly or view it on GitHub: https://github.com/cowboyd/therubyracer/issues/113#issuecomment-2577230
Sites: http://byufootballapp.com http://broncodashboard.com http://jbkayconstruction.com https://twitter.com/justinbkay http://justinbkay.tumblr.com
It always takes longer than you expect, even when you take into account Hofstadters Law.
This is the mkmf.log for therubyracer gem. Do you have the mkmf.log for the libv8
gem? Thanks!
I'm not finding it, do you know where it might be relative to what I sent you before?
On Mon, Oct 31, 2011 at 1:05 PM, Charles Lowell < reply@reply.github.com>wrote:
This is the mkmf.log for therubyracer gem. Do you have the mkmf.log for the
libv8
gem? Thanks!Reply to this email directly or view it on GitHub: https://github.com/cowboyd/therubyracer/issues/113#issuecomment-2581671
Sites: http://byufootballapp.com http://broncodashboard.com http://jbkayconstruction.com https://twitter.com/justinbkay http://justinbkay.tumblr.com
It always takes longer than you expect, even when you take into account Hofstadters Law.
That gem seems to install fine:
[root@rails2 ~]# gem install libv8 Building native extensions. This could take a while... Successfully installed libv8-3.3.10.2 1 gem installed Installing ri documentation for libv8-3.3.10.2... Installing RDoc documentation for libv8-3.3.10.2... [root@rails2 ~]# gem install therubyracer Building native extensions. This could take a while... ERROR: Error installing therubyracer: ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
creating Makefile
make
g++ -I.
-I/usr/local/rvm/gems/ruby-1.9.2-p290/gems/libv8-3.3.10.2/lib/libv8/v8/include
-I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/i386-freebsd8.2
-I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward
-I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I. -Wall -g
-rdynamic -fPIC -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses
-Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers
-Wno-long-long -fPIC -orr.o -c rr.cpp
rr.cpp: In function 'VALUE rr_definefinalizer(VALUE, void, VALUE)':
rr.cpp:48: warning: no return statement in function returning non-void
v8_handle.h: In function 'v8::Persistent
Stop in /usr/local/rvm/gems/ruby-1.9.2-p290/gems/therubyracer-0.9.8/ext/v8.
Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.2-p290/gems/therubyracer-0.9.8 for inspection. Results logged to /usr/local/rvm/gems/ruby-1.9.2-p290/gems/therubyracer-0.9.8/ext/v8/gem_make.out [root@rails2 ~]#
On Mon, Oct 31, 2011 at 1:20 PM, Justin Kay justinbkay@gmail.com wrote:
I'm not finding it, do you know where it might be relative to what I sent you before?
On Mon, Oct 31, 2011 at 1:05 PM, Charles Lowell < reply@reply.github.com>wrote:
This is the mkmf.log for therubyracer gem. Do you have the mkmf.log for the
libv8
gem? Thanks!Reply to this email directly or view it on GitHub: https://github.com/cowboyd/therubyracer/issues/113#issuecomment-2581671
Sites: http://byufootballapp.com http://broncodashboard.com http://jbkayconstruction.com https://twitter.com/justinbkay http://justinbkay.tumblr.com
It always takes longer than you expect, even when you take into account Hofstadters Law.
- Hofstadters Law
Sites: http://byufootballapp.com http://broncodashboard.com http://jbkayconstruction.com https://twitter.com/justinbkay http://justinbkay.tumblr.com
It always takes longer than you expect, even when you take into account Hofstadters Law.
The problem is that it cannot find libv8.a which should be in the libv8
gem.
I created fork that should works fine https://github.com/madmax/therubyracer-freebsd
@madmax doesn't work on freebsd 8.2 either. complains it can't find libv8.a
although if have installed the libv8-freebsd
gem.
c++: /usr/local/lib/ruby/gems/1.8/gems/libv8-freebsd-3.3.10.4/lib/libv8/build/v8/libv8.a: No such file or directory
$ find /usr/local/lib/ruby/gems/1.8/gems/ -name libv8.*
/usr/local/lib/ruby/gems/1.8/gems/libv8-freebsd-3.3.10.4/lib/libv8.rb
/usr/local/lib/ruby/gems/1.8/gems/libv8-freebsd-3.3.10.4/libv8.gemspec
this is starting to piss me off, sorry.
i didn't checked this on ruby 1.8. Please try first on user account install rbenv/rvm then install ruby 1.9.3 and then
gem install therubyracer-freebsd
remember that you should not have libv8 from ports.
FreeBSD 8.2 RVM 1.8.4 Ruby 1.9.2-p290
I have installed the port devel/libexecinfo as was suggested in ticket #100.
The failure seems to be that the v8.h file cannot be found. Here is the output:
.... v8_value.cpp:10: instantiated from here v8_handle.h:43: warning: dereferencing type-punned pointer will break strict-aliasing rules g++ -I. -I/usr/local/rvm/gems/ruby-1.9.2-p290/gems/libv8-3.3.10.2/lib/libv8/v8/include -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/i386-freebsd8.2 -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I. -Wall -g -rdynamic -fPIC -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -ov8_weakref.o -c v8_weakref.cpp g++ -shared -o v8.so rr.o v8.o v8_array.o v8_callbacks.o v8_context.o v8_date.o v8_debug.o v8_exception.o v8_external.o v8_function.o v8_handle.o v8_locker.o v8_message.o v8_object.o v8_script.o v8_string.o v8_template.o v8_try_catch.o v8_v8.o v8_value.o v8_weakref.o -L/usr/local/rvm/gems/ruby-1.9.2-p290/gems/libv8-3.3.10.2/lib/libv8/build/v8 -Wl,-R/usr/local/rvm/gems/ruby-1.9.2-p290/gems/libv8-3.3.10.2/lib/libv8/build/v8 -L. -L/usr/local/rvm/rubies/ruby-1.9.2-p290/lib -Wl,-R/usr/local/rvm/rubies/ruby-1.9.2-p290/lib -L. -rdynamic -Wl,-soname,v8.so -Wl,-R -Wl,/usr/local/rvm/rubies/ruby-1.9.2-p290/lib -L/usr/local/rvm/rubies/ruby-1.9.2-p290/lib -lruby -lpthread -lthr -lrt -lcrypt -lm -lc -lv8 /usr/bin/ld: cannot find -lv8 *\ Error code 1
Stop in /usr/local/rvm/gems/ruby-1.9.2-p290/gems/therubyracer-0.9.5/ext/v8.
Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.2-p290/gems/therubyracer-0.9.5 for inspection. Results logged to /usr/local/rvm/gems/ruby-1.9.2-p290/gems/therubyracer-0.9.5/ext/v8/gem_make.out