Project

General

Profile

Actions

Bug #20631

open

Build failure with Xcode 16 beta and macOS 15 (Sequoia) Beta

Added by hsbt (Hiroshi SHIBATA) about 1 month ago. Updated 19 days ago.

Status:
Assigned
Target version:
-
[ruby-core:118577]

Description

I found some issues with Xcode 16 beta and macOS 15 (Sequoia) Beta.

TestRubyOptions and TestVMDump are failed with them.

full log: https://gist.github.com/hsbt/378fe2ba47e734f2562ba9a154e1795b

I'm not sure why macOS require sudo command for that.


And I and @katei (Yuta Saito) also found the regression of https://bugs.ruby-lang.org/issues/18912#note-15.

>> pid = fork { p File.realpath "/" }
>> Process.waitpid(pid)
objc[82573]: +[NSPlaceholderMutableString initialize] may have been in progress in another thread when fork() was called.
objc[82573]: +[NSPlaceholderMutableString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
=> 82573

Related issues 3 (2 open1 closed)

Related to Ruby master - Bug #19831: warning message of linker with macOS Sonoma betaOpenActions
Related to Ruby master - Bug #19794: Ruby 3.2.2 fails to build on macOS Sonoma betasAssignednobu (Nobuyoshi Nakada)Actions
Related to Ruby master - Bug #18912: Build failure with Xcode 14 and macOS 13 (Ventura) BetaClosedhsbt (Hiroshi SHIBATA)Actions

Updated by hsbt (Hiroshi SHIBATA) about 1 month ago

I also found build failure of oj-introspect.

https://github.com/meinac/oj-introspect/blob/master/ext/oj-introspect/extconf.rb#L17

$DLDFLAGS << " -Wl,-U,#{sym.strip}"

This line is broken with Xcode 16 beta.

linking shared-object oj/introspect/introspect_ext.bundle
ld: -undefined dynamic_lookup cannot be used with -U
clang: error: linker command failed with exit code 1 (use -v to see invocation)

BTW, this is not ruby/ruby issue.

Updated by hsbt (Hiroshi SHIBATA) about 1 month ago

I skipped crashed tests at https://github.com/ruby/ruby/pull/11155

These are caused by Process.daemon and Process.kill(:SEGV, ...).

Updated by hsbt (Hiroshi SHIBATA) about 1 month ago

  • Status changed from Open to Assigned
  • Assignee set to hsbt (Hiroshi SHIBATA)
Actions #4

Updated by hsbt (Hiroshi SHIBATA) 26 days ago

  • Related to Bug #19831: warning message of linker with macOS Sonoma beta added
Actions #5

Updated by hsbt (Hiroshi SHIBATA) 26 days ago

  • Related to Bug #19794: Ruby 3.2.2 fails to build on macOS Sonoma betas added
Actions #6

Updated by hsbt (Hiroshi SHIBATA) 26 days ago

  • Related to Bug #18912: Build failure with Xcode 14 and macOS 13 (Ventura) Beta added

Updated by hsbt (Hiroshi SHIBATA) 19 days ago

Xcode 16 beta 4 fixed the following issue.

This line is broken with Xcode 16 beta.
linking shared-object oj/introspect/introspect_ext.bundle
ld: -undefined dynamic_lookup cannot be used with -U
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The detailed version is here:

$ pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 16.0.0.0.1.1721279336
volume: /
location: /
install-time: 1722244152
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0