Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Doesn't compile on FreeBSD 8 #22

Closed
oparoz opened this issue Nov 15, 2011 · 5 comments
Closed

Doesn't compile on FreeBSD 8 #22

oparoz opened this issue Nov 15, 2011 · 5 comments

Comments

@oparoz
Copy link

oparoz commented Nov 15, 2011

Compilation stops with:

g++46 -shared -o v8.so v8_handle.o v8_exception.o v8_try_catch.o v8_v8.o v8.o v8_template.o v8_message.o v8_object.o v8_script.o v8_callbacks.o v8_locker.oms/libv8-3.3.10.4/lib/libv8/build/v8 -Wl,-R/usr/local/rvm/gems/ruby-1.9.2-p290@rails3/gems/libv8-3.3.10.4/lib/libv8/build/v8 -L. -L/usr/local/rvm/rubies/rucal/rvm/rubies/ruby-1.9.2-p290/lib -lruby  -lthr -lrt -lcrypt -lm   -lc -lv8 -lpthread
/usr/local/bin/ld: error: cannot find -lv8
collect2: ld returned 1 exit status
*** Error code 1

Any ideas?

@cowboyd
Copy link
Collaborator

cowboyd commented Nov 15, 2011

If you could submit a Vagrantfile demostrating the problem, this would be extremely helpful.

@oparoz
Copy link
Author

oparoz commented Nov 15, 2011

Sure, where can I find it? I only see a gem_make.out

@zak
Copy link

zak commented Nov 18, 2011

same error

...
v8_value.cpp:175:2: warning: no newline at end of file
c++ -I. -I/usr/local/lib/ruby/gems/1.8/gems/libv8-3.3.10.2/lib/libv8/v8/include -I/usr/local/lib/ruby/1.8/i386-freebsd8 -I/usr/local/lib/ruby/1.8/i386-freebsd8 -I. -I/usr/include -Wall -g -rdynamic -fPIC -I/usr/include -O2 -pipe -fno-strict-aliasing -fPIC -c v8_weakref.cpp
c++ -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/lib/ruby/gems/1.8/gems/libv8-3.3.10.2/lib/libv8/build/v8 -Wl,-R/usr/local/lib/ruby/gems/1.8/gems/libv8-3.3.10.2/lib/libv8/build/v8 -L. -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rpath=/usr/lib:/usr/local/lib -pthread -rdynamic -Wl,-soname,v8.so -Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -lruby18 -lcrypt -lm -L/usr/lib -rpath=/usr/lib:/usr/local/lib -pthread -lv8 -lpthread
/usr/bin/ld: cannot find -lv8
*** Error code 1

8.1-RELEASE FreeBSD 8.1-RELEASE
ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-freebsd8]
rubygems 1.8.11

@pgib
Copy link

pgib commented Jan 24, 2012

I was having the same issue and racking my brain on how to force it to use the /usr/ports/lang/v8 I had already installed. I noticed that the errors where looking in /opt/local/lib, which is not a FreeBSDism by any means. I could not figure out how to change the location of the opt-dir, so I decided to give in and run:

sudo ln -s /usr /opt

After doing that, it found the libv8 libraries I had installed from the ports, and Bob's my uncle.

@cowboyd
Copy link
Collaborator

cowboyd commented Jun 21, 2012

fixed on master

@cowboyd cowboyd closed this as completed Jun 21, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants