rubyjs / therubyracer

Embed the V8 Javascript Interpreter into Ruby
1.66k stars 193 forks source link

RVM gem install therubyracer fails on FreeBSD #113

Closed justinbkay closed 13 years ago

justinbkay commented 13 years ago

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

cowboyd commented 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 ?

justinbkay commented 13 years ago

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

justinbkay commented 13 years ago

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& rr_v8_handle(VALUE) [with T = v8::Value]': rr.cpp:159: instantiated from here v8_handle.h:43: warning: dereferencing type-punned pointer will break strict-aliasing rules rr.cpp: In function 'VALUE rr_definefinalizer(VALUE, void, VALUE)': rr.cpp:48: warning: control reaches end of non-void function 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.o -c 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 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_array.o -c v8_array.cpp v8_array.cpp:48:2: warning: no newline at end of file v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::Array]': v8_array.cpp:13: 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_callbacks.o -c v8_callbacks.cpp 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_context.o -c v8_context.cpp v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::Context]': v8_context.cpp:15: instantiated from here v8_handle.h:43: warning: dereferencing type-punned pointer will break strict-aliasing rules v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::ObjectTemplate]': v8_context.cpp:22: instantiated from here v8_handle.h:43: warning: dereferencing type-punned pointer will break strict-aliasing rules v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::Value]': v8_context.cpp:23: 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_date.o -c v8_date.cpp v8_date.cpp:34:2: warning: no newline at end of file v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::Date]': v8_date.cpp:21: 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_debug.o -c v8_debug.cpp In file included from v8_debug.cpp:2: v8_debug.h:6:7: warning: no newline at end of file 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_exception.o -c v8_exception.cpp v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::StackTrace]': v8_exception.cpp:48: instantiated from here v8_handle.h:43: warning: dereferencing type-punned pointer will break strict-aliasing rules v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::StackFrame]': v8_exception.cpp:68: instantiated from here v8_handle.h:43: warning: dereferencing type-punned pointer will break strict-aliasing rules v8_exception.cpp: At global scope: v8_exception.cpp:10: warning: '::stack' defined but not used 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_external.o -c v8_external.cpp v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::External]': v8_external.cpp:51: instantiated from here v8_handle.h:43: warning: dereferencing type-punned pointer will break strict-aliasing rules v8_external.cpp: At global scope: v8_external.cpp:10: warning: '::references' defined but not used 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_function.o -c v8_function.cpp v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::Function]': v8_function.cpp:12: instantiated from here v8_handle.h:43: warning: dereferencing type-punned pointer will break strict-aliasing rules v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::Array]': v8_function.cpp:22: instantiated from here v8_handle.h:43: warning: dereferencing type-punned pointer will break strict-aliasing rules v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::String]': v8_function.cpp:48: 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_handle.o -c v8_handle.cpp 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_locker.o -c 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::Lock::Delete(VALUE)': v8_locker.cpp:45: warning: no return statement in function returning non-void v8_locker.cpp: In function 'VALUE::Unlock::Delete(VALUE)': v8_locker.cpp:85: warning: no return statement in function returning non-void 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 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_message.o -c v8_message.cpp v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::Message]': v8_message.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_object.o -c v8_object.cpp v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::Object]': v8_object.cpp:17: 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_script.o -c v8_script.cpp v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::Script]': v8_script.cpp:25: 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_string.o -c v8_string.cpp v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::String]': v8_string.cpp:13: 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_template.o -c v8_template.cpp v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::Template]': v8_template.cpp:42: instantiated from here v8_handle.h:43: warning: dereferencing type-punned pointer will break strict-aliasing rules v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::ObjectTemplate]': v8_template.cpp:45: instantiated from here v8_handle.h:43: warning: dereferencing type-punned pointer will break strict-aliasing rules v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::FunctionTemplate]': v8_template.cpp:48: instantiated from here v8_handle.h:43: warning: dereferencing type-punned pointer will break strict-aliasing rules v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::Data]': v8_template.cpp:54: 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_try_catch.o -c v8_try_catch.cpp 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_v8.o -c v8_v8.cpp 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_value.o -c v8_value.cpp v8_value.cpp:175:2: warning: no newline at end of file v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::Value]': 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

cowboyd commented 13 years ago

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?

justinbkay commented 13 years ago

/usr/local/rvm/gems/ruby-1.9.2-p290/gems/therubyracer-0.9.5/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-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 */


lxcodes commented 13 years ago

Not to hijack but +1 here. Same errors on Lion.

lenart commented 13 years ago

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

justinbkay commented 13 years ago

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.

lenart commented 13 years ago

@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?

justinbkay commented 13 years ago

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.

cowboyd commented 13 years ago

@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

justinbkay commented 13 years ago

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

cowboyd commented 13 years ago

