Stack consistency error while compiling 2.0.0-p0
- vm_exec.h (END_INSN): llvm-gcc may optimize out reg_cfp and cause Stack/cfp consistency error when the instruction doesn't use reg_cfp. Usually instructions use PUSH() but for example trace doesn't. This hack cause speed down but you shouldn't use llvm-gcc, use clang. [Bug #7938]
#4 [ruby-core:52840] Updated by Yui NARUSE almost 3 years ago
- Status changed from Feedback to Third Party's Issue
This sounds because they use Xcode 4.2 with ruby-build which wrongly hacks with CC=cc and it breaks build.
See also https://github.com/sstephenson/ruby-build/issues/290
It will be fixed by ruby-build.
If you don't use ruby-build and not set CC=cc, please comment it.
#5 [ruby-core:52962] Updated by Peter Bjorklund almost 3 years ago
- File config.log added
naruse (Yui NARUSE) wrote:
Could you show config.log, clang --version, and gcc --version?
Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
Thread model: posix
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.