Using dev kit (gcc 4.5) it spits out
C:\Ruby\lib\ruby\gems\1.9.1\gems\atomic-0.0.6\ext/atomic_reference.c:38: undefined reference to `__sync_bool_compare_and_swap_4'
collect2: ld returned 1 exit status
make: *** [atomic_reference.so] Error 1
This is probably due to the target processor being too low. Should probably be GXX_FLAGS=-march=i686
I don't have a windows box available at the moment. Can you try to modify the Makefile generated by extconf.rb to add the "-march=i686" option to the CFLAGS ?
Works perfectly with that flag added to the CFLAGS :)
$CFLAGS += " -march=i686"
To extconf.rb should do the trick.
Modifications to support building on Windows. Fixes #8.
I am currently unable to install atomic under ruby 2.0.0 64bit on Windows 8 Pro x64, using DevKit-mingw64-64-4.7.2-20130224-1432.
"CPU you selected does not support x86-64 instruction set"
However, after removing those four lines from extconf.rb, the gem builds and installs just fine.
Are they still needed for older ruby versions on windows, or can they be removed altogether?