[GHC] #15150: Difference between 'libicuio' and 'icuio' in the 'extra-libraries' field

GHC ghc-devs at haskell.org
Mon May 14 13:08:15 UTC 2018


#15150: Difference between 'libicuio' and 'icuio' in the 'extra-libraries' field
--------------------------------------+-------------------------------
           Reporter:  Darwin226       |             Owner:  (none)
               Type:  bug             |            Status:  new
           Priority:  normal          |         Milestone:  8.6.1
          Component:  GHCi            |           Version:  8.2.2
           Keywords:                  |  Operating System:  Windows
       Architecture:  x86_64 (amd64)  |   Type of failure:  GHCi crash
          Test Case:                  |        Blocked By:
           Blocking:                  |   Related Tickets:
Differential Rev(s):                  |         Wiki Page:
--------------------------------------+-------------------------------
 I'm on Windows and I've recently updated my msys packages. One of them was
 libicu which I updated from version 58 to version 61. This caused one of
 my projects to stop building.

 I've managed to reproduce the problem by just cloning the text-icu package
 and trying to open the repl in it. This is the error I get:


 {{{
 GHCi, version 8.2.2: http://www.haskell.org/ghc/  :? for help
 ghc.EXE:  | C:\Users\darwi\Projects\text-icu\.stack-
 work\dist\5c8418a7\build\cbits\text_icu.o: unknown symbol
 `ucnv_getMaxCharSize_61'
 linking extra libraries/objects failed
 }}}

 A similar error used to happen with icu 58, but I've "fixed" it (see this
 pull request https://github.com/bos/text-icu/pull/36). This time, however,
 adding `icuio` to `extra-libraries` doesn't cut it. But adding `libicuio`
 does the trick!

 I'm opening a ticket here because I assume both of those should behave the
 same.

 It's worth noting that if this is a bug, it's not just a GHCi issue. My
 other project that depends on text-icu just doesn't build (the same error
 happens during compilation).

 Unfortunately I can't test on 8.4 right now.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15150>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list