[MacPorts] #72501: stack not working on Mojave (macOS 10.14.6)
MacPorts
noreply at macports.org
Mon May 19 00:27:11 UTC 2025
#72501: stack not working on Mojave (macOS 10.14.6)
----------------------------+--------------------
Reporter: macportsmojave | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port:
----------------------------+--------------------
Tried to build stack (haskell's build tool, haskellstack) on Mojave (macOS
10.14.6).
The command
`port install stack`
installs version 3.5.1
However, when I try to use stack,
`stack build`
stack first tries to install GHC (the Haskell compiler), and fails
-------------------------------------------------------------------
$ `stack build`
{{{
Preparing to install GHC to an isolated location. This will not interfere
with
any system-level installation.
Already downloaded ghc-9.8.4.
Unpacking GHC into ~/.stack/programs/x86_64-osx/ghc-9.8.4.temp/ ...dyld:
lazy symbol binding failed: Symbol not found:
_posix_spawn_file_actions_addchdir_np
Referenced from: /opt/local/bin/stack (which was built for Mac OS X
13.0)
Expected in: /opt/local/lib/libMacportsLegacySystem.B.dylib
dyld: Symbol not found: _posix_spawn_file_actions_addchdir_np
Referenced from: /opt/local/bin/stack (which was built for Mac OS X
13.0)
Expected in: /opt/local/lib/libMacportsLegacySystem.B.dylib
}}}
Evidently, stack 3.5.1 is built for Ventura (macOS 13.0), though I am
still on Mojave (10.14.6). Is there a workaround?
--
Ticket URL: <https://trac.macports.org/ticket/72501>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list