[MacPorts] #68865: gdb @13.2 on OSX 10.11.6 build failure - linker can't find "std::uncaught_exceptions()"

MacPorts noreply at macports.org
Sat Dec 9 23:11:47 UTC 2023


#68865: gdb @13.2 on OSX 10.11.6 build failure - linker can't find
"std::uncaught_exceptions()"
-------------------------------+-----------------------
 Reporter:  pat-rankin         |      Owner:  (none)
     Type:  defect             |     Status:  new
 Priority:  Normal             |  Milestone:
Component:  ports              |    Version:  2.8.1
 Keywords:  gdb build failure  |       Port:  gdb @13.2
-------------------------------+-----------------------
 Building gdb 13.2 fails on OSX 10.11.6 with clang-16.

 The linker's complaint is
 {{{
  Undefined symbols for architecture x86_64:
    "std::uncaught_exceptions()", referenced from:
        infcall_suspend_state_deleter::operator()(infcall_suspend_state*)
 const in infcall.o
  ld: symbol(s) not found for architecture x86_64
  clang: error: linker command failed with exit code 1 (use -v to see
 invocation)
 }}}

 The build process
 {{{
 sudo port selfupdate
  version 2.8.1, no update needed

 sudo upgrade outdated
  ... (lots)
 --->  Computing dependencies for gdb
 --->  Fetching archive for gdb
  (2 fetch attempts skipped)
 --->  Attempting to fetch gdb-13.2_0.darwin_15.x86_64.tbz2 from
 http://ywg.ca.packages.macports.org/mirror/macports/packages/gdb
 --->  Fetching distfiles for gdb
 --->  Attempting to fetch gdb-13.2.tar.gz from
 http://distfiles.macports.org/gdb
 --->  Verifying checksums for gdb
 --->  Extracting gdb
 --->  Applying patches to gdb
 --->  Configuring gdb
 --->  Building gdb
 Error: Failed to build gdb: command execution failed
 }}}

 Full gdb/main.log is attached but the build's use of 'make -j2' has
 resulted in lots of confusion as testA... resultA followed by testB...
 resultB end up with the tests and their results interleaved by two
 processes in an unpredictable fashion.

 (Incidentally, the log file shows lots of warnings--or rather a couple of
 warnings repeated lots of times--when the gdb build process builds zlib
 and getline.)

-- 
Ticket URL: <https://trac.macports.org/ticket/68865>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list