<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"></div><div dir="ltr">FWIW, MacPorts does compile from source. If you want, just do</div><div dir="ltr"><br></div><div dir="ltr">sudo port -s install ghc</div><div dir="ltr"><br></div><div dir="ltr">and watch a multistage compiler build.</div><div dir="ltr"><br></div><div dir="ltr">That’s where the MacPorts binary installs come from, so it’s just easier to use those.</div><div dir="ltr"><br><blockquote type="cite">On Oct 13, 2021, at 07:57, David Duke <duke.j.david@gmail.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">Thanks Steven. Looks like it might be something with my system.<div>I reinstalled from macports  8.10.7</div><div>@ Carter yes I've been carefully   check the compiler version on each trial.<br></div><div>However trying to compile a Haskell source gives the same libHSbase error</div><div><br></div><div><br></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">ndefined symbols for architecture x86_64:</span></p>
<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>"_iconv", referenced from:</span></p>
<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><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"><br></span></p><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"><br></span></p><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"><br></span></p></div></div><br><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">steve.t.smith@gmail.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">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">https://github.com/macports/macports-ports/blob/master/lang/ghc/Portfile</a><div><br></div><div>The iconv symbol issue is known, <a href="https://gitlab.haskell.org/ghc/ghc/-/issues/18752" target="_blank">https://gitlab.haskell.org/ghc/ghc/-/issues/18752</a>, and packages like MacPorts must build around it.</div><div><br></div><div>This looks like something specific to your configuration.</div><div><br></div><div>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">https://trac.macports.org</a>.</div><div><div><br><div><br><blockquote type="cite"><div>On Oct 11, 2021, at 5:00 AM, 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></div></blockquote></div><br></div></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>
</div></blockquote></body></html>