Issue #19831 has been updated by hsbt (Hiroshi SHIBATA).
Status changed from Closed to Open
This warnings are still happend with
https://github.com/ruby/ruby/commit/af67ced3b0945e8ea67434f8e66ef1e602656438
```
linking ruby
ld: warning: ignoring duplicate library '-lgmp'
ld: warning: ignoring duplicate library '-ldl'
ld: warning: ignoring duplicate library '-lobjc'
ld: warning: ignoring duplicate library '-lpthread'
warning: (arm64) skipping debug map object with duplicate name and timestamp: 1970-01-01
09:00:00.000000000
/Users/hsbt/Documents/github.com/ruby/ruby/libruby.3.3-static.a(node.o)
warning: (arm64) skipping debug map object with duplicate name and timestamp: 1970-01-01
09:00:00.000000000
/Users/hsbt/Documents/github.com/ruby/ruby/libruby.3.3-static.a(pack.o)
ruby: replacing existing signature
```
```
$ pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 15.0.0.0.1.1691205695
```
----------------------------------------
Bug #19831: warning message of linker with macOS Sonoma beta
https://bugs.ruby-lang.org/issues/19831#change-104141
* Author: hsbt (Hiroshi SHIBATA)
* Status: Open
* Priority: Normal
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN
----------------------------------------
Xcode 15 beta and macOS Sonoma beta show the following warnings with `make`
```
(snip)
linking miniruby
ld: warning: ignoring duplicate library '-lpthread'
miniruby: replacing existing signature
exe/ruby: replacing existing signature
builtin_binary.inc updated
compiling builtin.c
linking static-library libruby.3.3-static.a
linking ruby
ld: warning: ignoring duplicate library '-lgmp'
ld: warning: ignoring duplicate library '-ldl'
ld: warning: ignoring duplicate library '-lobjc'
ld: warning: ignoring duplicate library '-lpthread'
ld: warning: ignoring duplicate library '-lpthread'
(snip)
```
I'm not investigate that yet. It may be caused by `ld-prime` that is new linker of
macOS platform.
```
$ pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 15.0.0.0.1.1690355577
volume: /
location: /
install-time: 1690967267
```
--
https://bugs.ruby-lang.org/