+__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 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_backtrace.c compiling vm_dump.c 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 config.status: creating ruby-runner.h compiling version.c 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/trans/chinese.c ext/configure-ext.mk updated compiling ./enc/emacs_mule.c compiling ./enc/trans/ebcdic.c compiling ./enc/trans/emoji.c compiling ./enc/euc_jp.c compiling ./enc/trans/emoji_iso2022_kddi.c compiling ./enc/euc_kr.c compiling ./enc/euc_tw.c configuring strscan compiling ./enc/trans/emoji_sjis_docomo.c configuring syslog compiling ./enc/gb2312.c configuring gdbm compiling ./enc/gb18030.c compiling ./enc/gbk.c compiling ./enc/iso_8859_1.c configuring pty compiling ./enc/iso_8859_2.c compiling ./enc/iso_8859_3.c compiling ./enc/trans/emoji_sjis_kddi.c configuring objspace compiling ./enc/iso_8859_4.c configuring nkf compiling ./enc/trans/emoji_sjis_softbank.c compiling ./enc/iso_8859_5.c configuring date configuring digest configuring digest/bubblebabble configuring digest/md5 compiling ./enc/iso_8859_6.c compiling ./enc/iso_8859_7.c compiling ./enc/iso_8859_8.c configuring readline configuring io/console compiling ./enc/iso_8859_9.c compiling ./enc/trans/escape.c compiling ./enc/trans/gb18030.c compiling ./enc/iso_8859_10.c configuring etc compiling ./enc/iso_8859_11.c compiling ./enc/iso_8859_13.c configuring digest/rmd160 compiling ./enc/iso_8859_14.c compiling ./enc/iso_8859_15.c compiling ./enc/iso_8859_16.c configuring io/nonblock compiling ./enc/trans/gbk.c compiling ./enc/koi8_r.c compiling ./enc/trans/iso2022.c compiling ./enc/koi8_u.c configuring io/wait configuring digest/sha1 compiling ./enc/trans/japanese.c configuring bigdecimal compiling ./enc/shift_jis.c compiling ./enc/trans/japanese_euc.c compiling ./enc/utf_16be.c compiling ./enc/utf_16le.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 configuring -test-/fatal configuring -test-/file compiling ./enc/utf_32be.c configuring digest/sha2 compiling ./enc/utf_32le.c compiling ./enc/windows_31j.c compiling ./enc/windows_1250.c configuring fiddle compiling ./enc/windows_1251.c compiling ./enc/windows_1252.c compiling ./enc/windows_1253.c compiling ./enc/trans/japanese_sjis.c compiling ./enc/windows_1254.c compiling ./enc/windows_1257.c linking encoding encdb.bundle linking encoding big5.bundle linking encoding cp949.bundle compiling ./enc/trans/korean.c linking encoding emacs_mule.bundle configuring rubyvm configuring -test-/float configuring -test-/funcall configuring -test-/gvl/call_without_gvl configuring -test-/hash configuring -test-/integer configuring -test-/iseq_load compiling ./enc/trans/single_byte.c 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 linking encoding euc_jp.bundle configuring -test-/popen_deadlock configuring -test-/postponed_job configuring -test-/printf 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 configuring -test-/struct configuring -test-/symbol linking encoding euc_kr.bundle linking encoding euc_tw.bundle compiling ./enc/trans/utf8_mac.c linking encoding gb2312.bundle configuring -test-/thread_fd_close configuring -test-/time configuring -test-/tracepoint configuring -test-/typeddata configuring -test-/vm configuring -test-/wait_for_single_fd linking encoding gb18030.bundle linking encoding gbk.bundle compiling ./enc/trans/utf_16_32.c linking encoding iso_8859_1.bundle linking encoding iso_8859_2.bundle configuring zlib linking encoding iso_8859_3.bundle linking transcoder transdb.bundle linking transcoder big5.bundle linking encoding iso_8859_4.bundle linking encoding iso_8859_5.bundle linking transcoder chinese.bundle configuring psych configuring cgi/escape linking encoding iso_8859_6.bundle linking transcoder ebcdic.bundle linking transcoder emoji.bundle linking transcoder emoji_iso2022_kddi.bundle linking encoding iso_8859_7.bundle linking encoding iso_8859_8.bundle linking transcoder emoji_sjis_docomo.bundle configuring json configuring json/generator configuring json/parser linking encoding iso_8859_9.bundle linking transcoder emoji_sjis_kddi.bundle linking encoding iso_8859_10.bundle linking transcoder emoji_sjis_softbank.bundle linking encoding iso_8859_11.bundle linking transcoder escape.bundle linking encoding iso_8859_13.bundle linking transcoder gb18030.bundle linking encoding iso_8859_14.bundle linking transcoder gbk.bundle linking encoding iso_8859_15.bundle linking transcoder iso2022.bundle linking encoding iso_8859_16.bundle configuring stringio linking transcoder japanese.bundle linking encoding koi8_r.bundle configuring racc/cparse linking transcoder japanese_euc.bundle linking encoding koi8_u.bundle linking transcoder japanese_sjis.bundle linking encoding shift_jis.bundle linking transcoder korean.bundle linking transcoder single_byte.bundle linking encoding utf_16be.bundle linking transcoder utf8_mac.bundle configuring fiber linking encoding utf_16le.bundle linking transcoder utf_16_32.bundle linking encoding utf_32be.bundle configuring sdbm linking encoding utf_32le.bundle configuring continuation configuring rbconfig/sizeof configuring dbm linking encoding windows_31j.bundle linking encoding windows_1250.bundle configuring fcntl configuring openssl linking encoding windows_1251.bundle configuring ripper linking encoding windows_1252.bundle linking encoding windows_1253.bundle configuring pathname linking encoding windows_1254.bundle configuring bigdecimal/util configuring coverage linking encoding windows_1257.bundle configuring socket making encs make[1]: Nothing to be done for `encs'. header: ndbm.h library: libc generating makefile exts.mk exts.mk updated compiling strscan.c compiling syslog.c compiling nkf.c compiling pty.c compiling object_tracing.c compiling readline.c compiling digest.c compiling date_core.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.... installing default syslog libraries compiling objspace.c linking shared-object syslog.bundle linking shared-object pty.bundle compiling date_parse.c linking shared-object digest.bundle linking shared-object strscan.bundle compiling objspace_dump.c installing digest libraries installing default pty libraries installing default digest libraries installing default nkf libraries compiling date_strftime.c compiling date_strptime.c 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