Issue #6816 has been reported by hg (HG Hoehne).

----------------------------------------
Bug #6816: Can't compile ruby 2.0.0dev on Mac OS X 10.8
https://bugs.ruby-lang.org/issues/6816

Author: hg (HG Hoehne)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 2.0.0dev (2012-07-31 trunk 36583) [x86_64-darwin12.0.0] 


	CC = gcc
	LD = ld
	LDSHARED = 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 -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration  -pipe 
	XCFLAGS = -include ruby/config.h -include ruby/missing.h -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT -fPIE
	CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -I. -I.ext/include/x86_64-darwin12.0.0 -I./include -I.
	DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -fstack-protector -Wl,-u,_objc_msgSend -pie  
	SOLIBS = 
<internal:prelude>:17: [BUG] Stack consistency error (sp: 5, bp: 4)
ruby 2.0.0dev (2012-07-31 trunk 36583) [x86_64-darwin12.0.0]

-- Control frame information -----------------------------------------------
c:0002 p:0020 s:0005 b:0004 e:000003 TOP    <internal:prelude>:17 [FINISH]
c:0001 p:0000 s:0002 b:0002 e:002538 TOP    [FINISH]

<internal:prelude>:17:in `<compiled>'

-- C level backtrace information -------------------------------------------

   See Crash Report log file under ~/Library/Logs/CrashReporter or
   /Library/Logs/CrashReporter, for the more detail of.

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

* Loaded script: ./miniruby

* Loaded features:

    0 enumerator.so

[NOTE]
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


 (Crash Report log file in ~/Library/Logs/DiagnosticReports)

Process:         miniruby [19253]
Path:            /Users/USER/Documents/*/miniruby
Identifier:      miniruby
Version:         0
Code Type:       X86-64 (Native)
Parent Process:  make [19251]
User ID:         501

Date/Time:       2012-07-31 07:32:13.353 +0200
OS Version:      Mac OS X 10.8 (12A269)
Report Version:  10

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information:
abort() called

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fff9390e212 __pthread_kill + 10
1   libsystem_c.dylib             	0x00007fff95594b34 pthread_kill + 90
2   libsystem_c.dylib             	0x00007fff955d8dfa abort + 143
3   miniruby                      	0x000000010c7f8a09 rb_bug + 185
4   miniruby                      	0x000000010c908e2b vm_exec_core + 26763 (insns.def:1581)
5   miniruby                      	0x000000010c909c6e vm_exec + 94 (vm.c:1127)
6   miniruby                      	0x000000010c90a480 rb_iseq_eval + 208 (vm.c:1354)
7   miniruby                      	0x000000010c8a3a99 ruby_process_options + 1481 (ruby.c:1106)
8   miniruby                      	0x000000010c7fbbd0 ruby_options + 128 (eval.c:96)
9   miniruby                      	0x000000010c7c6c67 main + 71 (main.c:36)
10  libdyld.dylib                 	0x00007fff8a6c97e1 start + 1

Thread 1:
0   libsystem_c.dylib             	0x00007fff955801b4 thread_start + 0

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000000000006  rcx: 0x00007fff53438f88  rdx: 0x0000000000000000
  rdi: 0x0000000000000303  rsi: 0x0000000000000006  rbp: 0x00007fff53438fb0  rsp: 0x00007fff53438f88
   r8: 0x00007fff7aa63278   r9: 0x00007fff53438e30  r10: 0x0000000020000000  r11: 0x0000000000000206
  r12: 0x00007fed6a0c9c48  r13: 0x00007fed6a0c9c20  r14: 0x00007fff7aa64180  r15: 0x0000000000000179
  rip: 0x00007fff9390e212  rfl: 0x0000000000000206  cr2: 0x00007fff7aa5cfe8
Logical CPU: 0

Binary Images:
       0x10c7c6000 -        0x10c9bdfff +miniruby (0) <A0B7DB18-233A-3A3C-9CF0-E392761E1263> /Users/USER/Documents/*/miniruby
    0x7fff6c3c6000 -     0x7fff6c3fa93f  dyld (210.2.3) <A40597AA-5529-3337-8C09-D8A014EB1578> /usr/lib/dyld
    0x7fff89075000 -     0x7fff89076ff7  libSystem.B.dylib (169.3) <365477AB-D641-389D-B8F4-A1FAE9657EEE> /usr/lib/libSystem.B.dylib
    0x7fff890ab000 -     0x7fff890adfff  libquarantine.dylib (52) <4BE2E642-A14F-340A-B482-5BD2AEFD9C24> /usr/lib/system/libquarantine.dylib
    0x7fff8946a000 -     0x7fff89471fff  libcopyfile.dylib (89) <876573D0-E907-3566-A108-577EAD1B6182> /usr/lib/system/libcopyfile.dylib
    0x7fff89472000 -     0x7fff894a0ff7  libsystem_m.dylib (3022.6) <B434BE5C-25AB-3EBD-BAA7-5304B34E3441> /usr/lib/system/libsystem_m.dylib
    0x7fff8a6c7000 -     0x7fff8a6caff7  libdyld.dylib (210.2.3) <F59367C9-C110-382B-A695-9035A6DD387E> /usr/lib/system/libdyld.dylib
    0x7fff8ad13000 -     0x7fff8ad62ff7  libcorecrypto.dylib (106) <57BC99C6-3C3F-344C-BDD6-25E845D956F2> /usr/lib/system/libcorecrypto.dylib
    0x7fff8ae01000 -     0x7fff8ae02ff7  libremovefile.dylib (23.1) <DBBFAF35-AC78-3856-92F6-6E4FD9DF14A2> /usr/lib/system/libremovefile.dylib
    0x7fff8b53f000 -     0x7fff8b561ff7  libxpc.dylib (140.37) <C552985C-2171-3136-A1B9-3AB21CBF7C4A> /usr/lib/system/libxpc.dylib
    0x7fff8be94000 -     0x7fff8be9cff7  libsystem_dnssd.dylib (379.27) <057906EA-206E-3C35-B43F-5D936FD0A84F> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff8c20b000 -     0x7fff8c213fff  liblaunch.dylib (442.21) <224CB010-6CF8-3FC2-885C-6F80330321EB> /usr/lib/system/liblaunch.dylib
    0x7fff8c223000 -     0x7fff8c225ff7  libunc.dylib (25) <92805328-CD36-34FF-9436-571AB0485072> /usr/lib/system/libunc.dylib
    0x7fff8c393000 -     0x7fff8c3c9fff  libsystem_info.dylib (406.17) <4FFCA242-7F04-365F-87A6-D4EFB89503C1> /usr/lib/system/libsystem_info.dylib
    0x7fff8d59c000 -     0x7fff8d5a1fff  libcache.dylib (57) <65187C6E-3FBF-3EB8-A1AA-389445E2984D> /usr/lib/system/libcache.dylib
    0x7fff8edab000 -     0x7fff8edf7ff7  libauto.dylib (185.1) <73CDC482-16E3-3FC7-9BB4-FBA2DA44DBC2> /usr/lib/libauto.dylib
    0x7fff8efc1000 -     0x7fff8efcffff  libcommonCrypto.dylib (60026) <2D6537F5-1B5E-305C-A1CF-D1FA80CA3939> /usr/lib/system/libcommonCrypto.dylib
    0x7fff8fa59000 -     0x7fff8fa7dff7  libc++abi.dylib (24.2) <340E7C7B-DC93-3AA2-B015-B1C9541EC255> /usr/lib/libc++abi.dylib
    0x7fff8fc08000 -     0x7fff8fc16ff7  libsystem_network.dylib (77.10) <0D99F24E-56FE-380F-B81B-4A4C630EE587> /usr/lib/system/libsystem_network.dylib
    0x7fff9067b000 -     0x7fff90686fff  libsystem_notify.dylib (98.5) <C49275CC-835A-3207-AFBA-8C01374927B6> /usr/lib/system/libsystem_notify.dylib
    0x7fff90b36000 -     0x7fff90b9eff7  libc++.1.dylib (65.1) <20E31B90-19B9-3C2A-A9EB-474E08F9FE05> /usr/lib/libc++.1.dylib
    0x7fff913f0000 -     0x7fff913f1fff  libsystem_blocks.dylib (59) <D92DCBC3-541C-37BD-AADE-ACC75A0C59C8> /usr/lib/system/libsystem_blocks.dylib
    0x7fff92a25000 -     0x7fff92a3aff7  libdispatch.dylib (228.18) <0B6B6E7F-4D8A-3F3B-A4BF-6CF34638DBBB> /usr/lib/system/libdispatch.dylib
    0x7fff93608000 -     0x7fff93609ff7  libdnsinfo.dylib (453.16) <38A3E0F4-E34C-3D45-A2C9-4CDE2DF007BD> /usr/lib/system/libdnsinfo.dylib
    0x7fff93636000 -     0x7fff9374ea27  libobjc.A.dylib (532) <9FA80CDA-97F4-3801-8879-0C1B976BC5CA> /usr/lib/libobjc.A.dylib
    0x7fff938fc000 -     0x7fff93917ff7  libsystem_kernel.dylib (2050.7.9) <E0447BF5-E104-35B0-B28B-4156887D58F1> /usr/lib/system/libsystem_kernel.dylib
    0x7fff93926000 -     0x7fff9392bfff  libcompiler_rt.dylib (30) <08F8731D-5961-39F1-AD00-4590321D24A9> /usr/lib/system/libcompiler_rt.dylib
    0x7fff9398e000 -     0x7fff9398fff7  libsystem_sandbox.dylib (220) <3C3B03CF-C525-3CB3-8557-62E91B93AC95> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff94199000 -     0x7fff94199fff  libkeymgr.dylib (25) <CC9E3394-BE16-397F-926B-E579B60EE429> /usr/lib/system/libkeymgr.dylib
    0x7fff9540d000 -     0x7fff95413fff  libmacho.dylib (829) <BF332AD9-E89F-387E-92A4-6E1AB74BD4D9> /usr/lib/system/libmacho.dylib
    0x7fff9557f000 -     0x7fff9564bfef  libsystem_c.dylib (825.24) <16B6B86C-53EE-36E8-AC2B-4AADC1008098> /usr/lib/system/libsystem_c.dylib
    0x7fff95a37000 -     0x7fff95a3dff7  libunwind.dylib (35.1) <21703D36-2DAB-3D8B-8442-EAAB23C060D3> /usr/lib/system/libunwind.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 11431
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=59.7M resident=16.3M(27%) swapped_out_or_unallocated=43.4M(73%)
Writable regions: Total=83.5M written=1712K(2%) resident=1804K(2%) swapped_out=0K(0%) unallocated=81.8M(98%)
 
REGION TYPE                      VIRTUAL
===========                      =======
MALLOC                             19.2M
MALLOC guard page                    16K
STACK GUARD                           8K
Stack                              64.0M
__DATA                              784K
__LINKEDIT                         53.3M
__TEXT                             6576K
shared memory                        12K
===========                      =======
TOTAL                             143.7M

 


-- 
http://bugs.ruby-lang.org/