From: Luis Lavena Date: 2011-10-17T23:08:34+09:00 Subject: [ruby-core:40180] Re: [Ruby 1.9 - Bug #5407] Cannot build ruby-1.9.3-rc1 with TDM-GCC 4.6.1 on Windows XP SP3 On Mon, Oct 17, 2011 at 11:59 AM, Heesob Park wrote: > > Issue #5407 has been updated by Heesob Park. > > > After some trial and error, it turns out this bug is GCC 4.6.1 optimization flag issue. > > According to the document of gcc 4.6.1(http://gcc.gnu.org/onlinedocs/gcc-4.6.1/gcc/Optimize-Options.html#index-fomit_002dframe_002dpointer-691): > "Starting with GCC version 4.6, the default setting (when not optimizing for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has been changed to -fomit-frame-pointer. The default can be reverted to -fno-omit-frame-pointer by configuring GCC with the --enable-frame-pointer configure option." > > The work around is adding -fno-omit-frame-pointer flag like this: > make optflags='-O3 -fno-omit-frame-pointer' > > I think this also applies to the Bug #5375. Thank you Heesob, what is interesting is that this do not happen on trunk. Perhaps there is something else we are missing? -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup�ry