Missing macOS libiconv.dylib Breaks ghc Bootstrap

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


P.S. CLT provides the file

/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libiconv.tbd

But is points to the nonexistent file:

> install-name:    '/usr/lib/libiconv.2.dylib'



> On Aug 28, 2022, at 2:42 PM, Steven Smith <steve.t.smith at gmail.com> wrote:
> 
> 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/ea4c014b/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/ea4c014b/attachment.bin>


More information about the macports-dev mailing list