<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Re: <a href="https://gitlab.haskell.org/ghc/ghc/-/issues/22118" class="">https://gitlab.haskell.org/ghc/ghc/-/issues/22118</a><div class=""><br class=""></div><div class="">I'm self-bootstrapping ghc 9.4.2 using hadrian for deployment on MacPorts.<br class=""><br class="">Running hadrian -f binary-dist throws this error:</div><div class=""><blockquote type="cite" class=""><pre class="highlight code" lang="shell"><span id="LC5" class="line" lang="shell">:info:build   <span class="s2">"_iconv_close"</span>, referenced from:</span>
<span id="LC6" class="line" lang="shell">:info:build       _hs_iconv_close <span class="k">in </span>libHSbase-4.17.0.0.a<span class="o">(</span>iconv.o<span class="o">)</span></span>
<span id="LC7" class="line" lang="shell">:info:build      <span class="o">(</span>maybe you meant: _hs_iconv_close<span class="o">)</span></span>
<span id="LC8" class="line" lang="shell">:info:build   <span class="s2">"_iconv"</span>, referenced from:</span>
<span id="LC9" class="line" lang="shell">:info:build       _hs_iconv <span class="k">in </span>libHSbase-4.17.0.0.a<span class="o">(</span>iconv.o<span class="o">)</span></span>
</pre></blockquote><div class=""><br class=""></div></div><div class="">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:</div><div class=""><blockquote type="cite" class=""><pre class="highlight code" lang="shell"><span id="LC1" class="line" lang="shell"><span class="nb">ls</span> /usr/lib/libiconv<span class="k">*</span></span>
<span id="LC2" class="line" lang="shell"><span class="nb">ls</span>: /usr/lib/libiconv<span class="k">*</span>: No such file or directory</span>
</pre></blockquote><div class=""><br class=""></div></div><div class="">And port iconv provides the _libiconv_open symbol, not the _iconv_open symbol.<br class=""><br class="">Is anyone aware of a solution to a missing libconv.dylib on recent macOS?</div><div class=""><br class=""></div></body></html>