<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><blockquote type="cite" class=""><div dir="auto" class="">The issue would be macports.  It uses its own version of the iconv lib and that always gets headaches if the ghc touches anything else. </div></blockquote></div><div class=""><br class=""></div>No, Macports ghc links against the symbol iconv from /usr/lib/libSystem. See: <div class=""><ul class="MailOutline"><li class=""><a href="https://github.com/macports/macports-ports/blob/c7c7f3f90e1140a0d4826bb94502fd7a4ae40459/lang/ghc/Portfile#L213-L218" class="">https://github.com/macports/macports-ports/blob/c7c7f3f90e1140a0d4826bb94502fd7a4ae40459/lang/ghc/Portfile#L213-L218</a></li><li class=""><a href="https://gitlab.haskell.org/ghc/ghc/-/issues/18752" class="">https://gitlab.haskell.org/ghc/ghc/-/issues/18752</a></li><li class=""><a href="https://trac.macports.org/ticket/57821" class="">https://trac.macports.org/ticket/57821</a></li></ul><div class=""><br class=""></div><div class="">The MacPorts ghc binary is rock solid to the best of my knowledge.</div><div class=""><br class=""></div><div class="">If you want to compile ghc against libiconv (not libSystem), then must contend with the name mangling issue inherent in the libiconv library, discussed in the last link above.</div><div class=""><br class=""></div><div class="">Recommendation on macOS: just install the MacPorts binaries. They work, they’re compiled from source, and they’re managed.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class=""><div><blockquote type="cite" class=""><div class="">On Oct 13, 2021, at 9:49 PM, Carter Schonwald <<a href="mailto:carter.schonwald@gmail.com" class="">carter.schonwald@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="auto" class="">The issue would be macports.  It uses its own version of the iconv lib and that always gets headaches if the ghc touches anything else. </div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">if you’re using macports you have to make sure everything is Mac ports only for ghc linking. </div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">Else you have to make sure you don’t touch any macports c Libs via ghc.  </div><div class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 13, 2021 at 7:57 AM David Duke <<a href="mailto:duke.j.david@gmail.com" class="">duke.j.david@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="ltr" class="">Thanks Steven. Looks like it might be something with my system.<div class="">I reinstalled from macports  8.10.7</div><div class="">@ Carter yes I've been carefully   check the compiler version on each trial.<br class=""></div><div class="">However trying to compile a Haskell source gives the same libHSbase error</div></div><div dir="ltr" class=""><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; background-color: rgb(215, 211, 183); color: rgb(59, 35, 34);" class=""><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier" class="">ndefined symbols for architecture x86_64:</span></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; background-color: rgb(215, 211, 183); color: rgb(59, 35, 34);" class=""><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier" class=""><span style="font-family:Courier" class="">  </span>"_iconv", referenced from:</span></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; background-color: rgb(215, 211, 183); color: rgb(59, 35, 34);" class=""><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier" class=""><span style="font-family:Courier" class="">      </span>_hs_iconv in libHSbase-4.14.3.0.a(iconv.o</span></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; background-color: rgb(215, 211, 183); color: rgb(59, 35, 34);" class=""><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; background-color: rgb(215, 211, 183); color: rgb(59, 35, 34);" class=""><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; background-color: rgb(215, 211, 183); color: rgb(59, 35, 34);" class=""><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier" class=""><br class=""></span></div></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 12, 2021 at 2:54 AM Steven Smith <<a href="mailto:steve.t.smith@gmail.com" target="_blank" class="">steve.t.smith@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div style="word-wrap:break-word;line-break:after-white-space" class="">I’m a maintainer of the MacPorts ghc port. The MacPorts installations do not have this issue, whether installed from the buildbot binaries or compiled from source, that all work on multiple macOS versions 10.9–11.  Here’s the build recipe: <a href="https://github.com/macports/macports-ports/blob/master/lang/ghc/Portfile" target="_blank" class="">https://github.com/macports/macports-ports/blob/master/lang/ghc/Portfile</a><div class=""><br class=""></div><div class="">The iconv symbol issue is known, <a href="https://gitlab.haskell.org/ghc/ghc/-/issues/18752" target="_blank" class="">https://gitlab.haskell.org/ghc/ghc/-/issues/18752</a>, and packages like MacPorts must build around it.</div><div class=""><br class=""></div><div class="">This looks like something specific to your configuration.</div><div class=""><br class=""></div><div class="">If you believe that there is an issue outside your system, please initiate a trac ticket at <a href="https://trac.macports.org/" target="_blank" class="">https://trac.macports.org</a>.</div><div class=""><div class=""><br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Oct 11, 2021, at 5:00 AM, David Duke <<a href="mailto:duke.j.david@gmail.com" target="_blank" class="">duke.j.david@gmail.com</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class="">I have a conundrum on which advice would be appreciate. Does<div class="">anyone know how to successfully install ghc on OSX </div><div class="">I've tried various binary instalation routes:</div><div class="">macports, brew, direct binary downloads from <a href="http://haskel.org/" target="_blank" class="">haskel.org</a></div></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class="">David Duke</div><div class="">Emeritus Professor of Computer Science</div><div class="">School of Computing University of Leeds UK</div><div class=""><a href="mailto:E%3Aduke.j.david@gmail.com" target="_blank" class="">E:duke.j.david@gmail.com</a></div><div class="">W:<a href="https://engineering.leeds.ac.uk/staff/334/Professor_David_Duke" target="_blank" class="">https://engineering.leeds.ac.uk/staff/334/Professor_David_Duke</a></div></div></div></div></div></div></div></div></div>
_______________________________________________<br class="">
Glasgow-haskell-users mailing list<br class="">
<a href="mailto:Glasgow-haskell-users@haskell.org" target="_blank" class="">Glasgow-haskell-users@haskell.org</a><br class="">
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users" rel="noreferrer" target="_blank" class="">http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users</a><br class="">
</blockquote></div></div>
</div></blockquote></div><br class=""></div></div></div></body></html>