[MacPorts] #63871: mongodb 5.0.3: Fails at configure stage on Mac OS Monterey
MacPorts
noreply at macports.org
Tue Nov 9 20:08:23 UTC 2021
#63871: mongodb 5.0.3: Fails at configure stage on Mac OS Monterey
-------------------------+--------------------
Reporter: knightcode | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords:
Port: mongodb |
-------------------------+--------------------
Comment (by ryandesign):
Replying to [comment:3 ryandesign]:
> I'm not sure if this is the cause, but the config.log has a lot of:
> {{{
> ld: warning: dylib (/opt/local/lib/libsasl2.dylib) was built for newer
macOS version (12.0) than being linked (11.3)
> }}}
So indeed the mongodb build uses the linker flag `-fatal_warnings`,
thereby requesting that possibly harmless warnings like the above be
turned into fatal errors.
I do see in your log file:
{{{
The macOS 12 SDK does not appear to be installed. Ports may not build
correctly.
}}}
The log says you have Xcode 13.1. Do you also have the Xcode 13.1 version
of the command line tools? Check /Library/Developer/CommandLineTools/SDKs.
If you do not see MacOSX12.sdk in there, your command line tools are out
of date and you need to update them. There is a bug in macOS that prevents
it from automatically updating the CLT for you so you have to do it
manually. For instructions see ProblemHotlist#reinstall-clt.
--
Ticket URL: <https://trac.macports.org/ticket/63871#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list