asdf-vm / asdf-ruby

Ruby plugin for asdf version manager
https://github.com/asdf-vm/asdf
MIT License
650 stars 133 forks source link

build fail for ruby 3.3.0 on Apple M2 Max silicone and sonoma 14.2.1 (23C71) #379

Closed mandros1985 closed 7 months ago

mandros1985 commented 8 months ago

rustc 1.75.0 (82e1608df 2023-12-21) asdf v0.13.1

➜  ~ RUBY_CONFIGURE_OPTS=--enable-yjit asdf install ruby latest
ruby-build: using openssl@3 from homebrew
==> Downloading ruby-3.3.0.tar.gz...
-> curl -q -fL -o ruby-3.3.0.tar.gz https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 21.0M  100 21.0M    0     0  2329k      0  0:00:09  0:00:09 --:--:-- 2393k
==> Installing ruby-3.3.0...
ruby-build: using readline from homebrew
ruby-build: using libyaml from homebrew
ruby-build: using gmp from homebrew
-> ./configure "--prefix=$HOME/.asdf/installs/ruby/3.3.0" --with-openssl-dir=/usr/local/opt/openssl@3 --enable-shared --with-readline-dir=/usr/local/opt/readline --with-libyaml-dir=/usr/local/opt/libyaml --with-gmp-dir=/usr/local/opt/gmp --with-ext=openssl,psych,+ --enable-yjit
-> make -j 12
*** Following extensions are not compiled:
openssl:
    Could not be configured. It will not be installed.
    /private/var/folders/hw/3sgpsxrn26d5xmwg_xls0fmm0000gn/T/ruby-build.20240115170046.13748.1pJqv1/ruby-3.3.0/ext/openssl/extconf.rb:122: OpenSSL library could not be found. You might want to use --with-openssl-dir=<dir> option to specify the prefix where OpenSSL is installed.
    Check /var/folders/hw/3sgpsxrn26d5xmwg_xls0fmm0000gn/T/ruby-build.20240115170046.13748.1pJqv1/ruby-3.3.0/ext/openssl/mkmf.log for more details.
psych:
    Could not be configured. It will not be installed.
    Check /var/folders/hw/3sgpsxrn26d5xmwg_xls0fmm0000gn/T/ruby-build.20240115170046.13748.1pJqv1/ruby-3.3.0/ext/psych/mkmf.log for more details.

BUILD FAILED (macOS 14.2.1 on arm64 using ruby-build 20231225)

You can inspect the build directory at /var/folders/hw/3sgpsxrn26d5xmwg_xls0fmm0000gn/T/ruby-build.20240115170046.13748.1pJqv1
See the full build log at /var/folders/hw/3sgpsxrn26d5xmwg_xls0fmm0000gn/T/ruby-build.20240115170046.13748.log

log file

