ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:109201] [Ruby master Bug#18912] Build failure with macOS 13 (Ventura) Beta
@ 2022-07-14  5:40 hsbt (Hiroshi SHIBATA)
  2022-07-19 15:44 ` [ruby-core:109248] " alanwu (Alan Wu)
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: hsbt (Hiroshi SHIBATA) @ 2022-07-14  5:40 UTC (permalink / raw)
  To: ruby-core

Issue #18912 has been reported by hsbt (Hiroshi SHIBATA).

----------------------------------------
Bug #18912: Build failure with macOS 13 (Ventura) Beta
https://bugs.ruby-lang.org/issues/18912

* Author: hsbt (Hiroshi SHIBATA)
* Status: Open
* Priority: Normal
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
Today, I tried to build ruby master with macOS 13 (Ventura) Beta. It breaks the build status caused by Xcode 14 beta changes.

TL;DR: We should add `--without=+,bigdecimal --enable-shared` to the `configure` option.

1. Build failed without `--enable-shared`.

I build ruby master without `--enable-shared` option. I got the following error.

```
(snip)
linking shared-object -test-/arith_seq/extract.bundle
Undefined symbols for architecture arm64:
  "_rb_arithmetic_sequence_extract", referenced from:
      _arith_seq_s_extract in extract.o
  "_rb_ary_new_capa", referenced from:
      _arith_seq_s_extract in extract.o
  "_rb_ary_store", referenced from:
      _arith_seq_s_extract in extract.o
  "_rb_define_singleton_method", referenced from:
      _Init_extract in extract.o
  "_rb_path2class", referenced from:
      _Init_extract in extract.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```

@katei says this error affects with `-undefined dynamic_lookup` flags.

2. Build error with bigdecimal

With `--enabled-shared` resolved the first error. But I got the another build failure.

```
compiling bigdecimal.c
In file included from bigdecimal.c:13:
In file included from ./bigdecimal.h:14:
./missing.h:127:1: error: static declaration of 'rb_rational_num' follows non-static declaration
rb_rational_num(VALUE rat)
^
../.././include/ruby/internal/intern/rational.h:128:7: note: previous declaration is here
VALUE rb_rational_num(VALUE rat);
      ^
In file included from bigdecimal.c:13:
In file included from ./bigdecimal.h:14:
(snip)
```

It's affected with `static inline` declaration in missing.h of bigdecimal.

3. test failure with mjit

I could build with `--with-out-ext=+,bigdecimal --enable-share` option. But I also got the test failure with mjit.

```
[215/402] TestMJIT#test_lambda_longjmp = 0.19 s
192) Failure:
TestMJIT#test_lambda_longjmp [/Users/hsbt/Documents/github.com/ruby/ruby/test/ruby/test_mjit.rb:1045]:
Expected 1 times of JIT success, but succeeded 0 times.

script:
"""

fib = lambda do |x|
  return x if x == 0 || x == 1
  fib.call(x-1) + fib.call(x-2)
end
print fib.call(5)

"""


stderr:
"""
Undefined symbols for architecture arm64:
  "_mjit_call_p", referenced from:
      __mjit0 in _ruby_mjit_p39885u0-643ab5.o
      _vm_sendish in _ruby_mjit_p39885u0-643ab5.o
```

I already shared this to @k0kubun .

macOS 13 beta is still development status. I will track this until the official release date.






-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2022-11-12  4:24 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-14  5:40 [ruby-core:109201] [Ruby master Bug#18912] Build failure with macOS 13 (Ventura) Beta hsbt (Hiroshi SHIBATA)
2022-07-19 15:44 ` [ruby-core:109248] " alanwu (Alan Wu)
2022-07-28  8:32 ` [ruby-core:109350] " hsbt (Hiroshi SHIBATA)
2022-07-28  9:04 ` [ruby-core:109351] " katei (Yuta Saito)
2022-07-28  9:43 ` [ruby-core:109352] " hsbt (Hiroshi SHIBATA)
2022-07-28 12:01 ` [ruby-core:109355] " alanwu (Alan Wu)
2022-08-01  4:24 ` [ruby-core:109398] " hsbt (Hiroshi SHIBATA)
2022-08-01  6:23 ` [ruby-core:109399] " hsbt (Hiroshi SHIBATA)
2022-08-05  3:40 ` [ruby-core:109424] " hsbt (Hiroshi SHIBATA)
2022-08-23 10:09 ` [ruby-core:109640] " hsbt (Hiroshi SHIBATA)
2022-09-17  7:47 ` [ruby-core:109936] [Ruby master Bug#18912] Build failure with Xcode 14 and " hsbt (Hiroshi SHIBATA)
2022-09-17 11:29 ` [ruby-core:109939] " katei (Yuta Saito)
2022-09-18  2:47 ` [ruby-core:109943] " nobu (Nobuyoshi Nakada)
2022-09-19  3:32 ` [ruby-core:109954] " nobu (Nobuyoshi Nakada)
2022-09-23 18:53 ` [ruby-core:110051] " katei (Yuta Saito)
2022-09-26  2:40 ` [ruby-core:110076] " hsbt (Hiroshi SHIBATA)
2022-09-26  8:16 ` [ruby-core:110082] " hsbt (Hiroshi SHIBATA)
2022-10-01  9:12 ` [ruby-core:110158] " nagachika (Tomoyuki Chikanaga)
2022-10-12  9:21 ` [ruby-core:110272] " hsbt (Hiroshi SHIBATA)
2022-11-12  4:24 ` [ruby-core:110721] " mrkn (Kenta Murata)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).