Opened 5 months ago

Last modified 4 months ago

#73210 new defect

gdb: opportunistic use of xxhashlib and zstd

Reported by: ungur (Liviu Ungur) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: tahoe Cc:
Port: gdb

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

liviuungur@Livius-MacBook-Pro-2 build % sudo port install gdb
--->  Computing dependencies for gdb
--->  Fetching archive for gdb
--->  Attempting to fetch gdb-16.3_0.darwin_25.x86_64.tbz2 from https://packages.macports.org/gdb
--->  Attempting to fetch gdb-16.3_0.darwin_25.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/gdb
--->  Attempting to fetch gdb-16.3_0.darwin_25.x86_64.tbz2 from https://kmq.jp.packages.macports.org/gdb
--->  Fetching distfiles for gdb
--->  Verifying checksums for gdb
--->  Extracting gdb
--->  Configuring gdb
--->  Building gdb                                       
Error: Failed to build gdb: command execution failed     
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gdb/gdb/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port gdb failed
liviuungur@Livius-MacBook-Pro-2 build % 

Content of the main.log with error is:

info:build   CXX    init.o
info:build   CXXLD  gdb
info:build ld: warning: ignoring file '/opt/local/lib/libxxhash.dylib': found architecture 'arm64', required architecture 'x86_64'
info:build Undefined symbols for architecture x86_64:
info:build   "_XXH64", referenced from:
info:build       gdb::bcache::hash(void const*, int) in bcache.o
info:build       minimal_symbol_reader::install()::$_0::operator()(minimal_symbol*, minimal_symbol*) const in minsyms.o
info:build       psymbol_bcache::hash(void const*, int) in psymtab.o
info:build       psymbol_bcache::hash(void const*, int) in psymtab.o
info:build       psymbol_bcache::hash(void const*, int) in psymtab.o
info:build       psymbol_bcache::hash(void const*, int) in psymtab.o
info:build       psymbol_bcache::hash(void const*, int) in psymtab.o
info:build       ...
info:build ld: symbol(s) not found for architecture x86_64
info:build clang++: error: linker command failed with exit code 1 (use -v to see invocation)
info:build make[2]: *** [gdb] Error 1
info:build make[2]: Leaving directory `/opt/local/var/macports/build/gdb-bdb5bf0b/work/build/gdb'
info:build make[1]: *** [all-gdb] Error 2
info:build make[1]: Leaving directory `/opt/local/var/macports/build/gdb-bdb5bf0b/work/build'
info:build make: *** [all] Error 2
info:build make: Leaving directory `/opt/local/var/macports/build/gdb-bdb5bf0b/work/build'
info:build Command failed:  cd "/opt/local/var/macports/build/gdb-bdb5bf0b/work/build" && /usr/bin/make -j16 -w all
info:build Exit code: 2
error:build Failed to build gdb: command execution failed
debug:build Error code: CHILDSTATUS 65958 2

Attachments (1)

main.log (411.6 KB) - added by ungur (Liviu Ungur) 5 months ago.
main.log file

Download all attachments as: .zip

Change History (5)

Changed 5 months ago by ungur (Liviu Ungur)

Attachment: main.log added

main.log file

comment:1 Changed 5 months ago by ungur (Liviu Ungur)

Keywords: gdb added
Port: gdb added

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

Description: modified (diff)
Keywords: tahoe added; gdb removed
Summary: gdb fails to install on latest OSX (Tahoe 26.1 (25B78))gdb: opportunistic use of xxhashlib

The workaround is probably:

sudo port clean gdb
sudo port -f deactivate xxhashlib
sudo port install gdb
sudo port activate xxhashlib

comment:3 Changed 4 months ago by percontation (Ryan Goulden)

The zstd port too.

:info:build ld: warning: ignoring file '/opt/local/lib/libzstd.dylib': found architecture 'arm64', required architecture 'x86_64'
:info:build ld: warning: ignoring file '/opt/local/lib/libxxhash.dylib': found architecture 'arm64', required architecture 'x86_64'
:info:build Undefined symbols for architecture x86_64:
:info:build   "_XXH64", referenced from:
:info:build       gdb::bcache::hash(void const*, int) in bcache.o
:info:build       minimal_symbol_reader::install()::$_0::operator()(minimal_symbol*, minimal_symbol*) const in minsyms.o
:info:build       psymbol_bcache::hash(void const*, int) in psymtab.o
:info:build       psymbol_bcache::hash(void const*, int) in psymtab.o
:info:build       psymbol_bcache::hash(void const*, int) in psymtab.o
:info:build       psymbol_bcache::hash(void const*, int) in psymtab.o
:info:build       psymbol_bcache::hash(void const*, int) in psymtab.o
:info:build       ...
:info:build   "_ZSTD_compress", referenced from:
:info:build       _bfd_compress_section_contents in libbfd.a[8](compress.o)
:info:build   "_ZSTD_decompress", referenced from:
:info:build       _decompress_contents in libbfd.a[8](compress.o)
:info:build   "_ZSTD_isError", referenced from:
:info:build       _decompress_contents in libbfd.a[8](compress.o)
:info:build       _bfd_compress_section_contents in libbfd.a[8](compress.o)
:info:build ld: symbol(s) not found for architecture x86_64
:info:build clang++: error: linker command failed with exit code 1 (use -v to see invocation)

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

Summary: gdb: opportunistic use of xxhashlibgdb: opportunistic use of xxhashlib and zstd
Note: See TracTickets for help on using tickets.