<div dir="ltr">Thanks!<div>I've not had the problem with other software. To check I reinstalled iconv</div><div>with macports brew, and building  and installing it direct from GNU sources.</div><div><br></div><div>however the problem does not  seem to be libiconv per se, but</div><div>libHSbase, and its unclear how to fix that</div><div><br></div><div><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(59,35,34);background-color:rgb(215,211,183)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>_hs_iconv in libHSbase-4.14.3.0.a(iconv.o)</span></p></div><div><br></div><div><br></div><div>There have been longstanding issues with this library [iconv]</div><div>int the Haskell ecosystem, cf</div><div><a href="https://stackoverflow.com/questions/43359289/architecture-x86-64-while-running-haskell-code-haskell-osx-iconv">https://stackoverflow.com/questions/43359289/architecture-x86-64-while-running-haskell-code-haskell-osx-iconv</a><br></div><div>I was hoping there had been progress with binary releases</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 11, 2021 at 10:12 AM YueCompl <<a href="mailto:compl.yue@icloud.com">compl.yue@icloud.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">Never met this issue myself (with currently osx 10.14.6 Mojave, and a few previous versions), I guess macports/homebrew or some other pieces aren't playing nicely with some others in your machine.<div><br></div><div>Checkout <a href="https://newbedev.com/libiconv-or-iconv-undefined-symbol-on-mac-osx" target="_blank">https://newbedev.com/libiconv-or-iconv-undefined-symbol-on-mac-osx</a> maybe helpful.<br><div><br><blockquote type="cite"><div>On 2021-10-11, at 17:00, David Duke <<a href="mailto:duke.j.david@gmail.com" target="_blank">duke.j.david@gmail.com</a>> wrote:</div><br><div><div dir="ltr">I have a conundrum on which advice would be appreciate. Does<div>anyone know how to successfully install ghc on OSX </div><div>I've tried various binary instalation routes:</div><div>macports, brew, direct binary downloads from <a href="http://haskel.org/" target="_blank">haskel.org</a></div><div>All have the same result. when I try to compile a basic hello world program I get</div><div><br></div><div>Undefined symbols for architecture x86_64:<br>  "_iconv", referenced from:<br>      _hs_iconv in libHSbase-4.14.3.0.a(iconv.o)<br>     (maybe you meant: _base_GHCziIOziEncodingziIconv_iconvEncoding1_closure, _base_GHCziIOziEncodingziIconv_iconvEncoding1_info , _base_GHCziIOziEncodingziIconv_iconvEncoding4_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding15_info , _base_GHCziIOziEncodingziIconv_iconvEncoding4_info , _base_GHCziIOziEncodingziIconv_iconvEncoding7_info , _base_GHCziIOziEncodingziIconv_iconvEncoding6_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding6_info , _base_GHCziIOziEncodingziIconv_iconvEncoding8_info , _hs_iconv_open , _base_GHCziIOziEncodingziIconv_iconvEncoding9_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding12_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding11_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding9_info , _base_GHCziIOziEncodingziIconv_iconvEncoding12_info , _base_GHCziIOziEncodingziIconv_iconvEncoding13_info , _base_GHCziIOziEncodingziIconv_iconvEncoding11_info , _base_GHCziIOziEncodingziIconv_iconvEncoding7_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding_info , _base_GHCziIOziEncodingziIconv_iconvEncoding13_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding2_info , _base_GHCziIOziEncodingziIconv_iconvEncoding14_bytes , _base_GHCziIOziEncodingziIconv_iconvEncoding15_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding3_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding8_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding2_closure , _hs_iconv , _base_GHCziIOziEncodingziIconv_iconvEncoding10_bytes , _hs_iconv_close , _base_GHCziIOziEncodingziIconv_iconvEncoding5_closure )<br>  "_iconv_open", referenced from:<br>      _hs_iconv_open in libHSbase-4.14.3.0.a(iconv.o)<br>     (maybe you meant: _hs_iconv_open)<br>  "_iconv_close", referenced from:<br>      _hs_iconv_close in libHSbase-4.14.3.0.a(iconv.o)<br>     (maybe you meant: _hs_iconv_close)<br>  "_locale_charset", referenced from:<br>      _localeEncoding in libHSbase-4.14.3.0.a(PrelIOUtils.o)<br>ld: symbol(s) not found for architecture x86_64<br></div><div><br></div><div>I've triedgiong  through ghcup</div><div><br></div><div>8.8.4</div><div>8.6.5.</div><div>8.10.2</div><div>8.10.7</div><div>9.0.1</div><div><br></div><div>all have the same problem.</div><div>I'd be happy to build from source. Small problem: what Haskell compiler do I use?</div><div><br></div><div>Any advice on installs that works along with any changes to paths to avoid the iconv problems would be appreciated as currently my Haskell-related activities have come to a grinding halt. Switchig to a different OS would be nice but its not a </div><div>feasible option a at present.Writing a compiler is starting to look attractive..</div><div><br></div><div>thanks</div><div>David<br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>David Duke</div><div>Emeritus Professor of Computer Science</div><div>School of Computing University of Leeds UK</div><div><a href="mailto:E%3Aduke.j.david@gmail.com" target="_blank">E:duke.j.david@gmail.com</a></div><div>W:<a href="https://engineering.leeds.ac.uk/staff/334/Professor_David_Duke" target="_blank">https://engineering.leeds.ac.uk/staff/334/Professor_David_Duke</a></div></div></div></div></div></div></div></div>
_______________________________________________<br>Glasgow-haskell-users mailing list<br><a href="mailto:Glasgow-haskell-users@haskell.org" target="_blank">Glasgow-haskell-users@haskell.org</a><br><a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users</a><br></div></blockquote></div><br></div></div></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>David Duke</div><div>Emeritus Professor of Computer Science</div><div>School of Computing University of Leeds UK</div><div><a href="mailto:E%3Aduke.j.david@gmail.com" target="_blank">E:duke.j.david@gmail.com</a></div><div>W:<a href="https://engineering.leeds.ac.uk/staff/334/Professor_David_Duke" target="_blank">https://engineering.leeds.ac.uk/staff/334/Professor_David_Duke</a></div></div></div></div></div></div></div></div></div>