Bug #7938

Stack consistency error while compiling 2.0.0-p0

Added by Peter Bjorklund about 1 year ago. Updated about 1 year ago.

[ruby-core:52795]
Status:Third Party's Issue
Priority:Normal
Assignee:Kenta Murata
Category:-
Target version:-
ruby -v:2.0.0p0 Backport:

Description

./configure

make

linking miniruby.txt Magnifier (2.99 KB) Peter Bjorklund, 02/24/2013 06:43 PM

config.log (733 KB) Peter Bjorklund, 02/27/2013 07:29 AM


Related issues

Related to Backport93 - Backport #7946: 1.9.3-p385以降でclangでのビルド時にエラー(error: implicit conversion l... Closed 02/25/2013

Associated revisions

Revision 39517
Added by Yui NARUSE about 1 year ago

  • vmexec.h (ENDINSN): llvm-gcc may optimize out regcfp and cause Stack/cfp consistency error when the instruction doesn't use regcfp. 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]

History

#1 Updated by Yui NARUSE about 1 year ago

  • Status changed from Open to Feedback
  • Assignee set to Kenta Murata
  • Priority changed from Urgent to Normal

Could you show config.log, clang --version, and gcc --version?

#2 Updated by Kenta Murata about 1 year ago

  • ruby -v changed from 1.9.3p286 to 2.0.0p0

I cannot reproduce it with gcc 4.2.1 (Apple Inc. build 5666) and clang 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn) on darwin 12.2.0.

#3 Updated by Konstantin Shabanov about 1 year ago

I've got the same error with
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)

#4 Updated by Yui NARUSE about 1 year 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 Updated by Peter Bjorklund about 1 year ago

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)
Target: x86_64-apple-darwin12.2.0
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.

Also available in: Atom PDF