[MacPorts] #74031: ghc @9.14.1_2 build fails
MacPorts
noreply at macports.org
Sun May 24 19:33:57 UTC 2026
#74031: ghc @9.14.1_2 build fails
------------------------+--------------------
Reporter: essandess | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: ghc |
------------------------+--------------------
Description changed by essandess:
Old description:
> The ticket is a followup of https://trac.macports.org/ticket/73754
>
> {{{ghc}}} fails to build because the symbol changes made to {{{ghc-
> prebuilt}}} in https://github.com/macports/macports-
> ports/commit/7704d783cdeb79174e270b0712d94a64f64c8d0d are incompatible
> with the existing {{{hadrian}}} setting
> {{{
> stage0.*.ghc.link.opts += -L${configure.sdkroot}/usr/lib
> }}}
> which specifies that the stage 0 compiler link against the SDK
> {{{libiconv}}} symbols used in the unmodified {{{ghc-prebuilt}}}
> compiler. Setting
> {{{
> stage0.*.ghc.link.opts += -L${prefix}/lib
> }}}
> fixes this issue, in addition to keeping the potentially useful symbol
> changes in {{{ghc-prebuilt}}} to MacPorts {{{libiconv}}} that may address
> future {{{ghc}} compiling issues.
>
> I will post a PR.
New description:
The ticket is a followup of https://trac.macports.org/ticket/73754
{{{ghc}}} fails to build because the symbol changes made to {{{ghc-
prebuilt}}} in https://github.com/macports/macports-
ports/commit/7704d783cdeb79174e270b0712d94a64f64c8d0d are incompatible
with the existing {{{hadrian}}} setting
{{{
stage0.*.ghc.link.opts += -L${configure.sdkroot}/usr/lib
}}}
which specifies that the stage 0 compiler link against the SDK
{{{libiconv}}} symbols used in the unmodified {{{ghc-prebuilt}}} compiler.
Error:
{{{
:info:build Undefined symbols for architecture x86_64:
:info:build "_libiconv", referenced from:
:info:build _hs_iconv in libHSghc-
internal-9.1401.0-53af.a[6](iconv.o)
:info:build "_libiconv_close", referenced from:
:info:build _hs_iconv_close in libHSghc-
internal-9.1401.0-53af.a[6](iconv.
o)
:info:build "_libiconv_open", referenced from:
:info:build _hs_iconv_open in libHSghc-
internal-9.1401.0-53af.a[6](iconv.o
)
:info:build ld: symbol(s) not found for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v
to see
invocation)
}}}
Setting
{{{
stage0.*.ghc.link.opts += -L${prefix}/lib
}}}
fixes this issue, in addition to keeping the potentially useful symbol
changes in {{{ghc-prebuilt}}} to MacPorts {{{libiconv}}} that may address
future {{{ghc}}} compiling issues.
I will post a PR.
--
--
Ticket URL: <https://trac.macports.org/ticket/74031#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list