osx conundrum

YueCompl compl.yue at icloud.com
Mon Oct 11 09:12:39 UTC 2021


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.

Checkout https://newbedev.com/libiconv-or-iconv-undefined-symbol-on-mac-osx <https://newbedev.com/libiconv-or-iconv-undefined-symbol-on-mac-osx> maybe helpful.

> On 2021-10-11, at 17:00, David Duke <duke.j.david at gmail.com> wrote:
> 
> I have a conundrum on which advice would be appreciate. Does
> anyone know how to successfully install ghc on OSX 
> I've tried various binary instalation routes:
> macports, brew, direct binary downloads from haskel.org <http://haskel.org/>
> All have the same result. when I try to compile a basic hello world program I get
> 
> Undefined symbols for architecture x86_64:
>   "_iconv", referenced from:
>       _hs_iconv in libHSbase-4.14.3.0.a(iconv.o)
>      (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 )
>   "_iconv_open", referenced from:
>       _hs_iconv_open in libHSbase-4.14.3.0.a(iconv.o)
>      (maybe you meant: _hs_iconv_open)
>   "_iconv_close", referenced from:
>       _hs_iconv_close in libHSbase-4.14.3.0.a(iconv.o)
>      (maybe you meant: _hs_iconv_close)
>   "_locale_charset", referenced from:
>       _localeEncoding in libHSbase-4.14.3.0.a(PrelIOUtils.o)
> ld: symbol(s) not found for architecture x86_64
> 
> I've triedgiong  through ghcup
> 
> 8.8.4
> 8.6.5.
> 8.10.2
> 8.10.7
> 9.0.1
> 
> all have the same problem.
> I'd be happy to build from source. Small problem: what Haskell compiler do I use?
> 
> 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 
> feasible option a at present.Writing a compiler is starting to look attractive..
> 
> thanks
> David
> 
> -- 
> David Duke
> Emeritus Professor of Computer Science
> School of Computing University of Leeds UK
> E:duke.j.david at gmail.com <mailto:E%3Aduke.j.david at gmail.com>
> W:https://engineering.leeds.ac.uk/staff/334/Professor_David_Duke <https://engineering.leeds.ac.uk/staff/334/Professor_David_Duke>_______________________________________________
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/glasgow-haskell-users/attachments/20211011/bc6effa9/attachment.html>


More information about the Glasgow-haskell-users mailing list