Opened 11 months ago

Last modified 3 months ago

#63761 new defect

gdb: Failed to destroot gdb: no files matched glob pattern "g*"

Reported by: joelburton (Joel Burton) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: monterey Cc: greyhare
Port: gdb

Description

Installing gdb on a new Macbook Pro M1, it fails with:

:debug:destroot Executing proc-post-org.macports.destroot-destroot-0
:error:destroot Failed to destroot gdb: no files matched glob pattern "g*"

Attachments (1)

main.log (637.9 KB) - added by joelburton (Joel Burton) 11 months ago.
main.log

Download all attachments as: .zip

Change History (10)

Changed 11 months ago by joelburton (Joel Burton)

Attachment: main.log added

main.log

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

Port: gdb added
Summary: gdb fails during destroot on Mac OS12 (Monterey)gdb: Failed to destroot gdb: no files matched glob pattern "g*"
Version: 2.7.1

comment:2 Changed 11 months ago by programmingkidx

I saw this error when I ran this command: sudo port install gdb +multiarch

My info:

Mac OS 11.1

M1 MacBook Air

Last edited 11 months ago by programmingkidx (previous) (diff)

comment:3 Changed 6 months ago by barracuda156

Failed for me likewise on PPC.

comment:4 Changed 6 months ago by greyhare

Cc: greyhare added

comment:5 Changed 6 months ago by greyhare

Also seeing this problem on Mac Studio.

comment:6 Changed 6 months ago by greyhare

Odd, it seems to be building for x86_64 instead of arm64. That can't end well.

comment:7 Changed 6 months ago by greyhare

Yep, for some reason a clean install of MacPorts for Monterey creates an /opt/local/etc/macports/macports.conf with

#build_arch x86_64

and I had to uninstall all packages, uncomment that line, change x86_64 to arm64, and reinstall gdb to get it to work.

comment:8 Changed 3 months ago by opoplawski (Orion Poplawski)

Well, according to the macports.conf file - the default build_arch on an M1 system should be arm64. And it does seem like most items that have been installed are that or arm64+x86_64. But gdb seems to insist on trying to install the x86_64 version for some reason.

comment:9 Changed 3 months ago by opoplawski (Orion Poplawski)

Near as I can tell, upstream gdb just doesn't support arm64-darwin yet.

Note: See TracTickets for help on using tickets.