checking for lchown... yes
checking for link... yes
checking for llabs... yes
checking for lockf... yes
checking for log2... yes
checking for lstat... yes
checking for lutimes... yes
checking for malloc_usable_size... no
checking for malloc_size... yes
checking for malloc_trim... no
checking for mblen... yes
checking for memalign... no
checking for memset_s... yes
checking for writev... yes
checking for memrchr... no
checking for memmem... yes
checking for mkfifo... yes
checking for mknod... yes
checking for mktime... yes
checking for mmap... yes
checking for mremap... no
checking for openat... yes
checking for pclose... yes
checking for pipe... yes
checking for pipe2... no
checking for poll... yes
checking for popen... yes
checking for posix_fadvise... no
checking for posix_madvise... yes
checking for posix_memalign... yes
checking for ppoll... no
checking for pread... yes
checking for pwrite... yes
checking for qsort_r... yes
checking for qsort_s... no
checking for readlink... yes
checking for realpath... yes
checking for round... yes
checking for sched_getaffinity... no
checking for seekdir... yes
checking for select_large_fdset... no
checking for sendfile... yes
checking for setegid... yes
checking for setenv... yes
checking for seteuid... yes
checking for setgid... yes
checking for setgroups... yes
checking for setpgid... yes
checking for setpgrp... yes
checking for setregid... yes
checking for setresgid... no
checking for setresuid... no
checking for setreuid... yes
checking for setrgid... yes
checking for setrlimit... yes
checking for setruid... yes
checking for setsid... yes
checking for setuid... yes
checking for shutdown... yes
checking for sigaction... yes
checking for sigaltstack... yes
checking for sigprocmask... yes
checking for sinh... yes
checking for snprintf... yes
checking for spawnv... no
checking for symlink... yes
checking for syscall... (cached) no
checking for sysconf... yes
checking for system... yes
checking for tanh... yes
checking for telldir... yes
checking for timegm... yes
checking for times... yes
checking for truncate... yes
checking for truncate64... no
checking for tzset... yes
checking for umask... yes
checking for unsetenv... yes
checking for utimensat... yes
checking for utimes... yes
checking for wait4... yes
checking for waitpid... yes
checking for __cospi... yes
checking for __sinpi... yes
checking if getcwd allocates buffer if NULL is given... yes
checking for __builtin_alloca_with_align... yes
checking for __builtin_assume_aligned... yes
checking for __builtin_bswap16... yes
checking for __builtin_bswap32... yes
checking for __builtin_bswap64... yes
checking for __builtin_popcount... yes
checking for __builtin_popcountll... yes
checking for __builtin_clz... yes
checking for __builtin_clzl... yes
checking for __builtin_clzll... yes
checking for __builtin_ctz... yes
checking for __builtin_ctzll... yes
checking for __builtin_add_overflow... yes
checking for __builtin_sub_overflow... yes
checking for __builtin_mul_overflow... yes
checking for __builtin_mul_overflow_p... no
checking for __builtin_constant_p... yes
checking for __builtin_choose_expr... yes
checking for __builtin_choose_expr_constant_p... yes
checking for __builtin_types_compatible_p... yes
checking for __builtin_trap... yes
checking for __builtin_expect... yes
checking for __builtin_mul_overflow with long long arguments... yes
checking whether qsort_r is GNU version... no
checking whether qsort_r is BSD version... yes
checking whether atan2 handles Inf as C99... yes
checking for clock_getres... yes
checking for timer_create in -lrt... no
checking for timer_settime in -lrt... no
checking for unsetenv returns a value... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking for struct tm.tm_gmtoff... yes
checking for external int daylight... yes
checking for negative time_t for gmtime(3)... yes
checking for localtime(3) overflow correctly... yes
checking for sig_t... yes
checking whether right shift preserve sign bit... yes
checking for copy_file_range... no
checking whether _SC_CLK_TCK is supported... yes
checking stack growing direction on arm64... -1
checking native coroutine implementation for arm64-darwin23... arm64
checking whether pthread_t is scalar type... yes
checking for sched_yield... yes
checking for pthread_attr_setinheritsched... yes
checking for pthread_attr_get_np... no
checking for pthread_attr_getstack... yes
checking for pthread_attr_getguardsize... yes
checking for pthread_get_stackaddr_np... yes
checking for pthread_get_stacksize_np... yes
checking for thr_stksegment... no
checking for pthread_stackseg_np... no
checking for pthread_getthrds_np... no
checking for pthread_condattr_setclock... no
checking for pthread_setname_np... yes
checking for pthread_set_name_np... no
checking for pthread_sigmask... yes
checking for pthread_getattr_np... no
checking arguments of pthread_setname_np... (name)
checking for thread-local storage sepcifier... _Thread_local
checking if mcontext_t is a pointer... yes
checking for getcontext... (cached) no
checking for setcontext... (cached) no
checking if fork works with pthread... yes
checking for sys/user.h... yes
checking whether PAGE_SIZE is compile-time const... no
checking ioctl request type... unsigned long
checking for mach-o/loader.h... yes
checking whether OS depend dynamic link works... yes
checking whether -Wl,-multiply_defined,suppress is accepted as LDFLAGS... no
checking whether -Wl,-undefined,dynamic_lookup is accepted as LDFLAGS... yes
checking whether -Wl,-undefined,dynamic_lookup is accepted for bundle... yes
checking for libproc.h... yes
checking for execinfo.h... yes
checking for backtrace in -lexecinfo... no
checking for libunwind.h... yes
checking for mach/task.h... yes
checking for mach/mach_init.h... yes
checking for mach/mach_port.h... yes
checking for backtrace... yes
checking for broken backtrace... yes
checking for valgrind/memcheck.h... no
checking for strip flags... -A -n
checking whether -Wl,--no-as-needed is accepted as LDFLAGS... no
checking whether -Wl,--no-undefined is accepted as LDFLAGS... no
checking whether wrapper for DYLD_LIBRARY_PATH is needed... yes
checking whether dtrace USDT is available... yes(-xnolibs)
checking whether dtrace needs post processing... no
checking for __builtin_setjmp... (cached) no
checking for _setjmpex as a macro or function... no
checking for _setjmp as a macro or function... yes
checking for sigsetjmp as a macro or function... yes
checking for setjmp type... sigsetjmp,0
checking for rustc... rustc
checking whether rustc works for YJIT... yes
checking for prefix of external symbols... _
checking for default symbols in empty shared library...
checking whether Security framework is needed... no
checking if make is GNU make... yes
.ext/include/arm64-darwin23/ruby/config.h updated
configure: ruby library version = 3.3.0
configure: creating ./config.status
config.status: creating GNUmakefile
config.status: creating Makefile
---
Configuration summary for ruby version 3.3.0

   * Installation prefix: /Users/michalandros/.asdf/installs/ruby/3.3.0
   * exec prefix:         ${prefix}
   * arch:                arm64-darwin23
   * 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:           darwin23
   * compiler:            clang
   * with thread:         pthread
   * with coroutine:      arm64
   * enable shared libs:  yes
   * dynamic library ext: bundle
   * CFLAGS:              -fdeclspec ${optflags} ${debugflags} ${warnflags}
   * LDFLAGS:             -L. -fstack-protector-strong \
                          -L/usr/local/opt/gmp/lib
   * DLDFLAGS:            -L/usr/local/opt/gmp/lib \
                          -Wl,-undefined,dynamic_lookup
   * optflags:            -O3 -fno-fast-math
   * debugflags:          -ggdb3
   * warnflags:           -Wall -Wextra -Wextra-tokens \
                          -Wdeprecated-declarations -Wdivision-by-zero \
                          -Wdiv-by-zero -Wimplicit-function-declaration \
                          -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 \
                          -Wwrite-strings -Wold-style-definition \
                          -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 -Wmisleading-indentation -Wundef
   * strip command:       strip -A -n
   * install doc:         rdoc
   * YJIT support:        yes
   * RJIT support:        yes
   * man page type:       doc
   * BASERUBY -v:         ruby 3.2.2 (2023-03-30 revision e51014f9c0) \
                          [x86_64-darwin22]

