[MacPorts] #61222: ghc @8.10.1: testing fails because the symbol _iconv is not found

MacPorts noreply at macports.org
Thu Sep 24 10:18:36 UTC 2020


#61222: ghc @8.10.1: testing fails because the symbol _iconv is not found
-------------------------+-----------------------
  Reporter:  ryandesign  |      Owner:  essandess
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.6.3
Resolution:              |   Keywords:
      Port:  ghc         |
-------------------------+-----------------------

Comment (by essandess):

 This is an old, well-known, and annoying problem with {{{ghc}}} when there
 are multiple {{{iconv}}} libraries installed. I've looked for and haven't
 been able to identify the actual fix, which preferably would be to make
 the build completely dependent on native {{{/usr/lib/libiconv.dylib}}}, or
 the port {{{libiconv}}}.

 If MacPorts's {{{libiconv}}} is installed, the simple solution is to run

 {{{
 sudo port deactivate libiconv
 }}}

 before running {{{sudo port test ghc}}}, then re-activating after you're
 done.

 In {{{ghc}}}'s Portfile, all the obvious things I and others have tried
 appear not to work, e.g. specifying {{{LIBRARY_PATH}}} so that the build
 finds {{{/opt/local/lib/libiconv.dylib}}}.

 See also:
 * https://trac.macports.org/ticket/57821
 * https://trac.macports.org/ticket/60171
 * https://github.com/commercialhaskell/stack/issues/4504
 * https://github.com/NixOS/nixpkgs/pull/51455
 * http://blog.omega-prime.co.uk/2011/01/28/solving-ghc-iconv-problems-on-
 os-x-10-6/
 * https://github.com/commercialhaskell/stack/issues/825
 * https://github.com/haskell/haskell-ide-engine/issues/744
 * https://gitlab.haskell.org/ghc/ghc/-/issues/4068
 * https://gitlab.haskell.org/ghc/ghc/-/issues/8843
 * https://github.com/haskell/haskell-platform/issues/74

-- 
Ticket URL: <https://trac.macports.org/ticket/61222#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list