<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="">P.S. CLT provides the file<div class=""><br class=""></div><div class="">/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libiconv.tbd<br class=""><div><br class=""></div><div>But is points to the nonexistent file:</div><div><br class=""></div><div><blockquote type="cite" class=""><div style="margin: 0px; font-stretch: normal; font-size: 24px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">install-name: '/usr/lib/libiconv.2.dylib'</span></div></blockquote></div><div><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 28, 2022, at 2:42 PM, Steven Smith <<a href="mailto:steve.t.smith@gmail.com" class="">steve.t.smith@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class=""><div 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></div></div></blockquote></div><br class=""></div></body></html>