---
-> make -j 12
file2lastrev.rb: does not seem to be under a vcs: .
    BASERUBY = /Users/michalandros/.rbenv/shims/ruby --disable=gems
    CC = clang
    LD = ld
    LDSHARED = clang -dynamiclib
    CFLAGS = -fdeclspec -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -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 -Wmisleading-indentation -Wundef  -fno-common -pipe -arch arm64
    XCFLAGS = -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT -I. -I.ext/include/arm64-darwin23 -I./include -I. -I./prism -I./enc/unicode/15.0.0 -I/usr/local/opt/gmp/include
    CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT
    DLDFLAGS = -L/usr/local/opt/gmp/lib -Wl,-undefined,dynamic_lookup -install_name /Users/michalandros/.asdf/installs/ruby/3.3.0/lib/libruby.3.3.dylib -compatibility_version 3.3 -current_version 3.3.0  -fstack-protector-strong -framework CoreFoundation  -fstack-protector-strong -framework CoreFoundation  -arch arm64
    SOLIBS = -ldl -lobjc -lpthread
    LANG = pl_PL.UTF-8
    LC_ALL =
    LC_CTYPE =
    MFLAGS = - --jobserver-fds=5,6 -j
    RUSTC = rustc
    YJIT_RUSTC_ARGS = --crate-name=yjit --crate-type=staticlib --edition=2021 -g -C lto=thin -C opt-level=3 -C overflow-checks=on '--out-dir=/var/folders/hw/3sgpsxrn26d5xmwg_xls0fmm0000gn/T/ruby-build.20240115170046.13748.1pJqv1/ruby-3.3.0/yjit/target/release/' ./yjit/src/lib.rs
Apple clang version 15.0.0 (clang-1500.1.0.2.5)
Target: arm64-apple-darwin23.2.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
compiling compar.c
compiling compile.c
compiling complex.c
compiling cont.c
. ./vm_opts.h
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 io_buffer.c
compiling iseq.c
compiling load.c
compiling marshal.c
compiling math.c
compiling memory_view.c
compiling rjit.c
compiling rjit_c.c
compiling node.c
compiling node_dump.c
compiling numeric.c
compiling object.c
compiling pack.c
compiling parse.c
compiling parser_st.c
compiling proc.c
compiling process.c
compiling ractor.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 ruby_parser.c
compiling scheduler.c
compiling shape.c
compiling signal.c
compiling sprintf.c
compiling st.c
compiling strftime.c
compiling string.c
compiling struct.c
compiling symbol.c
compiling thread.c
compiling time.c
compiling transcode.c
compiling util.c
compiling variable.c
compiling vm.c
compiling vm_backtrace.c
compiling vm_dump.c
revision.h unchanged
compiling vm_sync.c
compiling vm_trace.c
compiling weakmap.c
compiling yjit.c
building Rust YJIT (release mode)
compiling ./missing/explicit_bzero.c
compiling ./missing/setproctitle.c
compiling addr2line.c
compiling dmyenc.c
compiling dln.c
compiling localeinit.c
compiling array.c
compiling version.c
compiling prism/api_node.c
compiling prism/api_pack.c
compiling prism/diagnostic.c
compiling prism/encoding.c
compiling prism/extension.c
compiling prism/node.c
compiling prism/options.c
compiling prism/pack.c
compiling prism/prettyprint.c
compiling prism/regexp.c
compiling prism/serialize.c
compiling prism/token_type.c
compiling prism/util/pm_buffer.c
compiling prism/util/pm_char.c
compiling prism/util/pm_constant_pool.c
compiling prism/util/pm_list.c
compiling prism/util/pm_memchr.c
compiling prism/util/pm_newline_list.c
warning: unused import: `rb_yjit_fix_mul_fix as rb_fix_mul_fix`
   --> ./yjit/src/cruby.rs:188:9
    |
