Opened 6 months ago

Closed 6 months ago

Last modified 2 months ago

#69493 closed defect (fixed)

nettle @3.9.1_0+universal: xcode-select: Failed to locate 'm4'

Reported by: thefinalcutbg (Hristo Konstantinov) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: Cc:
Port: nettle

Description (last modified by thefinalcutbg (Hristo Konstantinov))

Trying to install nettle +universal fails. During the installation a dialog with the following message pops-up: "The "m4" command requires the command line developer tools". However I already have CL dev tools installed, but even if I reinstall it through the dialog, the m4 command is still not found, next time I try to install nettle again. Calling m4 in the terminal by itself works just fine. I need nettle universal version, since it is a dependency of xmlsec (which is the actual universal binary I need, and I can't install it without nettle).

Attachments (1)

main.log (166.8 KB) - added by thefinalcutbg (Hristo Konstantinov) 6 months ago.
the log from the install process

Download all attachments as: .zip

Change History (7)

Changed 6 months ago by thefinalcutbg (Hristo Konstantinov)

Attachment: main.log added

the log from the install process

comment:1 Changed 6 months ago by thefinalcutbg (Hristo Konstantinov)

Description: modified (diff)

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

Owner: set to ryandesign

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

The error in the log is:

xcode-select: Failed to locate 'm4', requesting installation of command line developer tools.

It seems Apple forgot to put m4 into the 15.3 version of the command line tools. This is the same problem as #69467 and #69481. It will be fixed by https://github.com/macports/macports-ports/pull/22984.

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

Summary: nettle +universal fails on MacOS Sonoma 14.3.1 and XCode 15.3nettle @3.9.1_0+universal: xcode-select: Failed to locate 'm4'
Version: 2.9.1

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

Resolution: fixed
Status: assignedclosed

In 48589c81916ab6bd8fa2d696a8b7a49d8c751dd6/macports-ports (master):

libtool: Use MacPorts m4

Fixes build of many ports that use libtool when using Xcode 15.3 in
which m4 is not included.

Closes: #69467
Closes: #69481
Closes: #69493
See: #69471

Reverses a previous decision not to use MacPorts m4 except on Tiger:

See: #47545

as it was already reversed in autoconf:

See: #62411

comment:6 in reply to:  3 Changed 2 months ago by ryandesign (Ryan Carsten Schmidt)

Replying to ryandesign:

It seems Apple forgot to put m4 into the 15.3 version of the command line tools.

Apple notified me that they fixed it in Xcode CLT 16 beta 3 and I verified it seems to be fixed in 16 beta, 16 beta 2, and 16 beta 3.

Note: See TracTickets for help on using tickets.