[MacPorts] #73535: ghc @9.14.1_1 (+prebuilt) has issues on MacOS 15.7.1 when building cabal
MacPorts
noreply at macports.org
Sat May 23 21:00:57 UTC 2026
#73535: ghc @9.14.1_1 (+prebuilt) has issues on MacOS 15.7.1 when building cabal
-----------------------------------+----------------------
Reporter: Gandoon | Owner: pmetzger
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.12.1
Resolution: fixed | Keywords:
Port: ghc, cabal, libiconv |
-----------------------------------+----------------------
Changes (by pmetzger):
* owner: (none) => pmetzger
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"7704d783cdeb79174e270b0712d94a64f64c8d0d/macports-ports"
7704d783cdeb79174e270b0712d94a64f64c8d0d/macports-ports] (master):
{{{
#!ConfigurableCommitTicketReference repository="macports-ports"
revision="7704d783cdeb79174e270b0712d94a64f64c8d0d"
ghc: fix prebuilt libiconv linkage on Darwin
The upstream Darwin bindist is built against the SDK iconv, whose
entry points are named iconv*. MacPorts builds can put ${prefix}/lib
ahead of the SDK library path, causing downstream GHC links to
resolve against MacPorts libiconv, which exports libiconv* instead.
This broke builds of Haskell ports such as cabal with undefined
_iconv, _iconv_open, and _iconv_close symbols from ghc-internal.
When installing the prebuilt GHC, rewrite ghc-internal's iconv
object in the static archives and the ghc-internal dylibs to
reference libiconv* symbols. Also rewrite the dylib load command to
use ${prefix}/lib/libiconv.2.dylib, add ${prefix}/lib to
ghc-internal's package metadata library search paths, and recache the
package database.
This makes ghc +prebuilt internally consistent with its MacPorts
libiconv dependency and allows cabal to build successfully with
ghc @9.14.1_2+prebuilt.
Closes: https://trac.macports.org/ticket/73535
}}}
--
Ticket URL: <https://trac.macports.org/ticket/73535#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list