Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MarkDBlackwell/9300534 to your computer and use it in GitHub Desktop.
Save MarkDBlackwell/9300534 to your computer and use it in GitHub Desktop.
gem 'atomic' compile on Windows XP 32-bit command line output
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
>gcc -v
'gcc' is not recognized as an internal or external command,
operable program or batch file.
>set path
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\progra\ruby\m\20
0\p451\bin
PATHEXT=.PY;.SCM;.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
>ruby -v
ruby 2.0.0p451 (2014-02-24) [i386-mingw32]
> gem install atomic -v '1.1.15' --platform=ruby
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing atomic:
ERROR: Failed to build gem native extension.
C:/progra/ruby/m/200/p451/bin/ruby.exe extconf.rb
checking for libkern/OSAtomic.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/progra/ruby/m/200/p451/bin/ruby
--with-atomic_reference-dir
--without-atomic_reference-dir
--with-atomic_reference-include
--without-atomic_reference-include=${atomic_reference-dir}/include
--with-atomic_reference-lib
--without-atomic_reference-lib=${atomic_reference-dir}/
C:/progra/ruby/m/200/p451/lib/ruby/2.0.0/mkmf.rb:434:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from C:/progra/ruby/m/200/p451/lib/ruby/2.0.0/mkmf.rb:565:in `try_cpp'
from C:/progra/ruby/m/200/p451/lib/ruby/2.0.0/mkmf.rb:1044:in `block in have_header'
from C:/progra/ruby/m/200/p451/lib/ruby/2.0.0/mkmf.rb:895:in `block in checking_for'
from C:/progra/ruby/m/200/p451/lib/ruby/2.0.0/mkmf.rb:340:in `block (2 levels) in postpone'
from C:/progra/ruby/m/200/p451/lib/ruby/2.0.0/mkmf.rb:310:in `open'
from C:/progra/ruby/m/200/p451/lib/ruby/2.0.0/mkmf.rb:340:in `block in postpone'
from C:/progra/ruby/m/200/p451/lib/ruby/2.0.0/mkmf.rb:310:in `open'
from C:/progra/ruby/m/200/p451/lib/ruby/2.0.0/mkmf.rb:336:in `postpone'
from C:/progra/ruby/m/200/p451/lib/ruby/2.0.0/mkmf.rb:894:in `checking_for'
from C:/progra/ruby/m/200/p451/lib/ruby/2.0.0/mkmf.rb:1043:in `have_header'
from extconf.rb:17:in `<main>'
Gem files will remain installed in C:/progra/ruby/m/200/p451/lib/ruby/gems/2.0.0/gems/atomic-1.1.15 for inspection.
Results logged to C:/progra/ruby/m/200/p451/lib/ruby/gems/2.0.0/gems/atomic-1.1.15/ext/gem_make.out
>copy C:\progra\ruby\m\200\p451\lib\ruby\gems\2.0.0\gems\atomic-1.1.15\ext\mkmf.log con:
"gcc -o conftest.exe -IC:/progra/ruby/m/200/p451/include/ruby-2.0.0/i386-mingw32
-IC:/progra/ruby/m/200/p451/include/ruby-2.0.0/ruby/backward
-IC:/progra/ruby/m/200/p451/include/ruby-2.0.0 -I. -DFD_SETSIZE=2048
-D_WIN32_WINNT=0x0501 -D_FILE_OFFSET_BITS=64 -O3
-fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter
-Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable
-Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement
-Wimplicit-function-declaration conftest.c -L.
-LC:/progra/ruby/m/200/p451/lib -L.
-lmsvcrt-ruby200 -lshell32 -lws2_32 -limagehlp -lshlwapi "
conftest.c:1:0: internal compiler error: Illegal instruction
Please submit a full bug report, with preprocessed source if appropriate.
See <mingw-w64-public@lists.sourceforge.net> for instructions.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: int main(int argc, char **argv)
6: {
7: return 0;
8: }
/* end */
1 file(s) copied.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment