From: Vit Ondruch Date: 2012-01-09T20:54:02+09:00 Subject: [ruby-core:42001] [ruby-trunk - Bug #5851] make check fails when compiling with GCC 4.7 - *** longjmp causes uninitialized stack frame *** Issue #5851 has been updated by Vit Ondruch. Hi Luis, You can find the GCC glags in the build.log [1]. I was using the following settings: CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables'. I will try the flags you are suggesting. BTW with -O0, it passes (unfortunately fails in other test) and with -O1, I get a bit more verbose output [2]. And this [3] is the backtrace I obtained using GBD. [1] http://koji.fedoraproject.org/koji/getfile?taskID=3624341&name=build.log [2] https://gist.github.com/1582632 [3] https://gist.github.com/1582640 ---------------------------------------- Bug #5851: make check fails when compiling with GCC 4.7 - *** longjmp causes uninitialized stack frame *** https://bugs.ruby-lang.org/issues/5851 Author: Vit Ondruch Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux] I am experiencing strange test error [1] when compiling Ruby 1.9.3-p0/1.9.3-p19/2.0.0 rev 34217 with GCC 4.7 in Fedora Rawhide [2]. Everything worked just fine with GCC 4.6. Vit [1] https://gist.github.com/1564328 [2] http://koji.fedoraproject.org/koji/taskinfo?taskID=3624339 -- http://bugs.ruby-lang.org/