Project

General

Profile

Actions

Bug #19831

open

warning message of linker with macOS Sonoma beta

Bug #19831: warning message of linker with macOS Sonoma beta

Added by hsbt (Hiroshi SHIBATA) over 2 years ago. Updated almost 2 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:114345]

Description

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 

Related issues 2 (0 open2 closed)

Updated by nobu (Nobuyoshi Nakada) over 2 years ago Actions #1

  • Status changed from Open to Closed

Applied in changeset git|b7453b91dc1e5adc9d5ebe15c644cf5e0a54e3ac.


[Bug #19831] Remove duplicate library options

$(MAINLIBS) should include $(LIBS) already.

Updated by hsbt (Hiroshi SHIBATA) about 2 years ago Actions #2 [ruby-core:114393]

  • 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 

Updated by hsbt (Hiroshi SHIBATA) about 2 years ago Actions #3 [ruby-core:114394]

$ rm -f ruby; make -n ruby rm -f ruby echo linking ruby clang -fdeclspec -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -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 -Wundef -pipe -L. -fstack-protector-strong -L/opt/homebrew/opt/gmp/lib -fstack-protector-strong -Wl,-pie -framework CoreFoundation main.o dmyext.o -lruby.3.3-static -framework CoreFoundation -lgmp -ldl -lobjc -lpthread -lgmp -ldl -lobjc -lpthread -o ruby dsymutil ruby; { test -z 'hsbt' || codesign -s 'hsbt' -f ruby; } 

Updated by nobu (Nobuyoshi Nakada) about 2 years ago Actions #4

  • Status changed from Open to Closed

Applied in changeset git|5bb946228550c7f171c27725860b153a675404f3.


[Bug #19831] Remove duplicate library options

$(MAINLIBS) should be included in $(LIBRUBYARG) in cases it is
needed.

Updated by hsbt (Hiroshi SHIBATA) almost 2 years ago Actions #5

  • Related to Bug #20072: free(): invalid pointer when compiled with --enable-shared --with-jemalloc added

Updated by hsbt (Hiroshi SHIBATA) almost 2 years ago Actions #6 [ruby-core:115896]

  • Status changed from Closed to Open

This is still happend with latest version of Xcode.

linking ruby ld: warning: ignoring duplicate libraries: '-ldl', '-lobjc', '-lpthread' ruby: replacing existing signature 

Updated by hsbt (Hiroshi SHIBATA) over 1 year ago Actions #7

  • Related to Bug #20631: Build failure with Xcode 16 beta and macOS 15 (Sequoia) Beta added
Actions

Also available in: PDF Atom