Bug #8036

Unable to compile Ruby 2.0.0p20 on Mac OSX 10.7.5

Added by Eric Peterson about 1 year ago. Updated about 1 year ago.

Target version:Next Major
ruby -v:ruby 1.9.3p297 (2012-10-19 revision 37266) [x86_64-darwin11.4.2] Backport:


svn co http://svn.ruby-lang.org/repos/ruby/branches/ruby_2_0_0/ ruby2

cd ruby2

autoconf --version
autoconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
http://gnu.org/licenses/gpl.html, http://gnu.org/licenses/exceptions.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.

autoconf --verbose

./configure --version
generated by GNU Autoconf 2.69

Copyright (C) 2012 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.

./configure --program-suffix=20

clang --version
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix

CC = /usr/bin/gcc
LD = ld
LDSHARED = /usr/bin/gcc -dynamic -bundle
CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -pipe
XCFLAGS = -include ruby/config.h -include ruby/missing.h -DFORTIFYSOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBYEXPORT -fPIE
DLDFLAGS = -Wl,-undefined,dynamic
lookup -Wl,-multiplydefined,suppress -fstack-protector -Wl,-u,objcmsgSend -pie
compiling main.c
compiling dmydln.c
compiling dmyencoding.c
compiling version.c
compiling dmyversion.c
generating miniprelude.c
generating id.h
id.h updated
compiling miniprelude.c
translating probes probes.d
. ./vm
compiling array.c
compiling bignum.c
compiling class.c
compiling compar.c
compiling complex.c
compiling dir.c
compiling dlnfind.c
compiling enum.c
compiling enumerator.c
generating known
knownerrors.inc updated
compiling error.c
compiling eval.c
compiling load.c
compiling proc.c
compiling file.c
compiling gc.c
compiling hash.c
compiling inits.c
compiling io.c
compiling marshal.c
compiling math.c
compiling node.c
compiling numeric.c
compiling object.c
compiling pack.c
generating parse.c
copying lex.c
generating id.c
id.c updated
compiling parse.c
compiling process.c
compiling random.c
compiling range.c
compiling rational.c
compiling re.c
compiling regcomp.c
compiling regenc.c
compiling regerror.c
compiling regexec.c
compiling regparse.c
compiling regsyntax.c
compiling ruby.c
compiling safe.c
compiling signal.c
compiling sprintf.c
compiling st.c
compiling strftime.c
compiling string.c
compiling struct.c
compiling time.c
compiling transcode.c
compiling util.c
compiling variable.c
generating insns.inc
generating insns
generating optinsn.inc
generating optunifs.inc
generating optsc.inc
compiling compile.c
compiling debug.c
generating node
compiling iseq.c
generating vmtc.inc
generating vm.inc
compiling vm.c
compiling vmdump.c
compiling vm
compiling vmtrace.c
compiling thread.c
compiling cont.c
compiling ./enc/ascii.c
compiling ./enc/us
compiling ./enc/unicode.c
compiling ./enc/utf8.c
generating newline.c ...
converter for universal
converter for crlfnewline
converter for cr
done. (0.03user 0.00system 0.01elapsed)
compiling newline.c
compiling ./missing/setproctitle.c
compiling dmyext.c
linking miniruby
/Users/epeterson/InWork/Projects/lang/ruby2/lib/fileutils.rb:111: [BUG] Stack consistency error (sp: 38, bp: 36)
ruby 2.0.0p20 (2013-03-06) [x86

-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
* /Library/Logs/CrashReporter
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
the more detail of.

-- Control frame information -----------------------------------------------
c:0006 p:0038 s:0038 e:000037 CLASS /Users/epeterson/InWork/Projects/lang/ruby2/lib/fileutils.rb:111
c:0005 p:0035 s:0034 e:000033 CLASS /Users/epeterson/In
c:0004 p:0009 s:0032 e:000031 TOP /Users/epeterson/In_Work/Projects/lang/ruby2/lib/fileutils.rb:85 [FINISH]
c:0003 p:---- s:0030 e:000029 CFUNC :require
c:0002 p:0098 s:0026 E:0016b8 EVAL ./tool/mkconfig.rb:11 [FINISH]
c:0001 p:0000 s:0002 E:000728 TOP [FINISH]

./tool/mkconfig.rb:11:in <main>'
/Users/epeterson/InWork/Projects/lang/ruby2/lib/fileutils.rb:85:in <top (required)>'
Work/Projects/lang/ruby2/lib/fileutils.rb:111:in `module:NoWrite'

-- C level backtrace information -------------------------------------------
0 miniruby 0x0000000103db3e54 rbvmbugreport + 164
1 miniruby 0x0000000103c8b8be reportbug + 302
2 miniruby 0x0000000103c8bb74 rb
bug + 180
3 miniruby 0x0000000103da9ed0 vmexeccore + 32080
4 miniruby 0x0000000103daa0ae vmexec + 94
5 miniruby 0x0000000103daaf8a rb
iseqeval + 266
6 miniruby 0x0000000103c904d2 rb
loadinternal + 306
7 miniruby 0x0000000103c91c21 rb
requiresafe + 1313
8 miniruby 0x0000000103d99c84 call
cfunc1 + 20
9 miniruby 0x0000000103da0156 vm
callcfunc + 1046
10 miniruby 0x0000000103daed10 vm
callmethod + 224
11 miniruby 0x0000000103da5393 vm
execcore + 12819
12 miniruby 0x0000000103daa0ae vm
exec + 94
13 miniruby 0x0000000103daae5e rbiseqevalmain + 206
14 miniruby 0x0000000103c8ec3f ruby
execinternal + 111
15 miniruby 0x0000000103c8fc22 ruby
run_node + 82
16 miniruby 0x0000000103c55fff main + 79
17 miniruby 0x0000000103c55fa4 start + 52
18 ??? 0x0000000000000009 0x0 + 9

-- Other runtime information -----------------------------------------------

  • Loaded script: ./tool/mkconfig.rb

  • Loaded features:

    0 enumerator.so

You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

make: *** [.rbconfig.time] Abort trap: 6

miniruby_2013-03-06-124123_EDP-MBP15.crash - /Users/epeterson/Library/Logs/DiagnosticReports/miniruby_2013-03-06-124123_EDP-MBP15.crash (8.97 KB) Eric Peterson, 03/07/2013 05:56 AM


#1 Updated by Nobuyoshi Nakada about 1 year ago

  • Status changed from Open to Rejected

You don't use clang, but /usr/bin/gcc.

#2 Updated by Eric Peterson about 1 year ago

nobu (Nobuyoshi Nakada) wrote:

You don't use clang, but /usr/bin/gcc.

CC = /usr/bin/gcc
LD = ld
LDSHARED = /usr/bin/gcc -dynamic -bundle

#3 Updated by Eric Peterson about 1 year ago

gcc -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/[cg][.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)

#4 Updated by Yui NARUSE about 1 year ago

Ruby 2.0's configure normally selects clang.
You seems set CC as gcc.

Also available in: Atom PDF