Opened 3 years ago

Closed 3 years ago

#63153 closed defect (fixed)

gdb-apple @1824_1: build tries to use non-existent mig

Reported by: cooljeanius (Eric Gallager) Owned by: evanmiller (Evan Miller)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port: gdb-apple

Description

It has a wrong path:

make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gdb-apple/gdb-apple/work/gdb-1824/src/gdb'
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/bin/mig -I. ./macosx/macosx.defs
make[1]: /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/bin/mig: No such file or directory
make[1]: *** [mach_excServer.c] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gdb-apple/gdb-apple/work/gdb-1824/src/gdb'
make: *** [all-gdb] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gdb-apple/gdb-apple/work/gdb-1824/src'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gdb-apple/gdb-apple/work/gdb-1824/src" && /usr/bin/make -j1 -w all MAKEINFO="/usr/bin/makeinfo" LEXLIB="/opt/local/lib/libfl.a" 
Exit code: 2
Error: Failed to build gdb-apple: command execution failed
DEBUG: Error code: CHILDSTATUS 60225 2

I have the following mig executables on my system:

$ which -a mig | sort | uniq
/opt/local/bin/mig
/usr/bin/mig
$

The one in my MacPorts prefix is from bootstrap_cmds:

$ port provides /opt/local/bin/mig
/opt/local/bin/mig is provided by: bootstrap_cmds
$

So perhaps add a dependency on bootstrap_cmds, and configure the port to use that mig when building instead?

Change History (1)

comment:1 Changed 3 years ago by evanmiller (Evan Miller)

Owner: set to evanmiller
Resolution: fixed
Status: newclosed

In b7332c346fe7e084e94e45a137b4c60795a6dce6/macports-ports (master):

gdb-apple: Use /usr/bin/mig instead of SDK mig

Closes: #63153

Note: See TracTickets for help on using tickets.