<div dir="auto">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"><br></div><div dir="auto">if you’re using macports you have to make sure everything is Mac ports only for ghc linking. </div><div dir="auto"><br></div><div dir="auto">Else you have to make sure you don’t touch any macports c Libs via ghc.  </div><div><br><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">duke.j.david@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;padding-left:1ex;border-left-color:rgb(204,204,204)"><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><div dir="ltr"><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;background-color:rgb(215,211,183);color:rgb(59,35,34)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier">ndefined symbols for architecture x86_64:</span></p>
<p 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)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier"><span style="font-family:Courier">  </span>"_iconv", referenced from:</span></p>
<p 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)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier"><span style="font-family:Courier">      </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;background-color:rgb(215,211,183);color:rgb(59,35,34)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier"><br></span></p><p 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)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier"><br></span></p><p 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)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier"><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" target="_blank">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;padding-left:1ex;border-left-color:rgb(204,204,204)"><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"><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>
_______________________________________________<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" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users</a><br>
</blockquote></div></div>