History

@Heesob..if you happen to be using the RubyInstaller recipes, would you try again but this time use the mingw.org GCC 4.6.1 to build? You'll need to pull updates from our repo as I just included support for that toolchain last night.

Build something like:

rake ruby19 local=C:\path\to\ruby\repo nogems=1 dkver=mingw-32-4.6.1

Even if you're not using the recipes, you can quickly create a mingw.org 4.6.1 toolkit to use via something like:

rake devkit 7z=1 dkver=mingw-32-4.6.1

and look in the 'pkg' subdir.

I build on Win7 and can't replicate the error you're seeing. Maybe there's some difference between the TDM-GCC and plain vanilla mingw.org toolkits, but I'd be surprised since they both use many of the same components.

I'm glad to here the solution of this problem.
Thanks to all the people that tackled it.

There is only one proposal from me.
In mswin, /Oy- is always specified.
So, in mingw, We should specify -fno-omit-frame-pointer, I think.
# Of course, if this option does not exist depending on a compiler
# version, we should check it in configure script.