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

Can't compile on Windows 10 #422

Closed
alehostert opened this issue Dec 1, 2016 · 3 comments
Closed

Can't compile on Windows 10 #422

alehostert opened this issue Dec 1, 2016 · 3 comments

Comments

@alehostert
Copy link

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
Copy link
Author

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

@ignisf
Copy link
Collaborator

ignisf commented Dec 1, 2016

Hello, @Hostert,

Here is the blocker for the Windows support of therubyracer: rubyjs/libv8#217

@alehostert
Copy link
Author

Thank you @ignisf 👍

@ignisf ignisf closed this as completed Dec 27, 2016
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

2 participants