Opened 12 months ago

Last modified 12 months ago

#68312 closed defect

gcc13 C++ library linking error — at Version 2

Reported by: haberg-1 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: gcc13

Description (last modified by ryandesign (Ryan Carsten Schmidt))

There is a gcc13 C++ library linking error [1], which does not appear with gcc12 or clang-17, when compiling [2]: The name replace_cold, as in [1], appears only in the static libraries libstdc++.a and libstdc++fs.a, and not the dynamic library libstdc++.6.dylib. It does not appear in the gcc12 C++ libraries.

Undefined symbols for architecture x86_64:
  "__ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE15_M_replace_coldEPcmPKcmm", referenced from:
      __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm in database-lexer.o
      __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm in database-parser.o
      __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm in directive-lexer.o
  1. https://savannah.gnu.org/git/?group=metalogic-inference

Change History (2)

comment:1 Changed 12 months ago by reneeotten (Renee Otten)

Keywords: sonoma removed
Port: gcc13 added; gcc12 removed

comment:2 Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Note: See TracTickets for help on using tickets.