Last active
December 15, 2015 10:58
-
-
Save rdpoor/5249186 to your computer and use it in GitHub Desktop.
compilation failure of ruby-2.0.0-p0 under Mac OS X 10.8.3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Summary: a "standard build" of ruby-2.0.0-p0 under Mac OS X 10.8.3, | |
fails with an abort trap while linking miniruby | |
Compilation environment: | |
MacBook Pro | |
OS X 10.8.3 | |
Xcode version 4.6.1 with command line tools | |
gcc version 4.2.1 (Based on Apple Inc. build 5658) | |
Commands: | |
$ ./configure --prefix=${INSTALL_DIR} --enable-share --disable-install-doc --with-opt-dir=${INSTALL_DIR} | |
$ make | |
Full details given in the comments below. |
output of make command
$ make
CC = gcc-4.2
LD = ld
LDSHARED = gcc-4.2 -dynamiclib
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 -fno-common -pipe
XCFLAGS = -include ruby/config.h -include ruby/missing.h -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I/Users/r/Desktop/Beryl/usr/include -I. -I.ext/include/x86_64-darwin12.3.0 -I./include -I.
DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -L/Users/r/Desktop/Beryl/usr/lib -install_name /Users/r/Desktop/Beryl/usr/lib/libruby.2.0.0.dylib -current_version 2.0.0 -compatibility_version 2.0.0 -fstack-protector -Wl,-u,_objc_msgSend -fstack-protector -Wl,-u,_objc_msgSend
SOLIBS =
compiling main.c
compiling dmydln.c
compiling dmyencoding.c
compiling version.c
compiling dmyversion.c
compiling miniprelude.c
translating probes probes.d
. ./vm_opts.h
compiling array.c
compiling bignum.c
compiling class.c
compiling compar.c
compiling complex.c
compiling dir.c
compiling dln_find.c
compiling enum.c
compiling enumerator.c
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
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
compiling compile.c
compiling debug.c
compiling iseq.c
compiling vm.c
compiling vm_dump.c
compiling vm_backtrace.c
compiling vm_trace.c
compiling thread.c
compiling cont.c
compiling ./enc/ascii.c
compiling ./enc/us_ascii.c
compiling ./enc/unicode.c
compiling ./enc/utf_8.c
compiling newline.c
compiling ./missing/setproctitle.c
compiling dmyext.c
linking miniruby
/Users/r/Desktop/Beryl/tarballs/ruby-2.0.0-p0/lib/fileutils.rb:111: [BUG] Stack consistency error (sp: 38, bp: 36)
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.3.0]
-- 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/r/Desktop/Beryl/tarballs/ruby-2.0.0-p0/lib/fileutils.rb:111
c:0005 p:0035 s:0034 e:000033 CLASS /Users/r/Desktop/Beryl/tarballs/ruby-2.0.0-p0/lib/fileutils.rb:107
c:0004 p:0009 s:0032 e:000031 TOP /Users/r/Desktop/Beryl/tarballs/ruby-2.0.0-p0/lib/fileutils.rb:85 [FINISH]
c:0003 p:---- s:0030 e:000029 CFUNC :require
c:0002 p:0098 s:0026 E:000608 EVAL ./tool/mkconfig.rb:11 [FINISH]
c:0001 p:0000 s:0002 E:001518 TOP [FINISH]
./tool/mkconfig.rb:11:in `<main>'
./tool/mkconfig.rb:11:in `require'
/Users/r/Desktop/Beryl/tarballs/ruby-2.0.0-p0/lib/fileutils.rb:85:in `<top (required)>'
/Users/r/Desktop/Beryl/tarballs/ruby-2.0.0-p0/lib/fileutils.rb:107:in `<module:FileUtils>'
/Users/r/Desktop/Beryl/tarballs/ruby-2.0.0-p0/lib/fileutils.rb:111:in `<module:NoWrite>'
-- C level backtrace information -------------------------------------------
0 miniruby 0x00000001056f0e64 rb_vm_bugreport + 164
1 miniruby 0x00000001055c817e report_bug + 302
2 miniruby 0x00000001055c8434 rb_bug + 180
3 miniruby 0x00000001056e6ee0 vm_exec_core + 32080
4 miniruby 0x00000001056e70be vm_exec + 94
5 miniruby 0x00000001056e7f9a rb_iseq_eval + 266
6 miniruby 0x00000001055ccd92 rb_load_internal + 306
7 miniruby 0x00000001055ce4e1 rb_require_safe + 1313
8 miniruby 0x00000001056d6ca4 call_cfunc_1 + 20
9 miniruby 0x00000001056dd166 vm_call_cfunc + 1046
10 miniruby 0x00000001056ebd20 vm_call_method + 224
11 miniruby 0x00000001056e23a3 vm_exec_core + 12819
12 miniruby 0x00000001056e70be vm_exec + 94
13 miniruby 0x00000001056e7e6e rb_iseq_eval_main + 206
14 miniruby 0x00000001055cb4ff ruby_exec_internal + 111
15 miniruby 0x00000001055cc4e2 ruby_run_node + 82
16 miniruby 0x00000001055925ff main + 79
17 libdyld.dylib 0x00007fff8896f7e1 start + 0
18 ??? 0x0000000000000009 0x0 + 9
-- Other runtime information -----------------------------------------------
* Loaded script: ./tool/mkconfig.rb
* 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
$
contents of ...DiagnosticReports/miniruby_2013-03-26-130053_mbp.crash
# file: ~/Library/Logs/DiagnosticReports/miniruby_2013-03-26-130053_mbp.crash
Process: miniruby [13458]
Path: /Users/USER/Desktop/*/miniruby
Identifier: miniruby
Version: 0
Code Type: X86-64 (Native)
Parent Process: make [12645]
User ID: 501
Date/Time: 2013-03-26 13:00:53.206 -0700
OS Version: Mac OS X 10.8.3 (12D78)
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 0x00007fff85c36212 __pthread_kill + 10
1 libsystem_c.dylib 0x00007fff819f3b54 pthread_kill + 90
2 libsystem_c.dylib 0x00007fff81a37dce abort + 143
3 miniruby 0x00000001055c8439 rb_bug + 185
4 miniruby 0x00000001056e6ee0 vm_exec_core + 32080 (insns.def:1539)
5 miniruby 0x00000001056e70be vm_exec + 94 (vm.c:1176)
6 miniruby 0x00000001056e7f9a rb_iseq_eval + 266 (vm.c:1411)
7 miniruby 0x00000001055ccd92 rb_load_internal + 306 (load.c:559)
8 miniruby 0x00000001055ce4e1 rb_require_safe + 1313 (load.c:917)
9 miniruby 0x00000001056d6ca4 call_cfunc_1 + 20 (vm_insnhelper.c:1304)
10 miniruby 0x00000001056dd166 vm_call_cfunc + 1046 (vm_insnhelper.c:1438)
11 miniruby 0x00000001056ebd20 vm_call_method + 224 (vm_insnhelper.c:1697)
12 miniruby 0x00000001056e23a3 vm_exec_core + 12819 (insns.def:1017)
13 miniruby 0x00000001056e70be vm_exec + 94 (vm.c:1176)
14 miniruby 0x00000001056e7e6e rb_iseq_eval_main + 206 (vm.c:1424)
15 miniruby 0x00000001055cb4ff ruby_exec_internal + 111 (eval.c:255)
16 miniruby 0x00000001055cc4e2 ruby_run_node + 82 (eval.c:315)
17 miniruby 0x00000001055925ff main + 79 (main.c:36)
18 libdyld.dylib 0x00007fff8896f7e1 start + 1
Thread 1:
0 libsystem_kernel.dylib 0x00007fff85c36322 __select + 10
1 miniruby 0x00000001056f6228 thread_timer + 472 (thread_pthread.c:1240)
2 libsystem_c.dylib 0x00007fff819f27a2 _pthread_start + 327
3 libsystem_c.dylib 0x00007fff819df1e1 thread_start + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000006 rcx: 0x00007fff5a66d728 rdx: 0x0000000000000000
rdi: 0x0000000000000303 rsi: 0x0000000000000006 rbp: 0x00007fff5a66d750 rsp: 0x00007fff5a66d728
r8: 0x00007fff70ae0278 r9: 0x00007fff5a66d5d0 r10: 0x0000000020000000 r11: 0x0000000000000206
r12: 0x0000000000000008 r13: 0x0000000000000002 r14: 0x00007fff70ae1180 r15: 0x00007f8a59534650
rip: 0x00007fff85c36212 rfl: 0x0000000000000206 cr2: 0x00007fff70ad9ff0
Logical CPU: 0
Binary Images:
0x105591000 - 0x1057a4fff +miniruby (0) <283E1439-5A72-398B-BD29-B86B0C1E636B> /Users/USER/Desktop/*/miniruby
0x7fff65191000 - 0x7fff651c593f dyld (210.2.3) <6900F2BA-DB48-3B78-B668-58FC0CF6BCB8> /usr/lib/dyld
0x7fff8116b000 - 0x7fff8116dfff libquarantine.dylib (52) <4BE2E642-A14F-340A-B482-5BD2AEFD9C24> /usr/lib/system/libquarantine.dylib
0x7fff8152d000 - 0x7fff81533fff libmacho.dylib (829) <BF332AD9-E89F-387E-92A4-6E1AB74BD4D9> /usr/lib/system/libmacho.dylib
0x7fff818d4000 - 0x7fff818dcff7 libsystem_dnssd.dylib (379.37) <616FC901-151E-38BF-B2C4-24A351C5FAAD> /usr/lib/system/libsystem_dnssd.dylib
0x7fff819c4000 - 0x7fff819c5ff7 libremovefile.dylib (23.2) <6763BC8E-18B8-3AD9-8FFA-B43713A7264F> /usr/lib/system/libremovefile.dylib
0x7fff819de000 - 0x7fff81aaaff7 libsystem_c.dylib (825.26) <4C9EB006-FE1F-3F8F-8074-DFD94CF2CE7B> /usr/lib/system/libsystem_c.dylib
0x7fff8499a000 - 0x7fff8499ffff libcache.dylib (57) <65187C6E-3FBF-3EB8-A1AA-389445E2984D> /usr/lib/system/libcache.dylib
0x7fff84ced000 - 0x7fff84cfbfff libcommonCrypto.dylib (60027) <BAAFE0C9-BB86-3CA7-88C0-E3CBA98DA06F> /usr/lib/system/libcommonCrypto.dylib
0x7fff850a5000 - 0x7fff851bd92f libobjc.A.dylib (532.2) <90D31928-F48D-3E37-874F-220A51FD9E37> /usr/lib/libobjc.A.dylib
0x7fff85981000 - 0x7fff859e9ff7 libc++.1.dylib (65.1) <20E31B90-19B9-3C2A-A9EB-474E08F9FE05> /usr/lib/libc++.1.dylib
0x7fff85ae8000 - 0x7fff85ae9ff7 libsystem_sandbox.dylib (220.2) <6838A6FD-8626-3356-BB4F-BB4787216207> /usr/lib/system/libsystem_sandbox.dylib
0x7fff85c24000 - 0x7fff85c3fff7 libsystem_kernel.dylib (2050.22.13) <5A961E2A-CFB8-362B-BC43-122704AEB047> /usr/lib/system/libsystem_kernel.dylib
0x7fff85c40000 - 0x7fff85c76fff libsystem_info.dylib (406.17) <4FFCA242-7F04-365F-87A6-D4EFB89503C1> /usr/lib/system/libsystem_info.dylib
0x7fff86d86000 - 0x7fff86dd2ff7 libauto.dylib (185.1) <73CDC482-16E3-3FC7-9BB4-FBA2DA44DBC2> /usr/lib/libauto.dylib
0x7fff86fbc000 - 0x7fff86fdeff7 libxpc.dylib (140.42) <BBE558BD-5E55-35E4-89ED-1AA6B056D05A> /usr/lib/system/libxpc.dylib
0x7fff8742c000 - 0x7fff8742dff7 libSystem.B.dylib (169.3) <FF25248A-574C-32DB-952F-B948C389B2A4> /usr/lib/libSystem.B.dylib
0x7fff8743a000 - 0x7fff8744fff7 libdispatch.dylib (228.23) <D26996BF-FC57-39EB-8829-F63585561E09> /usr/lib/system/libdispatch.dylib
0x7fff874fc000 - 0x7fff8754bff7 libcorecrypto.dylib (106.2) <CE0C29A3-C420-339B-ADAA-52F4683233CC> /usr/lib/system/libcorecrypto.dylib
0x7fff880a2000 - 0x7fff880a8ff7 libunwind.dylib (35.1) <21703D36-2DAB-3D8B-8442-EAAB23C060D3> /usr/lib/system/libunwind.dylib
0x7fff886f9000 - 0x7fff8871eff7 libc++abi.dylib (26) <D86169F3-9F31-377A-9AF3-DB17142052E4> /usr/lib/libc++abi.dylib
0x7fff8871f000 - 0x7fff88727fff liblaunch.dylib (442.26.2) <2F71CAF8-6524-329E-AC56-C506658B4C0C> /usr/lib/system/liblaunch.dylib
0x7fff888b0000 - 0x7fff888b7fff libcopyfile.dylib (89) <876573D0-E907-3566-A108-577EAD1B6182> /usr/lib/system/libcopyfile.dylib
0x7fff8892f000 - 0x7fff8893dff7 libsystem_network.dylib (77.10) <0D99F24E-56FE-380F-B81B-4A4C630EE587> /usr/lib/system/libsystem_network.dylib
0x7fff8896d000 - 0x7fff88970ff7 libdyld.dylib (210.2.3) <F59367C9-C110-382B-A695-9035A6DD387E> /usr/lib/system/libdyld.dylib
0x7fff8b1fa000 - 0x7fff8b1fcff7 libunc.dylib (25) <92805328-CD36-34FF-9436-571AB0485072> /usr/lib/system/libunc.dylib
0x7fff8b485000 - 0x7fff8b486ff7 libdnsinfo.dylib (453.19) <14202FFB-C3CA-3FCC-94B0-14611BF8692D> /usr/lib/system/libdnsinfo.dylib
0x7fff8be8c000 - 0x7fff8be8cfff libkeymgr.dylib (25) <CC9E3394-BE16-397F-926B-E579B60EE429> /usr/lib/system/libkeymgr.dylib
0x7fff8c1b9000 - 0x7fff8c1bafff libsystem_blocks.dylib (59) <D92DCBC3-541C-37BD-AADE-ACC75A0C59C8> /usr/lib/system/libsystem_blocks.dylib
0x7fff8d072000 - 0x7fff8d07dfff libsystem_notify.dylib (98.5) <C49275CC-835A-3207-AFBA-8C01374927B6> /usr/lib/system/libsystem_notify.dylib
0x7fff8d503000 - 0x7fff8d508fff libcompiler_rt.dylib (30) <08F8731D-5961-39F1-AD00-4590321D24A9> /usr/lib/system/libcompiler_rt.dylib
0x7fff8d50e000 - 0x7fff8d53cff7 libsystem_m.dylib (3022.6) <B434BE5C-25AB-3EBD-BAA7-5304B34E3441> /usr/lib/system/libsystem_m.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: 20982
thread_create: 1
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=59.2M resident=31.3M(53%) swapped_out_or_unallocated=28.0M(47%)
Writable regions: Total=83.6M written=2424K(3%) resident=2508K(3%) swapped_out=0K(0%) unallocated=81.1M(97%)
REGION TYPE VIRTUAL
=========== =======
MALLOC 19.2M
MALLOC guard page 16K
STACK GUARD 8K
Stack 64.0M
__DATA 756K
__LINKEDIT 52.7M
__TEXT 6692K
shared memory 12K
=========== =======
TOTAL 143.2M
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
output of ./config command