Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,866
    • Issues 4,866
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 455
    • Merge requests 455
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #20407
Closed
Open
Created Sep 22, 2021 by Ryan Wheeler@r-wheeler

`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
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking