[MacPorts] #65055: libgcc11 11.3.0 update has removed libgcc_ext.10.[4-5].dylib

MacPorts noreply at macports.org
Tue Feb 7 23:53:37 UTC 2023


#65055: libgcc11 11.3.0 update has removed libgcc_ext.10.[4-5].dylib
-------------------------------------------------+-------------------------
  Reporter:  Serge3leo                           |      Owner:  Chris Jones
                                                 |  <jonesc@…>
      Type:  defect                              |     Status:  reopened
  Priority:  Normal                              |  Milestone:
 Component:  ports                               |    Version:  2.7.2
Resolution:                                      |   Keywords:
      Port:  libgcc11, gcc6, gcc7, gcc8, gcc9,   |
  gcc10                                          |
-------------------------------------------------+-------------------------

Comment (by rmottola):

 This error happens during configure of ArcticFox, so not exactly a "light"
 process, however it is something we know works using macports compilers on
 10.6 and 10.7.
 I installed most dependencies and have 3 compilers, here an excerpt of
 relevant ones:


 {{{
   cctools @949.0.1_2+llvm10 (active)
   clang-6.0 @6.0.1_4+analyzer+emulated_tls+libstdcxx (active)
   clang-15 @15.0.7_1+analyzer+libstdcxx (active)
   gcc12 @12.2.0_2+stdlib_flag (active)
   gcc12-libcxx @12.2.0_4+clang14 (active)
   libgcc @6.0_0 (active)
   libgcc12 @12.2.0_2+stdlib_flag (active)
   ld64 @3_4 (active)
   ld64-latest @450.3_0+llvm90 (active)
   llvm-6.0 @6.0.1_4 (active)
   llvm-9.0 @9.0.1_3+emulated_tls (active)
   llvm-10 @10.0.1_3+emulated_tls (active)
   llvm-15 @15.0.7_0 (active)
 }}}

 is the double libgcc normal? llvm-9.0 is there because of ld64

 This is my failure:

 {{{
  0:20.74 js/src> configure:8144: checking for -dead_strip option to ld
  0:20.74 js/src> configure:8155: /opt/local/bin/ccache clang-mp-15
 -march=corei7 -mtune=corei7 -o conftest  -isysroot
 /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -std=gnu99 -fno-
 common -Qunused-arguments   -lobjc -Wl,-dead_strip conftest.c  1>&5
  0:20.74 js/src> ld: library not found for -lgcc_s.10.5
  0:20.74 js/src> clang: error: linker command failed with exit code 1 (use
 -v to see invocation)
 }}}


 I tried compiling a simple hello world in C with gcc12, clang6 clang15 and
 it works.

 I tried using the full command line of the test:

 {{{
 clang-mp-15 -march=corei7 -mtune=corei7 -o conftest  -isysroot
 /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -std=gnu99 -fno-
 common -Qunused-arguments   -lobjc -Wl,-dead_strip hello.c
 }}}

 and it works. The test however, runs through ccache

 {{{
 /opt/local/bin/ccache clang-mp-15 -march=corei7 -mtune=corei7 -o conftest
 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk
 -std=gnu99 -fno-common -Qunused-arguments   -lobjc -Wl,-dead_strip hello.c
 }}}

 and it still works! And the absurd thing is that if I type out the test
 program, go into the subdirectory and issue exactly

 {{{
 /opt/local/bin/ccache clang-mp-15 -march=corei7 -mtune=corei7 -o conftest
 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk
 -std=gnu99 -fno-common -Qunused-arguments   -lobjc -Wl,-dead_strip
 conftest.c
 }}}

 it works....  I'm puzzled. I removed optimization flags, fails the same.


 {{{
  0:37.91 js/src> configure:8142: checking for -dead_strip option to ld
  0:37.91 js/src> configure:8153: /opt/local/bin/ccache clang-mp-15  -o
 conftest  -isysroot
 /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -std=gnu99 -fno-
 common -Qunused-arguments   -lobjc -Wl,-dead_strip conftest.c  1>&5
  0:37.91 js/src> ld: library not found for -lgcc_s.10.5
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/65055#comment:38>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list