Actions
Bug #18745
closedbuild ruby3.0.4 fail on macOS 12.3.1 monterey fail (Apple silicon arm64)
Bug #18745:
build ruby3.0.4 fail on macOS 12.3.1 monterey fail (Apple silicon arm64)
Description
Use ruby-build to build ruby 3.0.4 on macOS12.3.1 monterey still fail.
Does miss sth to configure? Thanks.
- Log
ruby-build.20220420134132.55060.log
.....
Configuration summary for ruby version 3.0.4
* Installation prefix: /Users/lihanguang/.asdf/installs/ruby/3.0.4
* exec prefix: ${prefix}
* arch: arm64-darwin21
* site arch: ${arch}
* RUBY_BASE_NAME: ruby
* enable shared: yes
* ruby lib prefix: ${libdir}/${RUBY_BASE_NAME}
* site libraries path: ${rubylibprefix}/${sitearch}
* vendor path: ${rubylibprefix}/vendor_ruby
* target OS: darwin21
* compiler: clang -fdeclspec
* with pthread: yes
* with coroutine: arm64
* enable shared libs: yes
* dynamic library ext: bundle
* CFLAGS: ${optflags} ${debugflags} ${warnflags}
* LDFLAGS: -L. \
-L/Users/lihanguang/.asdf/installs/ruby/3.0.4/lib \
-fstack-protector-strong
* DLDFLAGS: -L/Users/lihanguang/.asdf/installs/ruby/3.0.4/lib \
-Wl,-undefined,dynamic_lookup \
-Wl,-multiply_defined,suppress
* optflags: -O3
* debugflags: -ggdb3
* warnflags: -Wall -Wextra -Wdeprecated-declarations \
-Wdivision-by-zero \
-Wimplicit-function-declaration -Wimplicit-int \
-Wmisleading-indentation -Wpointer-arith \
-Wshorten-64-to-32 -Wwrite-strings \
-Wmissing-noreturn -Wno-cast-function-type \
-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
* strip command: strip -A -n
* install doc: rdoc
* JIT support: yes
* man page type: doc
* BASERUBY -v: ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a) \
[arm64-darwin21]
---
BASERUBY = /Users/lihanguang/.asdf/shims/ruby --disable=gems
CC = clang -fdeclspec
LD = clang
LDSHARED = clang -fdeclspec -dynamiclib
CFLAGS = -O3 -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wmissing-noreturn -Wno-cast-function-type -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 -std=gnu99 -fno-common -pipe -m64
XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT -I. -I.ext/include/arm64-darwin21 -I./include -I. -I./enc/unicode/12.1.0
CPPFLAGS = -I/Users/lihanguang/.asdf/installs/ruby/3.0.4/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT
DLDFLAGS = -L/Users/lihanguang/.asdf/installs/ruby/3.0.4/lib -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -install_name /Users/lihanguang/.asdf/installs/ruby/3.0.4/lib/libruby.3.0.dylib -compatibility_version 3.0 -current_version 3.0.4 -fstack-protector-strong -framework Security -framework Foundation -fstack-protector-strong -framework Security -framework Foundation -m64
SOLIBS = -lpthread -ldl -lobjc
LANG = en_US.UTF-8
LC_ALL = en_US.UTF-8
LC_CTYPE =
MFLAGS = - --jobserver-fds=6,7 -j
Apple clang version 13.1.6 (clang-1316.0.21.2.3)
Target: arm64-apple-darwin21.4.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
translating probes probes.d
compiling ast.c
compiling bignum.c
compiling class.c
. ./vm_opts.h
compiling compar.c
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
compiling memory_view.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 ractor.c
compiling random.c
parse.y:10722:1: warning: unused function 'parser_token_value_print' [-Wunused-function]
parser_token_value_print(struct parser_params *p, enum yytokentype type, const YYSTYPE *valp)
^
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 scheduler.c
compiling signal.c
compiling sprintf.c
ruby.c:904:18: warning: variable 'set' set but not used [-Wunused-but-set-variable]
unsigned int set = 0U;
^
compiling st.c
compiling strftime.c
1 warning generated.
compiling string.c
compiling struct.c
compiling symbol.c
compiling thread.c
compiling time.c
compiling transcode.c
compiling transient_heap.c
compiling util.c
compiling variable.c
compiling vm.c
compiling vm_backtrace.c
compiling vm_dump.c
compiling vm_sync.c
1 warning generated.
compiling vm_trace.c
compiling ./missing/explicit_bzero.c
compiling ./missing/setproctitle.c
compiling ./missing/finite.c
compiling addr2line.c
compiling dmyenc.c
compiling dln.c
compiling localeinit.c
config.status: creating ruby-runner.h
compiling array.c
compiling mjit.c
assembling coroutine/arm64/Context.S
compiling enc/ascii.c
compiling enc/us_ascii.c
compiling enc/unicode.c
compiling enc/utf_8.c
compiling enc/trans/newline.c
./revision.h unchanged
compiling version.c
linking miniruby
Undefined symbols for architecture arm64:
"_coroutine_transfer", referenced from:
_fiber_setcontext in cont.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [miniruby] Error 1
Actions