cowboyd/therubyracer — Issue #147: Install fails on Cygwin
Author: filipd
Created: 2012-03-08 17:58:05+00:00
State: open

D'oh! I'm bumping into some issues with `0.9.9` and `0.9.10` when trying to compile the sources with Cygwin. I have `libv8-3.3.10.4` and `python-2.6.7-1` previously installed.

Here's the Gem make output. I hope it makes sense to someone.

```
/home/kuca/.rvm/rubies/ruby-1.9.2-p318/bin/ruby.exe extconf.rb
creating Makefile

make
g++ -I. -I/home/kuca/.rvm/gems/ruby-1.9.2-p318@lb/gems/libv8-3.3.10.4/lib/libv8/v8/include -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/i386-cygwin -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/ruby/backward -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1 -I. -I/home/kuca/.rvm/usr/include -Wall -g -rdynamic -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -o rr.o -c rr.cpp
g++: unrecognized option `-rdynamic'
rr.cpp: In function `VALUE rr_define_finalizer(VALUE, void*, VALUE)':
rr.cpp:48: warning: no return statement in function returning non-void
rr.cpp:48: warning: control reaches end of non-void function
g++ -I. -I/home/kuca/.rvm/gems/ruby-1.9.2-p318@lb/gems/libv8-3.3.10.4/lib/libv8/v8/include -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/i386-cygwin -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/ruby/backward -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1 -I. -I/home/kuca/.rvm/usr/include -Wall -g -rdynamic -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -o v8.o -c v8.cpp
g++: unrecognized option `-rdynamic'
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/home/kuca/.rvm/gems/ruby-1.9.2-p318@lb/gems/libv8-3.3.10.4/lib/libv8/v8/include -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/i386-cygwin -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/ruby/backward -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1 -I. -I/home/kuca/.rvm/usr/include -Wall -g -rdynamic -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -o v8_array.o -c v8_array.cpp
g++: unrecognized option `-rdynamic'
v8_array.cpp:48:2: warning: no newline at end of file
g++ -I. -I/home/kuca/.rvm/gems/ruby-1.9.2-p318@lb/gems/libv8-3.3.10.4/lib/libv8/v8/include -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/i386-cygwin -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/ruby/backward -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1 -I. -I/home/kuca/.rvm/usr/include -Wall -g -rdynamic -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -o v8_callbacks.o -c v8_callbacks.cpp
g++: unrecognized option `-rdynamic'
g++ -I. -I/home/kuca/.rvm/gems/ruby-1.9.2-p318@lb/gems/libv8-3.3.10.4/lib/libv8/v8/include -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/i386-cygwin -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/ruby/backward -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1 -I. -I/home/kuca/.rvm/usr/include -Wall -g -rdynamic -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -o v8_context.o -c v8_context.cpp
g++: unrecognized option `-rdynamic'
g++ -I. -I/home/kuca/.rvm/gems/ruby-1.9.2-p318@lb/gems/libv8-3.3.10.4/lib/libv8/v8/include -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/i386-cygwin -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/ruby/backward -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1 -I. -I/home/kuca/.rvm/usr/include -Wall -g -rdynamic -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -o v8_date.o -c v8_date.cpp
g++: unrecognized option `-rdynamic'
v8_date.cpp:34:2: warning: no newline at end of file
g++ -I. -I/home/kuca/.rvm/gems/ruby-1.9.2-p318@lb/gems/libv8-3.3.10.4/lib/libv8/v8/include -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/i386-cygwin -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/ruby/backward -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1 -I. -I/home/kuca/.rvm/usr/include -Wall -g -rdynamic -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -o v8_debug.o -c v8_debug.cpp
g++: unrecognized option `-rdynamic'
In file included from v8_debug.cpp:2:
v8_debug.h:6:7: warning: no newline at end of file
g++ -I. -I/home/kuca/.rvm/gems/ruby-1.9.2-p318@lb/gems/libv8-3.3.10.4/lib/libv8/v8/include -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/i386-cygwin -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/ruby/backward -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1 -I. -I/home/kuca/.rvm/usr/include -Wall -g -rdynamic -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -o v8_exception.o -c v8_exception.cpp
g++: unrecognized option `-rdynamic'
v8_exception.cpp:10: warning: '::stack' defined but not used
g++ -I. -I/home/kuca/.rvm/gems/ruby-1.9.2-p318@lb/gems/libv8-3.3.10.4/lib/libv8/v8/include -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/i386-cygwin -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/ruby/backward -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1 -I. -I/home/kuca/.rvm/usr/include -Wall -g -rdynamic -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -o v8_external.o -c v8_external.cpp
g++: unrecognized option `-rdynamic'
g++ -I. -I/home/kuca/.rvm/gems/ruby-1.9.2-p318@lb/gems/libv8-3.3.10.4/lib/libv8/v8/include -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/i386-cygwin -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/ruby/backward -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1 -I. -I/home/kuca/.rvm/usr/include -Wall -g -rdynamic -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -o v8_function.o -c v8_function.cpp
g++: unrecognized option `-rdynamic'
g++ -I. -I/home/kuca/.rvm/gems/ruby-1.9.2-p318@lb/gems/libv8-3.3.10.4/lib/libv8/v8/include -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/i386-cygwin -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/ruby/backward -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1 -I. -I/home/kuca/.rvm/usr/include -Wall -g -rdynamic -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -o v8_handle.o -c v8_handle.cpp
g++: unrecognized option `-rdynamic'
g++ -I. -I/home/kuca/.rvm/gems/ruby-1.9.2-p318@lb/gems/libv8-3.3.10.4/lib/libv8/v8/include -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/i386-cygwin -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/ruby/backward -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1 -I. -I/home/kuca/.rvm/usr/include -Wall -g -rdynamic -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -o v8_locker.o -c v8_locker.cpp
g++: unrecognized option `-rdynamic'
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: In function `VALUE ::Lock::Delete(VALUE)':
v8_locker.cpp:45: warning: control reaches end of non-void function
v8_locker.cpp: In function `VALUE ::Unlock::Delete(VALUE)':
v8_locker.cpp:85: warning: control reaches end of non-void function
g++ -I. -I/home/kuca/.rvm/gems/ruby-1.9.2-p318@lb/gems/libv8-3.3.10.4/lib/libv8/v8/include -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/i386-cygwin -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/ruby/backward -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1 -I. -I/home/kuca/.rvm/usr/include -Wall -g -rdynamic -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -o v8_message.o -c v8_message.cpp
g++: unrecognized option `-rdynamic'
g++ -I. -I/home/kuca/.rvm/gems/ruby-1.9.2-p318@lb/gems/libv8-3.3.10.4/lib/libv8/v8/include -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/i386-cygwin -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/ruby/backward -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1 -I. -I/home/kuca/.rvm/usr/include -Wall -g -rdynamic -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -o v8_object.o -c v8_object.cpp
g++: unrecognized option `-rdynamic'
g++ -I. -I/home/kuca/.rvm/gems/ruby-1.9.2-p318@lb/gems/libv8-3.3.10.4/lib/libv8/v8/include -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/i386-cygwin -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/ruby/backward -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1 -I. -I/home/kuca/.rvm/usr/include -Wall -g -rdynamic -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -o v8_script.o -c v8_script.cpp
g++: unrecognized option `-rdynamic'
g++ -I. -I/home/kuca/.rvm/gems/ruby-1.9.2-p318@lb/gems/libv8-3.3.10.4/lib/libv8/v8/include -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/i386-cygwin -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/ruby/backward -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1 -I. -I/home/kuca/.rvm/usr/include -Wall -g -rdynamic -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -o v8_string.o -c v8_string.cpp
g++: unrecognized option `-rdynamic'
g++ -I. -I/home/kuca/.rvm/gems/ruby-1.9.2-p318@lb/gems/libv8-3.3.10.4/lib/libv8/v8/include -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/i386-cygwin -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/ruby/backward -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1 -I. -I/home/kuca/.rvm/usr/include -Wall -g -rdynamic -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -o v8_template.o -c v8_template.cpp
g++: unrecognized option `-rdynamic'
g++ -I. -I/home/kuca/.rvm/gems/ruby-1.9.2-p318@lb/gems/libv8-3.3.10.4/lib/libv8/v8/include -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/i386-cygwin -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/ruby/backward -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1 -I. -I/home/kuca/.rvm/usr/include -Wall -g -rdynamic -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -o v8_try_catch.o -c v8_try_catch.cpp
g++: unrecognized option `-rdynamic'
g++ -I. -I/home/kuca/.rvm/gems/ruby-1.9.2-p318@lb/gems/libv8-3.3.10.4/lib/libv8/v8/include -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/i386-cygwin -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/ruby/backward -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1 -I. -I/home/kuca/.rvm/usr/include -Wall -g -rdynamic -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -o v8_v8.o -c v8_v8.cpp
g++: unrecognized option `-rdynamic'
g++ -I. -I/home/kuca/.rvm/gems/ruby-1.9.2-p318@lb/gems/libv8-3.3.10.4/lib/libv8/v8/include -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/i386-cygwin -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/ruby/backward -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1 -I. -I/home/kuca/.rvm/usr/include -Wall -g -rdynamic -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -o v8_value.o -c v8_value.cpp
g++: unrecognized option `-rdynamic'
v8_value.cpp:175:2: warning: no newline at end of file
g++ -I. -I/home/kuca/.rvm/gems/ruby-1.9.2-p318@lb/gems/libv8-3.3.10.4/lib/libv8/v8/include -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/i386-cygwin -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1/ruby/backward -I/home/kuca/.rvm/rubies/ruby-1.9.2-p318/include/ruby-1.9.1 -I. -I/home/kuca/.rvm/usr/include -Wall -g -rdynamic -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -o v8_weakref.o -c v8_weakref.cpp
g++: unrecognized option `-rdynamic'
g++ -shared -s -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/home/kuca/.rvm/gems/ruby-1.9.2-p318@lb/gems/libv8-3.3.10.4/lib/libv8/build/v8 -L. -L/home/kuca/.rvm/rubies/ruby-1.9.2-p318/lib -L/home/kuca/.rvm/usr/lib -L. -Wl,--enable-auto-image-base,--enable-auto-import -lruby191 -lpthread -lrt -ldl -lcrypt -lv8 -lpthread
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lv8
collect2: ld returned 1 exit status
Makefile:182: recipe for target `v8.so' failed
make: *** [v8.so] Error 1
```