+__rvm_make:0> make -j8 BASERUBY = /usr/bin/ruby --disable=gems CC = gcc LD = ld LDSHARED = gcc -dynamiclib CFLAGS = -O3 -ggdb3 -Wall -Wextra -Wdeclaration-after-statement -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wmissing-noreturn -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wextra-tokens -fno-common -pipe XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT -DCANONICALIZATION_FOR_MATHN CPPFLAGS = -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I. -I.ext/include/-darwin20 -I./include -I. -I./enc/unicode/12.1.0 DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -L/usr/local/opt/libyaml/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/openssl@1.1/lib -install_name /Users/fq/.rvm/rubies/ruby-2.6.5/lib/libruby.2.6.dylib -compatibility_version 2.6 -current_version 2.6.5 -fstack-protector-strong -framework Security -framework Foundation -fstack-protector-strong -framework Security -framework Foundation SOLIBS = -lpthread -ldl -lobjc LANG = zh_CN.UTF-8 LC_ALL = LC_CTYPE = Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1 Apple clang version 12.0.0 (clang-1200.0.32.28) Target: arm64-apple-darwin20.1.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin compiling ./main.c compiling dmydln.c compiling miniinit.c compiling dmyext.c compiling miniprelude.c translating probes probes.d compiling ast.c compiling bignum.c compiling class.c compiling compar.c . ./vm_opts.h compiling compile.c compiling complex.c compiling cont.c compiling debug.c compiling debug_counter.c compiling dir.c compiling dln_find.c compiling encoding.c compiling enum.c compiling enumerator.c compiling error.c compiling eval.c compiling file.c compiling gc.c compiling hash.c compiling inits.c compiling io.c compiling iseq.c compiling load.c compiling marshal.c compiling math.c making mjit_config.h compiling mjit_compile.c compiling node.c compiling numeric.c compiling object.c compiling pack.c compiling parse.c compiling proc.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 In file included from sprintf.c:1255: ./vsnprintf.c:832:8: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] IS_PRI_EXTRA_MARK(fmt)) { ^~~~~~~~~~~~~~~~~~~~~~ ./vsnprintf.c:825:34: note: expanded from macro 'IS_PRI_EXTRA_MARK' strncmp((s)+1, PRI_EXTRA_MARK+1, \ ~~~~~~~~~~~~~~^~ ./vsnprintf.c:832:8: note: use array indexing to silence this warning ./vsnprintf.c:825:34: note: expanded from macro 'IS_PRI_EXTRA_MARK' strncmp((s)+1, PRI_EXTRA_MARK+1, \ ^ compiling st.c compiling strftime.c compiling string.c compiling struct.c 1 warning generated. compiling symbol.c compiling thread.c compiling time.c compiling transcode.c compiling transient_heap.c compiling util.c compiling variable.c ./revision.h unchanged compiling vm.c compiling vm_backtrace.c compiling vm_dump.c vm.c:2487:34: warning: expression does not compute the number of elements in this array; element type is 'const int', not 'VALUE' (aka 'unsigned long') [-Wsizeof-array-div] sizeof(ec->machine.regs) / sizeof(VALUE)); ~~~~~~~~~~~~~~~~ ^ vm.c:2487:34: note: place parentheses around the 'sizeof(VALUE)' expression to silence this warning compiling vm_trace.c compiling ./missing/explicit_bzero.c compiling ./missing/finite.c compiling ./missing/setproctitle.c compiling addr2line.c compiling dmyenc.c compiling dln.c compiling localeinit.c compiling prelude.c compiling array.c compiling mjit.c compiling enc/ascii.c compiling enc/us_ascii.c compiling enc/unicode.c compiling enc/utf_8.c compiling enc/trans/newline.c compiling version.c config.status: creating ruby-runner.h 1 warning generated. building rb_mjit_header.h linking miniruby rb_mjit_header.h updated generating encdb.h building .ext/include/-darwin20/rb_mjit_min_header-2.6.5.h ./miniruby -I./lib -I. -I.ext/common ./tool/transform_mjit_header.rb "gcc " rb_mjit_header.h .ext/include/-darwin20/rb_mjit_min_header-2.6.5.h encdb.h updated ./tool/ifchange "--timestamp=.rbconfig.time" rbconfig.rb rbconfig.tmp rbconfig.rb updated generating enc.mk creating verconf.h verconf.h updated compiling loadpath.c making srcs under enc make[1]: Nothing to be done for `srcs'. generating transdb.h linking static-library libruby.2.6-static.a linking shared-library libruby.2.6.dylib transdb.h updated Transforming external functions to static: transform_mjit_header: making external definition of 'Init_vm_stack_canary' static inline transform_mjit_header: making external definition of 'rb_vm_opt_struct_aset' static inline transform_mjit_header: making external definition of 'rb_vm_opt_struct_aref' static inline transform_mjit_header: making external definition of 'rb_eql_opt' static inline transform_mjit_header: changing definition of 'rb_equal_opt' to declaration transform_mjit_header: changing definition of 'rb_vm_search_method_slowpath' to declaration transform_mjit_header: making external definition of 'rb_vm_rewrite_cref' static inline transform_mjit_header: making external definition of 'rb_vm_push_frame' static inline transform_mjit_header: making external definition of 'rb_vm_block_ep_update' static inline transform_mjit_header: making external definition of 'rb_vm_cref_new_toplevel' static inline transform_mjit_header: making external definition of 'rb_vm_frame_block_handler' static inline transform_mjit_header: making external definition of 'rb_vm_ep_local_ep' static inline transform_mjit_header: making declaration of 'rb_vm_rewrite_cref' static inline transform_mjit_header: making declaration of 'rb_vm_frame_block_handler' static inline transform_mjit_header: making declaration of 'rb_vm_block_ep_update' static inline transform_mjit_header: making declaration of 'rb_vm_ep_local_ep' static inline transform_mjit_header: SKIPPED to transform __sigbits transform_mjit_header: making declaration of 'Init_vm_stack_canary' static inline transform_mjit_header: making declaration of 'rb_eql_opt' static inline transform_mjit_header: SKIPPED to transform __sincospi transform_mjit_header: SKIPPED to transform __sincospif transform_mjit_header: SKIPPED to transform __sincos transform_mjit_header: SKIPPED to transform __sincosf transform_mjit_header: SKIPPED to transform __inline_isnormall transform_mjit_header: SKIPPED to transform __inline_isnormald transform_mjit_header: SKIPPED to transform __inline_isnormalf transform_mjit_header: SKIPPED to transform __inline_signbitl transform_mjit_header: SKIPPED to transform __inline_signbitd transform_mjit_header: SKIPPED to transform __inline_signbitf transform_mjit_header: SKIPPED to transform __inline_isnanl transform_mjit_header: SKIPPED to transform __inline_isnand transform_mjit_header: SKIPPED to transform __inline_isnanf transform_mjit_header: SKIPPED to transform __inline_isinfl transform_mjit_header: SKIPPED to transform __inline_isinfd transform_mjit_header: SKIPPED to transform __inline_isinff transform_mjit_header: SKIPPED to transform __inline_isfinitel transform_mjit_header: SKIPPED to transform __inline_isfinited transform_mjit_header: SKIPPED to transform __inline_isfinitef transform_mjit_header: SKIPPED to transform __darwin_fd_clr transform_mjit_header: SKIPPED to transform __darwin_fd_set transform_mjit_header: SKIPPED to transform __darwin_fd_isset transform_mjit_header: SKIPPED to transform __darwin_check_fd_set transform_mjit_header: SKIPPED to transform __sputc ln -sf ../../../.ext/include/-darwin20/rb_mjit_min_header-2.6.5.h include/ruby-2.6.0/-darwin20/rb_mjit_min_header-2.6.5.h generating makefiles ext/configure-ext.mk making enc making trans compiling ./enc/encdb.c compiling ./enc/trans/transdb.c compiling ./enc/big5.c compiling ./enc/cp949.c compiling ./enc/trans/big5.c compiling ./enc/emacs_mule.c ext/configure-ext.mk updated compiling ./enc/trans/chinese.c configuring strscan compiling ./enc/trans/ebcdic.c compiling ./enc/euc_jp.c compiling ./enc/euc_kr.c compiling ./enc/trans/emoji.c configuring syslog configuring gdbm compiling ./enc/trans/emoji_iso2022_kddi.c compiling ./enc/euc_tw.c compiling ./enc/gb2312.c compiling ./enc/trans/emoji_sjis_docomo.c compiling ./enc/gb18030.c configuring pty compiling ./enc/gbk.c compiling ./enc/trans/emoji_sjis_kddi.c compiling ./enc/iso_8859_1.c configuring objspace compiling ./enc/trans/emoji_sjis_softbank.c compiling ./enc/iso_8859_2.c compiling ./enc/iso_8859_3.c configuring nkf compiling ./enc/trans/escape.c configuring digest configuring digest/bubblebabble configuring digest/md5 compiling ./enc/iso_8859_4.c compiling ./enc/iso_8859_5.c configuring date compiling ./enc/iso_8859_6.c configuring readline configuring io/console compiling ./enc/iso_8859_7.c compiling ./enc/trans/gb18030.c compiling ./enc/iso_8859_8.c compiling ./enc/trans/gbk.c compiling ./enc/iso_8859_9.c compiling ./enc/iso_8859_10.c compiling ./enc/iso_8859_11.c configuring digest/rmd160 compiling ./enc/trans/iso2022.c compiling ./enc/iso_8859_13.c configuring etc compiling ./enc/iso_8859_14.c compiling ./enc/trans/japanese.c configuring io/nonblock compiling ./enc/iso_8859_15.c compiling ./enc/trans/japanese_euc.c compiling ./enc/iso_8859_16.c configuring io/wait compiling ./enc/koi8_r.c compiling ./enc/trans/japanese_sjis.c configuring digest/sha1 compiling ./enc/koi8_u.c compiling ./enc/trans/korean.c compiling ./enc/shift_jis.c configuring bigdecimal compiling ./enc/utf_16be.c compiling ./enc/utf_16le.c compiling ./enc/utf_32be.c configuring digest/sha2 compiling ./enc/trans/single_byte.c compiling ./enc/utf_32le.c compiling ./enc/windows_31j.c compiling ./enc/windows_1250.c configuring -test-/arith_seq/extract configuring -test-/array/resize configuring -test-/bignum configuring -test-/bug-14834 configuring -test-/bug-3571 configuring -test-/bug-5832 configuring -test-/bug_reporter configuring -test-/class configuring -test-/debug configuring -test-/dln/empty configuring -test-/exception compiling ./enc/windows_1251.c configuring -test-/fatal configuring -test-/file compiling ./enc/windows_1252.c configuring fiddle compiling ./enc/windows_1253.c compiling ./enc/trans/utf8_mac.c configuring rubyvm compiling ./enc/windows_1254.c compiling ./enc/windows_1257.c configuring zlib linking encoding encdb.bundle linking encoding big5.bundle linking encoding cp949.bundle linking encoding emacs_mule.bundle linking encoding euc_jp.bundle linking encoding euc_kr.bundle linking encoding euc_tw.bundle linking encoding gb2312.bundle compiling ./enc/trans/utf_16_32.c linking encoding gb18030.bundle linking transcoder transdb.bundle configuring -test-/float configuring -test-/funcall configuring -test-/gvl/call_without_gvl configuring -test-/hash configuring -test-/integer configuring -test-/iseq_load linking encoding gbk.bundle configuring -test-/iter configuring -test-/load/dot.dot configuring -test-/load/protect configuring -test-/marshal/compat configuring -test-/marshal/internal_ivar configuring -test-/marshal/usr configuring -test-/memory_status configuring -test-/method configuring -test-/notimplement configuring -test-/num2int configuring -test-/path_to_class configuring -test-/popen_deadlock configuring -test-/postponed_job configuring -test-/printf linking transcoder big5.bundle configuring -test-/proc configuring -test-/rational configuring -test-/recursion configuring -test-/regexp configuring -test-/scan_args configuring -test-/st/foreach configuring -test-/st/numhash configuring -test-/st/update configuring -test-/string linking encoding iso_8859_1.bundle configuring -test-/struct configuring -test-/symbol linking transcoder chinese.bundle linking encoding iso_8859_2.bundle linking transcoder ebcdic.bundle configuring psych linking encoding iso_8859_3.bundle linking transcoder emoji.bundle configuring -test-/thread_fd_close configuring -test-/time configuring -test-/tracepoint configuring -test-/typeddata configuring -test-/vm linking encoding iso_8859_4.bundle configuring -test-/wait_for_single_fd linking transcoder emoji_iso2022_kddi.bundle linking encoding iso_8859_5.bundle linking transcoder emoji_sjis_docomo.bundle linking encoding iso_8859_6.bundle linking transcoder emoji_sjis_kddi.bundle configuring cgi/escape linking encoding iso_8859_7.bundle configuring json configuring json/generator configuring json/parser linking transcoder emoji_sjis_softbank.bundle linking encoding iso_8859_8.bundle linking transcoder escape.bundle linking encoding iso_8859_9.bundle linking transcoder gb18030.bundle configuring stringio linking encoding iso_8859_10.bundle linking transcoder gbk.bundle linking encoding iso_8859_11.bundle configuring racc/cparse linking transcoder iso2022.bundle linking encoding iso_8859_13.bundle linking transcoder japanese.bundle linking encoding iso_8859_14.bundle linking transcoder japanese_euc.bundle linking encoding iso_8859_15.bundle linking transcoder japanese_sjis.bundle linking encoding iso_8859_16.bundle linking transcoder korean.bundle linking encoding koi8_r.bundle linking transcoder single_byte.bundle linking encoding koi8_u.bundle configuring fiber linking transcoder utf8_mac.bundle linking encoding shift_jis.bundle configuring sdbm linking transcoder utf_16_32.bundle configuring continuation linking encoding utf_16be.bundle linking encoding utf_16le.bundle linking encoding utf_32be.bundle configuring rbconfig/sizeof configuring dbm linking encoding utf_32le.bundle configuring fcntl configuring openssl configuring ripper linking encoding windows_31j.bundle configuring pathname linking encoding windows_1250.bundle configuring coverage linking encoding windows_1251.bundle linking encoding windows_1252.bundle linking encoding windows_1253.bundle linking encoding windows_1254.bundle linking encoding windows_1257.bundle configuring socket making encs make[1]: Nothing to be done for `encs'. configuring bigdecimal/util header: ndbm.h library: libc generating makefile exts.mk exts.mk updated compiling syslog.c compiling object_tracing.c compiling strscan.c compiling pty.c compiling digest.c compiling date_core.c compiling readline.c compiling nkf.c readline.c:1905:37: error: use of undeclared identifier 'username_completion_function'; did you mean 'rl_username_completion_function'? rl_username_completion_function); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rl_username_completion_function readline.c:79:42: note: expanded from macro 'rl_username_completion_function' # define rl_username_completion_function username_completion_function ^ /usr/local/opt/readline/include/readline/readline.h:485:14: note: 'rl_username_completion_function' declared here extern char *rl_username_completion_function PARAMS((const char *, int)); ^ 1 error generated. make[2]: *** [readline.o] Error 1 make[1]: *** [ext/readline/all] Error 2 make[1]: *** Waiting for unfinished jobs.... compiling objspace.c installing default pty libraries compiling date_parse.c linking shared-object pty.bundle installing default digest libraries installing default syslog libraries linking shared-object digest.bundle linking shared-object syslog.bundle compiling date_strftime.c installing default nkf libraries compiling objspace_dump.c installing digest libraries compiling date_strptime.c linking shared-object strscan.bundle installing default date_core libraries linking shared-object objspace.bundle linking shared-object nkf.bundle linking shared-object date_core.bundle make: *** [build-ext] Error 2 +__rvm_make:0> return 2