rubyjs / therubyracer

Embed the V8 Javascript Interpreter into Ruby
1.67k stars 190 forks source link

Can't compile on Windows 10 #422

Closed alehostert closed 7 years ago

alehostert commented 7 years ago

Hello.

Trying to compile it on Windows 10 with Ruby 2.3.0 and DevKit 4.7.2.

> gem install therubyracer -v '0.12.2'
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing therubyracer:
        ERROR: Failed to build gem native extension.

    current directory: C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/therubyracer-0.12.2/ext/v8
C:/tools/ruby23/bin/ruby.exe -r ./siteconf20161201-15024-100bo85.rb extconf.rb
checking for main() in -lpthread... yes
creating Makefile

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  C:/tools/ruby23/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/therubyracer-0.12.2/mkmf.log

current directory: C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/therubyracer-0.12.2/ext/v8
make "DESTDIR=" clean

current directory: C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/therubyracer-0.12.2/ext/v8
make "DESTDIR="
generating init-x64-mingw32.def
compiling accessor.cc
x86_64-w64-mingw32-g++.exe: error: unrecognized command line option '-rdynamic'
make: *** [accessor.o] Error 1

make failed, exit code 2

Gem files will remain installed in C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/therubyracer-0.12.2 for inspection.
Results logged to C:/tools/ruby23/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/therubyracer-0.12.2/gem_make.out

I could not find anything on Google, so came ask for help here. Anyone can help?

alehostert commented 7 years ago

Is this answer on StackOverflow still valid? If true, this issue is useless.

ignisf commented 7 years ago

Hello, @Hostert,

Here is the blocker for the Windows support of therubyracer: https://github.com/cowboyd/libv8/issues/217

alehostert commented 7 years ago

Thank you @ignisf 👍