Opened 6 months ago

Last modified 6 weeks 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) 6 months ago.
main.log

Download all attachments as: .zip

Change History (8)

Changed 6 months ago by joelburton (Joel Burton)

Attachment: main.log added

main.log

comment:1 Changed 6 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 6 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 6 months ago by programmingkidx (previous) (diff)

comment:3 Changed 7 weeks ago by barracuda156

Failed for me likewise on PPC.

comment:4 Changed 6 weeks ago by greyhare

Cc: greyhare added

comment:5 Changed 6 weeks ago by greyhare

Also seeing this problem on Mac Studio.

comment:6 Changed 6 weeks ago by greyhare

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

comment:7 Changed 6 weeks 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.

Note: See TracTickets for help on using tickets.