Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to install ruby 3.1.5 on Mac OS 13.6.6 M2 Pro #400

Closed
angelavbalves opened this issue May 29, 2024 · 0 comments
Closed

Failed to install ruby 3.1.5 on Mac OS 13.6.6 M2 Pro #400

angelavbalves opened this issue May 29, 2024 · 0 comments

Comments

@angelavbalves
Copy link

$ brew reinstall asdf
$ asdf plugin update --all
$ asdf install ruby 3.1.5

Result

BUILD FAILED (macOS 13.6.6 on arm64 using ruby-build 20240517)

You can inspect the build directory at /var/folders/v6/tyjx92tj77s042l882fhhv7m0000gp/T/ruby-build.20240528181309.53889.ch8I4v
See the full build log at /var/folders/v6/tyjx92tj77s042l882fhhv7m0000gp/T/ruby-build.20240528181309.53889.log

List lines of build cold

In file included from ./vm_core.h:68:
./ccan/list/list.h:75:9: warning: 'LIST_HEAD' macro redefined [-Wmacro-redefined]
#define LIST_HEAD(name) \
        ^
/Applications/Xcode 15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/queue.h:465:9: note: previous definition is here
#define LIST_HEAD(name, type)                                           \
        ^
compiling error.c
compiling eval.c
compiling file.c
error.c:2347:11: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype]
    char *strerror();
          ^
compiling gc.c
In file included from file.c:165:
In file included from ./internal/object.h:12:
In file included from ./internal/class.h:18:
In file included from ./vm_core.h:68:
./ccan/list/list.h:75:9: warning: 'LIST_HEAD' macro redefined [-Wmacro-redefined]
#define LIST_HEAD(name) \
        ^
/Applications/Xcode 15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/queue.h:465:9: note: previous definition is here
#define LIST_HEAD(name, type)                                           \
        ^
compiling hash.c
1 warning generated.
compiling inits.c
compiling io.c
1 warning generated.
compiling io_buffer.c
compiling iseq.c
compiling load.c
compiling marshal.c
1 warning generated.
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
parse.c:6859:9: warning: variable 'yynerrs' set but not used [-Wunused-but-set-variable]
    int yynerrs = 0;
        ^
In file included from parse.y:8020:
defs/keywords:5:30: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
static const struct kwtable *reserved_word(/*const char *, unsigned int*/);
                             ^
defs/keywords:162:1: note: conflicting prototype is here
rb_reserved_word (register const char *str, register size_t len)
^
defs/keywords:6:36: note: expanded from macro 'rb_reserved_word'
#define rb_reserved_word(str, len) reserved_word(str, len)
                                   ^
compiling process.c
compiling ractor.c
compiling random.c
ractor.c:2671:10: warning: variable 'pcnt' set but not used [-Wunused-but-set-variable]
    int *pcnt = (int *)ptr;
         ^
compiling range.c
compiling rational.c
compiling re.c
compiling regcomp.c
compiling regenc.c
1 warning generated.
compiling regerror.c
compiling regexec.c
compiling regparse.c
compiling regsyntax.c
compiling ruby.c
compiling scheduler.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 transient_heap.c
compiling util.c
compiling variable.c
compiling vm.c
compiling vm_backtrace.c
In file included from vm.c:376:
./vm_insnhelper.c:2707:19: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
    return (*func)(recv, rb_ary_new4(argc, argv));
                  ^
./vm_insnhelper.c:2714:19: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
    return (*func)(argc, argv, recv);
                  ^
./vm_insnhelper.c:2848:19: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
    return (*func)(recv, rb_ary_new4(argc, argv));
                  ^
./vm_insnhelper.c:2854:19: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
    return (*func)(argc, argv, recv);
                  ^
2 warnings generated.
compiling vm_dump.c
compiling vm_sync.c
In file included from vm.c:382:
./vm_method.c:1281:33: warning: variable 'ccs' set but not used [-Wunused-but-set-variable]
    struct rb_class_cc_entries *ccs;
                                ^
compiling vm_trace.c
compiling yjit.c
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 mjit.c
dln.c:74:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype]
char *getenv();
      ^
/Applications/Xcode 15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:147:7: note: conflicting prototype is here
char    *getenv(const char *);
         ^
1 warning generated.
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
In file included from enc/unicode.c:177:
./enc/unicode/13.0.0/name2ctype.h:39180:43: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
static const struct uniname2ctype_struct *uniname2ctype_p(
                                          ^
./enc/unicode/13.0.0/name2ctype.h:41088:1: note: conflicting prototype is here
uniname2ctype_p (register const char *str, register size_t len)
^
1 warning generated.
./revision.h unchanged
compiling version.c
generating arm64-darwin22-fake.rb
/bin/sh ./tool/ifchange "--timestamp=.rbconfig.time" rbconfig.rb rbconfig.tmp
rbconfig.rb updated
generating encdb.h
creating verconf.h
arm64-darwin22-fake.rb updated
generating enc.mk
verconf.h updated
encdb.h updated
compiling loadpath.c
making srcs under enc
make[1]: Nothing to be done for `srcs'.
generating transdb.h
transdb.h updated
5 warnings generated.
linking miniruby
ld: Undefined symbols:
  _coroutine_transfer, referenced from:
      _fiber_setcontext in cont.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [miniruby] Error 1
external command failed with status 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant