Summary: Running cmd.exe on Windows 10 Anniversary Update 64 bit:
32 bit Ruby crashes immediately on startup
64 bit Ruby seems to run correctly, but trying to build native extensions with the devkit fails
Details:
I've been running Ruby (32 bit) fine for many years on Windows 7 64 bit. Thanks for all your work on this!!!
I recently upgraded to Windows 10 Pro Anniversary Update 64 bit version 1607. (I installed Win10 over Win7 on the same machine.) This went well, and all my old apps that I've tested work fine, except for Ruby.
(Of course I'm running all this in cmd.exe, not the new Bash/Ubuntu environment)
Running "ruby -v" with Ruby 2.2.5p319 immediately gets a dialog box saying "Ruby interpreter (CUI) 2.2.5p319 [i386-mingw32] has stopped working". Clicking "Debug" starts Visual Studio 2015 which displays the dialog "Unhandled exception at 0x0765DC30 in ruby.exe: 0xC0000005: Access violation reading location 0x0765DC30."
The call stack in Visual Studio 2015 shows only 3 lines:
0765DC30()
[Frames below may be incorrect and/or missing]
[External code]
I get the same behavior with several other 32 bit Rubies. I tried changing ruby.exe to run in Windows 7 compatibility mode, but that didn't change anything.
64 bit Rubies (for example 2.2.5p319 64 bit or 2.3.1p112 64 bit) seem to work OK, but I didn't test them extensively. But I can't build any native extensions
with DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe:
C:\Ruby\Ruby231p112x64\bin>gem install json --platform=ruby
Fetching: json-2.0.2.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby/Ruby231p112x64/lib/ruby/gems/2.3.0/gems/json-2.0.2/ext/json/ext/generator
C:/Ruby/Ruby231p112x64/bin/ruby.exe -r ./siteconf20160923-93048-105xm42.rb extconf.rb
creating Makefile
current directory: C:/Ruby/Ruby231p112x64/lib/ruby/gems/2.3.0/gems/json-2.0.2/ext/json/ext/generator
make "DESTDIR=" clean
current directory: C:/Ruby/Ruby231p112x64/lib/ruby/gems/2.3.0/gems/json-2.0.2/ext/json/ext/generator
make "DESTDIR="
make failed, uncaught signal 11
Gem files will remain installed in C:/Ruby/Ruby231p112x64/lib/ruby/gems/2.3.0/gems/json-2.0.2 for inspection.
Results logged to C:/Ruby/Ruby231p112x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/json-2.0.2/gem_make.out
gem_make.out contains the following:
----------------------------------------
current directory: C:/Ruby/Ruby231p112x64/lib/ruby/gems/2.3.0/gems/json-2.0.2/ext/json/ext/generator
C:/Ruby/Ruby231p112x64/bin/ruby.exe -r ./siteconf20160923-93048-105xm42.rb extconf.rb
creating Makefile
current directory: C:/Ruby/Ruby231p112x64/lib/ruby/gems/2.3.0/gems/json-2.0.2/ext/json/ext/generator
make "DESTDIR=" clean
current directory: C:/Ruby/Ruby231p112x64/lib/ruby/gems/2.3.0/gems/json-2.0.2/ext/json/ext/generator
make "DESTDIR="
make failed, uncaught signal 11
--------------------------------------------------
Thanks for any assistance!!!
Wayne