188 | pub use rb_yjit_fix_mul_fix as rb_fix_mul_fix;
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(unused_imports)]` on by default

compiling prism/util/pm_state_stack.c
compiling prism/util/pm_string.c
compiling prism/util/pm_string_list.c
compiling prism/util/pm_strncasecmp.c
compiling prism/util/pm_strpbrk.c
compiling prism/prism.c
compiling prism_init.c
assembling coroutine/arm64/Context.S
compiling enc/ascii.c
compiling enc/us_ascii.c
compiling enc/unicode.c
compiling enc/utf_8.c
/bin/sh ./tool/ifchange "--timestamp=.rbconfig.time" rbconfig.rb rbconfig.tmp
compiling enc/trans/newline.c
rbconfig.rb updated
generating arm64-darwin23-fake.rb
generating encdb.h
creating verconf.h
verconf.h updated
compiling loadpath.c
encdb.h updated
arm64-darwin23-fake.rb updated
generating enc.mk
making srcs under enc
make[1]: Nothing to be done for `srcs'.
generating transdb.h
transdb.h updated
warning: 1 warning emitted

touch yjit/target/release/libyjit.a
partial linking yjit/target/release/libyjit.a into yjit/target/release/libyjit.o
linking miniruby
builtin_binary.inc updated
0a8c18ccb26a88b3540d2bfcca585c0ea3f4f4efa4fc16e58a854e8a186418bf  builtin_binary.inc
compiling builtin.c
linking static-library libruby.3.3-static.a
linking shared-library libruby.3.3.dylib
generating makefiles ext/configure-ext.mk
building spec/ruby/optional/capi/ext/array_spec.bundle
building spec/ruby/optional/capi/ext/basic_object_spec.bundle
building spec/ruby/optional/capi/ext/bignum_spec.bundle
building spec/ruby/optional/capi/ext/binding_spec.bundle
building spec/ruby/optional/capi/ext/boolean_spec.bundle
building spec/ruby/optional/capi/ext/class_id_under_autoload_spec.bundle
building spec/ruby/optional/capi/ext/class_spec.bundle
building spec/ruby/optional/capi/ext/class_under_autoload_spec.bundle
building spec/ruby/optional/capi/ext/complex_spec.bundle
building spec/ruby/optional/capi/ext/constants_spec.bundle
building spec/ruby/optional/capi/ext/data_spec.bundle
ext/configure-ext.mk updated
building spec/ruby/optional/capi/ext/debug_spec.bundle
building spec/ruby/optional/capi/ext/encoding_spec.bundle
building spec/ruby/optional/capi/ext/enumerator_spec.bundle
building spec/ruby/optional/capi/ext/exception_spec.bundle
building spec/ruby/optional/capi/ext/fiber_spec.bundle
building spec/ruby/optional/capi/ext/file_spec.bundle
building spec/ruby/optional/capi/ext/fixnum_spec.bundle
building spec/ruby/optional/capi/ext/float_spec.bundle
building spec/ruby/optional/capi/ext/gc_spec.bundle
building spec/ruby/optional/capi/ext/globals_spec.bundle
building spec/ruby/optional/capi/ext/hash_spec.bundle
building spec/ruby/optional/capi/ext/integer_spec.bundle
building spec/ruby/optional/capi/ext/io_spec.bundle
building spec/ruby/optional/capi/ext/kernel_spec.bundle
building spec/ruby/optional/capi/ext/language_spec.bundle
building spec/ruby/optional/capi/ext/marshal_spec.bundle
building spec/ruby/optional/capi/ext/module_spec.bundle
building spec/ruby/optional/capi/ext/module_under_autoload_spec.bundle
building spec/ruby/optional/capi/ext/mutex_spec.bundle
building spec/ruby/optional/capi/ext/numeric_spec.bundle
building spec/ruby/optional/capi/ext/object_spec.bundle
building spec/ruby/optional/capi/ext/proc_spec.bundle
building spec/ruby/optional/capi/ext/range_spec.bundle
building spec/ruby/optional/capi/ext/rational_spec.bundle
building spec/ruby/optional/capi/ext/rbasic_spec.bundle
building spec/ruby/optional/capi/ext/regexp_spec.bundle
building spec/ruby/optional/capi/ext/st_spec.bundle
building spec/ruby/optional/capi/ext/string_spec.bundle
building spec/ruby/optional/capi/ext/struct_spec.bundle
building spec/ruby/optional/capi/ext/symbol_spec.bundle
building spec/ruby/optional/capi/ext/thread_spec.bundle
building spec/ruby/optional/capi/ext/time_spec.bundle
building spec/ruby/optional/capi/ext/tracepoint_spec.bundle
building spec/ruby/optional/capi/ext/typed_data_spec.bundle
building spec/ruby/optional/capi/ext/util_spec.bundle
making enc
making trans
compiling ./enc/encdb.c
compiling ./enc/trans/transdb.c
configuring -test-/RUBY_ALIGNOF
configuring bigdecimal
configuring cgi/escape
configuring continuation
compiling ./enc/big5.c
compiling ./enc/trans/big5.c
compiling ./enc/cesu_8.c
configuring coverage
configuring digest
compiling ./enc/cp949.c
configuring date
configuring digest/bubblebabble
configuring erb/escape
configuring digest/md5
compiling ./enc/trans/cesu_8.c
compiling ./enc/trans/chinese.c
configuring etc
configuring fcntl
compiling ./enc/emacs_mule.c
compiling ./enc/euc_jp.c
compiling ./enc/euc_kr.c
compiling ./enc/euc_tw.c
compiling ./enc/trans/ebcdic.c
configuring -test-/abi
configuring -test-/arith_seq/beg_len_step
configuring -test-/arith_seq/extract
configuring -test-/array/concat
compiling ./enc/gb2312.c
configuring -test-/array/resize
configuring -test-/bignum
configuring -test-/bug-14834
configuring -test-/bug-3571
configuring -test-/bug-5832
compiling ./enc/gb18030.c
compiling ./enc/trans/emoji.c
configuring -test-/bug_reporter
configuring -test-/class
configuring -test-/cxxanyargs
configuring fiddle
compiling ./enc/trans/emoji_iso2022_kddi.c
compiling ./enc/gbk.c
configuring -test-/debug
configuring -test-/dln/empty
configuring -test-/econv
configuring -test-/enumerator_kw
configuring -test-/eval
configuring -test-/exception
configuring -test-/fatal
configuring -test-/file
compiling ./enc/iso_8859_1.c
configuring digest/rmd160
compiling ./enc/trans/emoji_sjis_docomo.c
compiling ./enc/iso_8859_2.c
compiling ./enc/trans/emoji_sjis_kddi.c
compiling ./enc/iso_8859_3.c
compiling ./enc/trans/emoji_sjis_softbank.c
compiling ./enc/iso_8859_4.c
configuring digest/sha1
compiling ./enc/trans/escape.c
compiling ./enc/iso_8859_5.c
compiling ./enc/iso_8859_6.c
configuring io/console
configuring digest/sha2
compiling ./enc/trans/gb18030.c
compiling ./enc/iso_8859_7.c
compiling ./enc/trans/gbk.c
compiling ./enc/iso_8859_8.c
compiling ./enc/iso_8859_9.c
compiling ./enc/iso_8859_10.c
compiling ./enc/trans/iso2022.c
configuring json
configuring json/generator
compiling ./enc/iso_8859_11.c
configuring json/parser
compiling ./enc/trans/japanese.c
compiling ./enc/iso_8859_13.c
compiling ./enc/trans/japanese_euc.c
compiling ./enc/iso_8859_14.c
libffi_version: 3.3.0
compiling ./enc/trans/japanese_sjis.c
compiling ./enc/iso_8859_15.c
compiling ./enc/iso_8859_16.c
compiling ./enc/koi8_r.c
configuring monitor
configuring nkf
compiling ./enc/koi8_u.c
compiling ./enc/shift_jis.c
configuring objspace
configuring openssl
compiling ./enc/trans/korean.c
compiling ./enc/utf_16be.c
compiling ./enc/utf_16le.c
configuring pathname
compiling ./enc/utf_32be.c
compiling ./enc/utf_32le.c
configuring -test-/float
configuring -test-/funcall
configuring -test-/gvl/call_without_gvl
configuring -test-/hash
compiling ./enc/trans/single_byte.c
configuring -test-/integer
configuring -test-/iseq_load
configuring -test-/iter
configuring -test-/load/dot.dot
configuring -test-/load/protect
configuring -test-/load/resolve_symbol_resolver
configuring -test-/load/resolve_symbol_target
configuring -test-/load/stringify_symbols
configuring -test-/load/stringify_target
configuring -test-/marshal/compat
configuring -test-/marshal/internal_ivar
configuring -test-/marshal/usr
configuring -test-/memory_status
configuring -test-/memory_view
configuring -test-/method
configuring -test-/notimplement
configuring -test-/num2int
compiling ./enc/windows_31j.c
configuring -test-/path_to_class
configuring -test-/popen_deadlock
configuring -test-/postponed_job
configuring -test-/printf
compiling ./enc/windows_1250.c
configuring -test-/proc
configuring -test-/random
configuring -test-/rational
configuring -test-/rb_call_super_kw
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
compiling ./enc/trans/utf8_mac.c
compiling ./enc/windows_1251.c
compiling ./enc/windows_1252.c
compiling ./enc/trans/utf_16_32.c
compiling ./enc/windows_1253.c
compiling ./enc/windows_1254.c
configuring -test-/thread/instrumentation
configuring -test-/thread_fd
configuring -test-/time
configuring -test-/tracepoint
configuring -test-/typeddata
configuring -test-/vm
configuring -test-/wait
linking transcoder transdb.bundle
compiling ./enc/windows_1257.c
linking encoding encdb.bundle
configuring psych
linking transcoder big5.bundle
configuring pty
linking encoding big5.bundle
configuring rbconfig/sizeof
linking encoding cesu_8.bundle
linking encoding cp949.bundle
linking encoding emacs_mule.bundle
linking encoding euc_jp.bundle
linking transcoder cesu_8.bundle
linking encoding euc_kr.bundle
linking transcoder chinese.bundle
linking transcoder ebcdic.bundle
linking encoding euc_tw.bundle
linking transcoder emoji.bundle
linking encoding gb2312.bundle
linking encoding gb18030.bundle
linking transcoder emoji_iso2022_kddi.bundle
libyaml not found
linking transcoder emoji_sjis_docomo.bundle
linking encoding gbk.bundle
configuring ripper
configuring rubyvm
linking transcoder emoji_sjis_kddi.bundle
linking encoding iso_8859_1.bundle
configuring socket
linking encoding iso_8859_2.bundle
linking transcoder emoji_sjis_softbank.bundle
configuring stringio
linking encoding iso_8859_3.bundle
linking transcoder escape.bundle
configuring strscan
linking encoding iso_8859_4.bundle
linking transcoder gb18030.bundle
configuring syslog
linking encoding iso_8859_5.bundle
linking transcoder gbk.bundle
configuring zlib
linking encoding iso_8859_6.bundle
linking transcoder iso2022.bundle
linking transcoder japanese.bundle
linking encoding iso_8859_7.bundle
linking transcoder japanese_euc.bundle
linking encoding iso_8859_8.bundle
linking transcoder japanese_sjis.bundle
linking encoding iso_8859_9.bundle
configuring debug-1.9.1/ext/debug
linking transcoder korean.bundle
configuring racc-1.7.3/ext/racc/cparse
linking encoding iso_8859_10.bundle
linking transcoder single_byte.bundle
configuring rbs-3.4.0/ext/rbs_extension
linking encoding iso_8859_11.bundle
linking transcoder utf8_mac.bundle
linking encoding iso_8859_13.bundle
linking transcoder utf_16_32.bundle
linking encoding iso_8859_14.bundle
linking encoding iso_8859_15.bundle
linking encoding iso_8859_16.bundle
linking encoding koi8_r.bundle
linking encoding koi8_u.bundle
linking encoding shift_jis.bundle
linking encoding utf_16be.bundle
linking encoding utf_16le.bundle
linking encoding utf_32be.bundle
linking encoding utf_32le.bundle
linking encoding windows_31j.bundle
linking encoding windows_1250.bundle
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
making encs
make[1]: Nothing to be done for `encs'.
configuring io/nonblock
configuring io/wait
generating makefile exts.mk
exts.mk updated
compiling c.c
compiling beg_len_step.c
compiling cpp.cpp
compiling to_ary_concat.c
compiling extract.c
compiling resize.c
compiling big2str.c
compiling bug-14384.c
compiling bigzero.c
compiling bug.c
compiling bug.c
compiling bug_reporter.c
linking shared-object -test-/array/resize.bundle
linking shared-object -test-/arith_seq/extract.bundle
linking shared-object -test-/array/to_ary_concat.bundle
linking shared-object -test-/arith_seq/beg_len_step.bundle
compiling div.c
linking shared-object -test-/bug_3571.bundle
linking shared-object -test-/bug_14834.bundle
compiling init.c
linking shared-object -test-/bug_5832.bundle
compiling class2name.c
linking shared-object -test-/RUBY_ALIGNOF.bundle
linking shared-object -test-/bug_reporter.bundle
compiling init.c
compiling intpack.c
compiling cxxanyargs.cpp
compiling mul.c
compiling empty.c
compiling init.c
compiling append.c
compiling enumerator_kw.c
compiling init.c
compiling eval.c
compiling str2big.c
linking shared-object -test-/class.bundle
compiling inspector.c
linking shared-object -test-/dln/empty.bundle
compiling profile_frames.c
compiling dataerror.c
linking shared-object -test-/enumerator_kw.bundle
linking shared-object -test-/econv.bundle
linking shared-object -test-/eval.bundle
compiling rb_fatal.c
linking shared-object -test-/bignum.bundle
compiling fs.c
compiling init.c
linking shared-object -test-/debug.bundle
compiling enc_raise.c
compiling init.c
compiling ensured.c
compiling nextafter.c
compiling funcall.c
linking shared-object -test-/cxxanyargs.bundle
linking shared-object -test-/fatal/rb_fatal.bundle
compiling call_without_gvl.c
compiling delete.c
compiling core_ext.c
compiling stat.c
compiling init.c
compiling init.c
compiling iseq_load.c
linking shared-object -test-/float.bundle
compiling init.c
linking shared-object -test-/funcall.bundle
compiling break.c
compiling my_integer.c
linking shared-object -test-/gvl/call_without_gvl.bundle
compiling dot.dot.c
linking shared-object -test-/file.bundle
linking shared-object -test-/exception.bundle
compiling protect.c
compiling resolve_symbol_resolver.c
compiling init.c
linking shared-object -test-/iseq_load.bundle
linking shared-object -test-/hash.bundle
compiling resolve_symbol_target.c
compiling yield.c
compiling stringify_symbols.c
linking shared-object -test-/integer.bundle
linking shared-object -test-/load/dot.dot.bundle
compiling stringify_target.c
compiling usrcompat.c
linking shared-object -test-/load/protect.bundle
linking shared-object -test-/load/resolve_symbol_target.bundle
linking shared-object -test-/load/resolve_symbol_resolver.bundle
compiling internal_ivar.c
compiling usrmarshal.c
compiling memory_status.c
compiling memory_view.c
compiling arity.c
compiling bug.c
compiling num2int.c
compiling path_to_class.c
linking shared-object -test-/marshal/internal_ivar.bundle
linking shared-object -test-/marshal/usr.bundle
linking shared-object -test-/marshal/compat.bundle
compiling init.c
linking shared-object -test-/iter.bundle
linking shared-object -test-/load/stringify_target.bundle
linking shared-object -test-/notimplement.bundle
linking shared-object -test-/load/stringify_symbols.bundle
linking shared-object -test-/memory_status.bundle
linking shared-object -test-/memory_view.bundle
linking shared-object -test-/num2int.bundle
linking shared-object -test-/path_to_class.bundle
compiling postponed_job.c
compiling printf.c
compiling init.c
compiling bad_version.c
compiling receiver.c
compiling rat.c
compiling init.c
compiling rb_call_super_kw.c
compiling recursion.c
compiling init.c
compiling scan_args.c
linking shared-object -test-/method.bundle
linking shared-object -test-/printf.bundle
linking shared-object -test-/postponed_job.bundle
compiling super.c
compiling loop.c
compiling parse_depth_limit.c
linking shared-object -test-/rational.bundle
compiling foreach.c
linking shared-object -test-/recursion.bundle
linking shared-object -test-/rb_call_super_kw.bundle
compiling numhash.c
compiling update.c
compiling capacity.c
linking shared-object -test-/proc.bundle
compiling data.c
compiling init.c
linking shared-object -test-/regexp.bundle
compiling instrumentation.c
linking shared-object -test-/random.bundle
linking shared-object -test-/st/numhash.bundle
linking shared-object -test-/st/foreach.bundle
linking shared-object -test-/st/update.bundle
compiling thread_fd.c
compiling init.c
compiling duplicate.c
compiling init.c
compiling gc_hook.c
compiling type.c
compiling typeddata.c
compiling at_exit.c
linking shared-object -test-/thread_fd.bundle
linking shared-object -test-/scan_args.bundle
compiling coderange.c
compiling leap_second.c
compiling len.c
compiling tracepoint.c
compiling member.c
linking shared-object -test-/thread/instrumentation.bundle
linking shared-object -test-/symbol.bundle
compiling wait.c
linking shared-object -test-/typeddata.bundle
compiling new.c
compiling bigdecimal.c
compiling cstr.c
compiling missing.c
compiling escape.c
linking shared-object -test-/struct.bundle
linking shared-object -test-/tracepoint.bundle
linking shared-object -test-/vm/at_exit.bundle
compiling ellipsize.c
compiling continuation.c
linking shared-object -test-/wait.bundle
compiling coverage.c
linking shared-object -test-/time.bundle
compiling date_core.c
compiling digest.c
compiling enc_associate.c
compiling escape.c
linking shared-object continuation.bundle
compiling enc_dummy.c
installing default bigdecimal libraries
compiling etc.c
installing default coverage libraries
compiling fcntl.c
compiling enc_str_buf_cat.c
linking shared-object cgi/escape.bundle
compiling date_parse.c
linking shared-object erb/escape.bundle
installing digest libraries
linking shared-object coverage.bundle
installing default digest libraries
linking shared-object fcntl.bundle
compiling fstring.c
linking shared-object etc.bundle
compiling closure.c
compiling date_strftime.c
linking shared-object digest.bundle
compiling console.c
compiling nonblock.c
compiling wait.c
compiling monitor.c
compiling init.c
compiling modify.c
compiling conversions.c
linking shared-object io/nonblock.bundle
linking shared-object io/wait.bundle
compiling new.c
installing default monitor libraries
installing default console libraries
linking shared-object monitor.bundle
compiling date_strptime.c
linking shared-object io/console.bundle
compiling fiddle.c
compiling nkf.c
compiling object_tracing.c
installing default date_core libraries
compiling nofree.c
compiling pathname.c
compiling pty.c
compiling sizes.c
compiling eventids1.c
compiling normalize.c
compiling function.c
compiling objspace.c
compiling limits.c
compiling objspace_dump.c
installing default pty libraries
linking shared-object pty.bundle
compiling qsort.c
compiling eventids2.c
installing default nkf libraries
compiling handle.c
installing default pathname libraries
linking shared-object rbconfig/sizeof.bundle
linking shared-object bigdecimal.bundle
compiling memory_view.c
linking shared-object pathname.bundle
compiling rb_interned_str.c
compiling rb_str_dup.c
compiling ripper.c
compiling ripper_init.c
compiling init.c
compiling stringio.c
installing default libraries
compiling set_len.c
compiling strscan.c
checking ../.././parse.y and ../.././ext/ripper/eventids2.c
installing default objspace libraries
compiling pinned.c
compiling pointer.c
linking shared-object objspace.bundle
installing default ripper libraries
linking shared-object -test-/string.bundle
compiling constants.c
compiling basicsocket.c
compiling syslog.c
installing default fiddle libraries
compiling zlib.c
installing default syslog libraries
compiling socket.c
linking shared-object strscan.bundle
linking shared-object stringio.bundle
linking shared-object date_core.bundle
linking shared-object fiddle.bundle
linking shared-object syslog.bundle
compiling ipsocket.c
compiling debug.c
ld: warning: ignoring duplicate libraries: '-lffi'
compiling iseq_collector.c
compiling cparse.c
compiling constants.c
compiling bubblebabble.c
compiling md5init.c
compiling tcpsocket.c
linking shared-object debug/debug.bundle
linking shared-object nkf.bundle
compiling tcpserver.c
compiling lexer.c
linking shared-object digest/bubblebabble.bundle
linking shared-object digest/md5.bundle
linking shared-object racc/cparse.bundle
compiling rmd160init.c
compiling sockssocket.c
compiling lexstate.c
compiling sha2init.c
compiling sha1init.c
compiling rmd160.c
compiling generator.c
compiling udpsocket.c
compiling location.c
compiling unixsocket.c
linking shared-object digest/sha1.bundle
compiling main.c
compiling parser.c
linking shared-object zlib.bundle
linking shared-object digest/sha2.bundle
compiling parser.c
compiling unixserver.c
compiling parserstate.c
compiling ruby_objs.c
installing default sha2 libraries
compiling unescape.c
linking shared-object digest/rmd160.bundle
compiling option.c
compiling ancdata.c
compiling raddrinfo.c
compiling ifaddr.c
linking shared-object json/ext/parser.bundle
linking shared-object json/ext/generator.bundle
linking shared-object rbs_extension.bundle
linking shared-object socket.bundle
linking shared-object ripper.bundle
file2lastrev.rb: does not seem to be under a vcs: .
revision.h unchanged
config.status: creating ruby-runner.h
ln -sf ../../rbconfig.rb .ext/arm64-darwin23/rbconfig.rb
linking ruby
*** Following extensions are not compiled:
openssl:
    Could not be configured. It will not be installed.
    /private/var/folders/hw/3sgpsxrn26d5xmwg_xls0fmm0000gn/T/ruby-build.20240115170046.13748.1pJqv1/ruby-3.3.0/ext/openssl/extconf.rb:122: OpenSSL library could not be found. You might want to use --with-openssl-dir=<dir> option to specify the prefix where OpenSSL is installed.
    Check ext/openssl/mkmf.log for more details.
psych:
    Could not be configured. It will not be installed.
    Check ext/psych/mkmf.log for more details.
*** Fix the problems, then remove these directories and try again if you want.
make[1]: *** [note] Error 1
make: *** [build-ext] Error 2
external command failed with status 2
➜  ~

.zshrc

. /usr/local/opt/asdf/libexec/asdf.sh
eval "$(rbenv init -)"
export LDFLAGS="-L$(brew --prefix libyaml)/lib"
export CPPFLAGS="-I$(brew --prefix libyaml)/include"
export RUBY_YJIT_ENABLE=1
export RUBY_CONFIGURE_OPTS="--enable-yjit --with-openssl-dir=$(brew --prefix openssl@3)"

Please help ... :( I am unable to install the current version Tried with the same setup using rbenv - same results

andreibondarev commented 7 months ago

I'm having the same issue, haven't spent much time investigating it yet.

mandros1985 commented 7 months ago

https://codetinkering.com/switch-homebrew-arm-x86/

switched to arm homebrew and installed with no issues

I suppose I have been using a different arch for some project and there were obvious dependencies issues

seems to be working fine now