+__rvm_make:0> make -j8 CC = gcc LD = ld LDSHARED = gcc -dynamiclib CFLAGS = -O3 -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wmisleading-indentation -Wextra-tokens -fno-common -pipe XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT 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/10.0.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.5.7/lib/libruby.2.5.dylib -compatibility_version 2.5 -current_version 2.5.7 -fstack-protector -framework Foundation -fstack-protector -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 bignum.c compiling class.c compiling compar.c compiling compile.c . ./vm_opts.h 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 io.c compiling inits.c compiling iseq.c compiling load.c compiling marshal.c compiling math.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:1254: ./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 util.c compiling variable.c compiling version.c compiling vm.c vm.c:2366: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:2366: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 dmyenc.c compiling dln.c compiling localeinit.c compiling prelude.c ./revision.h unchanged compiling array.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 1 warning generated. linking miniruby generating encdb.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.5.7-static.a linking shared-library libruby.2.5.7.dylib transdb.h updated generating makefiles ext/configure-ext.mk making enc making trans compiling ./enc/trans/transdb.c compiling ./enc/encdb.c compiling ./enc/big5.c compiling ./enc/cp949.c compiling ./enc/trans/big5.c compiling ./enc/emacs_mule.c compiling ./enc/trans/chinese.c ext/configure-ext.mk updated compiling ./enc/euc_jp.c compiling ./enc/euc_kr.c compiling ./enc/trans/ebcdic.c configuring strscan compiling ./enc/trans/emoji.c configuring syslog configuring gdbm compiling ./enc/euc_tw.c configuring pty configuring objspace compiling ./enc/trans/emoji_iso2022_kddi.c compiling ./enc/gb2312.c configuring nkf compiling ./enc/gb18030.c compiling ./enc/trans/emoji_sjis_docomo.c compiling ./enc/gbk.c compiling ./enc/iso_8859_1.c compiling ./enc/iso_8859_2.c configuring digest configuring digest/bubblebabble configuring digest/md5 configuring date compiling ./enc/iso_8859_3.c compiling ./enc/iso_8859_4.c configuring readline compiling ./enc/iso_8859_5.c compiling ./enc/iso_8859_6.c compiling ./enc/trans/emoji_sjis_kddi.c compiling ./enc/iso_8859_7.c compiling ./enc/iso_8859_8.c configuring io/console compiling ./enc/iso_8859_9.c compiling ./enc/trans/emoji_sjis_softbank.c compiling ./enc/iso_8859_10.c configuring digest/rmd160 compiling ./enc/iso_8859_11.c compiling ./enc/iso_8859_13.c compiling ./enc/trans/escape.c compiling ./enc/trans/gb18030.c compiling ./enc/iso_8859_14.c configuring etc compiling ./enc/iso_8859_15.c configuring bigdecimal compiling ./enc/iso_8859_16.c configuring digest/sha1 compiling ./enc/koi8_r.c compiling ./enc/koi8_u.c compiling ./enc/trans/gbk.c compiling ./enc/shift_jis.c configuring -test-/array/resize configuring -test-/bignum 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_16be.c configuring digest/sha2 compiling ./enc/utf_16le.c compiling ./enc/utf_32be.c compiling ./enc/utf_32le.c compiling ./enc/windows_31j.c compiling ./enc/windows_1250.c compiling ./enc/windows_1251.c configuring fiddle compiling ./enc/windows_1252.c compiling ./enc/windows_1253.c compiling ./enc/trans/iso2022.c compiling ./enc/windows_1254.c compiling ./enc/trans/japanese.c compiling ./enc/windows_1257.c compiling ./enc/trans/japanese_euc.c linking encoding encdb.bundle configuring -test-/float configuring -test-/funcall configuring -test-/gvl/call_without_gvl configuring -test-/hash configuring -test-/integer configuring -test-/iseq_load 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 configuring -test-/proc configuring -test-/rational configuring -test-/recursion configuring -test-/regexp configuring -test-/scan_args configuring -test-/st/foreach configuring -test-/st/numhash linking encoding big5.bundle configuring -test-/st/update configuring -test-/string configuring -test-/struct configuring -test-/symbol linking encoding cp949.bundle configuring io/nonblock linking encoding emacs_mule.bundle linking encoding euc_jp.bundle configuring -test-/thread_fd_close configuring -test-/time configuring -test-/tracepoint configuring -test-/typeddata configuring -test-/vm configuring -test-/wait_for_single_fd configuring io/wait configuring rubyvm linking encoding euc_kr.bundle configuring zlib linking encoding euc_tw.bundle linking encoding gb2312.bundle compiling ./enc/trans/japanese_sjis.c linking encoding gb18030.bundle linking encoding gbk.bundle linking encoding iso_8859_1.bundle compiling ./enc/trans/korean.c linking encoding iso_8859_2.bundle linking encoding iso_8859_3.bundle linking encoding iso_8859_4.bundle configuring psych linking encoding iso_8859_5.bundle linking encoding iso_8859_6.bundle linking encoding iso_8859_7.bundle configuring cgi/escape linking encoding iso_8859_8.bundle configuring json configuring json/generator configuring json/parser linking encoding iso_8859_9.bundle linking encoding iso_8859_10.bundle compiling ./enc/trans/single_byte.c linking encoding iso_8859_11.bundle linking encoding iso_8859_13.bundle linking encoding iso_8859_14.bundle compiling ./enc/trans/utf8_mac.c linking encoding iso_8859_15.bundle configuring racc/cparse configuring stringio compiling ./enc/trans/utf_16_32.c linking encoding iso_8859_16.bundle linking encoding koi8_r.bundle linking encoding koi8_u.bundle linking encoding shift_jis.bundle configuring fiber configuring sdbm linking encoding utf_16be.bundle linking encoding utf_16le.bundle configuring continuation configuring rbconfig/sizeof linking transcoder transdb.bundle linking encoding utf_32be.bundle linking transcoder big5.bundle linking encoding utf_32le.bundle configuring dbm linking transcoder chinese.bundle linking encoding windows_31j.bundle linking transcoder ebcdic.bundle linking encoding windows_1250.bundle configuring fcntl linking encoding windows_1251.bundle configuring openssl linking transcoder emoji.bundle linking encoding windows_1252.bundle linking transcoder emoji_iso2022_kddi.bundle linking encoding windows_1253.bundle configuring ripper linking transcoder emoji_sjis_docomo.bundle linking encoding windows_1254.bundle configuring pathname linking encoding windows_1257.bundle linking transcoder emoji_sjis_kddi.bundle linking transcoder emoji_sjis_softbank.bundle linking transcoder escape.bundle configuring coverage configuring socket linking transcoder gb18030.bundle linking transcoder gbk.bundle linking transcoder iso2022.bundle linking transcoder japanese.bundle linking transcoder japanese_euc.bundle linking transcoder japanese_sjis.bundle linking transcoder korean.bundle linking transcoder single_byte.bundle linking transcoder utf8_mac.bundle linking transcoder utf_16_32.bundle 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 md5init.c compiling digest.c compiling pty.c compiling bubblebabble.c compiling object_tracing.c compiling nkf.c compiling md5.c linking shared-object digest/bubblebabble.bundle compiling objspace.c linking shared-object pty.bundle linking shared-object syslog.bundle compiling objspace_dump.c installing default digest libraries linking shared-object digest.bundle installing default pty libraries linking shared-object digest/md5.bundle installing default syslog libraries compiling rmd160init.c linking shared-object strscan.bundle installing default nkf libraries compiling sha1init.c installing digest libraries compiling rmd160.c compiling sha1.c compiling sha2init.c compiling sha2.c compiling date_core.c compiling readline.c compiling console.c readline.c:1870: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.... linking shared-object objspace.bundle compiling date_parse.c linking shared-object digest/sha1.bundle installing default sha2 libraries linking shared-object digest/sha2.bundle compiling date_strftime.c linking shared-object io/console.bundle compiling date_strptime.c linking shared-object digest/rmd160.bundle installing default console libraries installing default date_core libraries linking shared-object nkf.bundle linking shared-object date_core.bundle make: *** [build-ext] Error 2 +__rvm_make:0> return 2