Opened 5 months ago

Last modified 5 months ago

#68865 new defect

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

Reported by: pat-rankin Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: gdb

Description

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.)

Attachments (1)

gdb-13.2-main.log (485.7 KB) - added by pat-rankin 5 months ago.
Log file for gdb-13.2 produced via 'port upgrade outdated'.

Download all attachments as: .zip

Change History (2)

Changed 5 months ago by pat-rankin

Attachment: gdb-13.2-main.log added

Log file for gdb-13.2 produced via 'port upgrade outdated'.

comment:1 Changed 5 months ago by jmroot (Joshua Root)

Keywords: gdb build failure removed
Port: @13.2 removed
Note: See TracTickets for help on using tickets.