`stack install text-show` fails in OSX with ghc panic `loadArchive "/usr/bin/iconv": failed`
Summary
On a new upgrade of OSX to Big Sur
stack install text-show
fails with
text-show> Preprocessing library for text-show-3.9.2..
text-show> Building library for text-show-3.9.2..
text-show> [ 1 of 66] Compiling TextShow.Data.OldTypeable
text-show> [ 2 of 66] Compiling TextShow.GHC.Conc.Windows
text-show> [ 3 of 66] Compiling TextShow.GHC.Stats
text-show> [ 4 of 66] Compiling TextShow.Options
text-show> [ 5 of 66] Compiling TextShow.TH.Names
text-show> [ 6 of 66] Compiling TextShow.Utils
text-show> [ 7 of 66] Compiling TextShow.Classes
text-show> [ 8 of 66] Compiling TextShow.TH.Internal
text-show> [ 9 of 66] Compiling TextShow.Data.Tuple
text-show> ghc: couldn't find archive in `/usr/bin/iconv'at offset 16384
text-show> ghc: panic! (the 'impossible' happened)
text-show> (GHC version 8.10.7:
text-show> loadArchive "/usr/bin/iconv": failed
text-show>
text-show> Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug
text-show>
Steps to reproduce
stack install text-show
Expected behavior
text-show should be able to be installed
Environment
(.venv) ❱ stack --version
Version 2.7.3, Git revision 7927a3aec32e2b2e5e4fb5be76d0d50eddcc197f x86_64 hpack-0.34.4
This occurs when using nightly or other resolvers
- GHC version used: ghc-8.10.7
Optional:
- OSX Big Sur 11.4
- 86_64 hardware