Missing macOS libiconv.dylib Breaks ghc Bootstrap

Steven Smith steve.t.smith at gmail.com
Sun Aug 28 18:42:02 UTC 2022


Re: https://gitlab.haskell.org/ghc/ghc/-/issues/22118 <https://gitlab.haskell.org/ghc/ghc/-/issues/22118>

I'm self-bootstrapping ghc 9.4.2 using hadrian for deployment on MacPorts.

Running hadrian -f binary-dist throws this error:
> :info:build   "_iconv_close", referenced from:
> :info:build       _hs_iconv_close in libHSbase-4.17.0.0.a(iconv.o)
> :info:build      (maybe you meant: _hs_iconv_close)
> :info:build   "_iconv", referenced from:
> :info:build       _hs_iconv in libHSbase-4.17.0.0.a(iconv.o)

The archive file libHSbase-4.17.0.0.a in the ghc install uses the undefined symbol _iconv_close; however, macOS 12.5.1 no longer appears to provide a system libiconv:
> ls /usr/lib/libiconv*
> ls: /usr/lib/libiconv*: No such file or directory

And port iconv provides the _libiconv_open symbol, not the _iconv_open symbol.

Is anyone aware of a solution to a missing libconv.dylib on recent macOS?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20220828/8c7a6d1b/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3898 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20220828/8c7a6d1b/attachment.bin>


More information about the macports-dev mailing list