can you show me the full pathname of ext/v8/mkmf.log

justinbkay commented 13 years ago

/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.

cowboyd commented 13 years ago

This is the mkmf.log for therubyracer gem. Do you have the mkmf.log for the libv8 gem? Thanks!

justinbkay commented 13 years ago

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.

justinbkay commented 13 years ago

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& rr_v8_handle(VALUE) [with T = v8::Value]': rr.cpp:159: instantiated from here v8_handle.h:43: warning: dereferencing type-punned pointer will break strict-aliasing rules rr.cpp: In function 'VALUE rr_definefinalizer(VALUE, void, VALUE)': rr.cpp:48: warning: control reaches end of non-void function 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.o -c 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 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_array.o -c v8_array.cpp v8_array.cpp:48:2: warning: no newline at end of file v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::Array]': v8_array.cpp:13: 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_callbacks.o -c v8_callbacks.cpp 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_context.o -c v8_context.cpp v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::Context]': v8_context.cpp:15: instantiated from here v8_handle.h:43: warning: dereferencing type-punned pointer will break strict-aliasing rules v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::ObjectTemplate]': v8_context.cpp:22: instantiated from here v8_handle.h:43: warning: dereferencing type-punned pointer will break strict-aliasing rules v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::Value]': v8_context.cpp:23: 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_date.o -c v8_date.cpp v8_date.cpp:34:2: warning: no newline at end of file v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::Date]': v8_date.cpp:21: 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_debug.o -c v8_debug.cpp In file included from v8_debug.cpp:2: v8_debug.h:6:7: warning: no newline at end of file 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_exception.o -c v8_exception.cpp v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::StackTrace]': v8_exception.cpp:48: instantiated from here v8_handle.h:43: warning: dereferencing type-punned pointer will break strict-aliasing rules v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::StackFrame]': v8_exception.cpp:68: instantiated from here v8_handle.h:43: warning: dereferencing type-punned pointer will break strict-aliasing rules v8_exception.cpp: At global scope: v8_exception.cpp:10: warning: '::stack' defined but not used 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_external.o -c v8_external.cpp v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::External]': v8_external.cpp:51: instantiated from here v8_handle.h:43: warning: dereferencing type-punned pointer will break strict-aliasing rules v8_external.cpp: At global scope: v8_external.cpp:10: warning: '::references' defined but not used 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_function.o -c v8_function.cpp v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::Function]': v8_function.cpp:12: instantiated from here v8_handle.h:43: warning: dereferencing type-punned pointer will break strict-aliasing rules v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::Array]': v8_function.cpp:22: instantiated from here v8_handle.h:43: warning: dereferencing type-punned pointer will break strict-aliasing rules v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::String]': v8_function.cpp:48: 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_handle.o -c v8_handle.cpp 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_locker.o -c 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::Lock::Delete(VALUE)': v8_locker.cpp:45: warning: no return statement in function returning non-void v8_locker.cpp: In function 'VALUE::Unlock::Delete(VALUE)': v8_locker.cpp:85: warning: no return statement in function returning non-void 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 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_message.o -c v8_message.cpp v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::Message]': v8_message.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_object.o -c v8_object.cpp v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::Object]': v8_object.cpp:17: 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_script.o -c v8_script.cpp v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::Script]': v8_script.cpp:25: 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_string.o -c v8_string.cpp v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::String]': v8_string.cpp:13: 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_template.o -c v8_template.cpp v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::Template]': v8_template.cpp:42: instantiated from here v8_handle.h:43: warning: dereferencing type-punned pointer will break strict-aliasing rules v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::ObjectTemplate]': v8_template.cpp:45: instantiated from here v8_handle.h:43: warning: dereferencing type-punned pointer will break strict-aliasing rules v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::FunctionTemplate]': v8_template.cpp:48: instantiated from here v8_handle.h:43: warning: dereferencing type-punned pointer will break strict-aliasing rules v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::Data]': v8_template.cpp:54: 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_try_catch.o -c v8_try_catch.cpp 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_v8.o -c v8_v8.cpp 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_value.o -c v8_value.cpp v8_value.cpp:175:2: warning: no newline at end of file v8_handle.h: In function 'v8::Persistent& rr_v8_handle(VALUE) [with T = v8::Value]': 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 -lthr -lrt -lcrypt -lm -lc -lv8 -lpthread /usr/bin/ld: cannot find -lv8 *\ Error code 1

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.

cowboyd commented 13 years ago

The problem is that it cannot find libv8.a which should be in the libv8 gem.

see here https://github.com/fractaloop/libv8/issues/16

madmax commented 12 years ago

I created fork that should works fine https://github.com/madmax/therubyracer-freebsd

glaszig commented 12 years ago

@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.

madmax commented 12 years ago

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.