Opened 13 months ago

Last modified 13 months ago

#68627 new defect

gdb @13.2_0+multiarch: Building in 12.7 arm machine builds for intel

Reported by: pilonsi (Jorge Fabregat) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: monterey arm64 Cc:
Port: gdb

Description

When building gdb with the multiarch option in a Monterrey ARM machine the source is fetched for intel:

---> Attempting to fetch gdb-13.2_0+multiarch.darwin_21.x86_64.tbz2 from https://packages.macports.org/gdb

and build is configured for intel. See lines 581 and onwards of the log file.

Attachments (1)

main.log (490.8 KB) - added by pilonsi (Jorge Fabregat) 13 months ago.
Build log file

Download all attachments as: .zip

Change History (3)

Changed 13 months ago by pilonsi (Jorge Fabregat)

Attachment: main.log added

Build log file

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

That's not fetching source; that's fetching a binary.

The gdb port specifies that it only supports the i386 and x86_64 architectures, therefore on your arm64 machine it will install the x86_64 version. However, this was specified in the port 11 years ago with the intention of excluding PowerPC machines, not excluding Apple Silicon machines which did not exist at the time. You could try adding arm64 to the Portfile's supported_archs line and see if it builds successfully and works. If so, you can submit a pull request for that change. The port has no maintainer; anybody can volunteer to fix it.

comment:2 Changed 13 months ago by jmroot (Joshua Root)

Seems like a duplicate of #62356?

Note: See TracTickets for help on using tickets.