[Haskell-cafe] linking warnings when using regex-posix package in GHCi 7.8.1 RC2

kyra kyrab at mail.ru
Tue Mar 18 11:48:58 UTC 2014


See more on this here: https://ghc.haskell.org/trac/ghc/ticket/2283, 
https://ghc.haskell.org/trac/ghc/ticket/7097.

I'm the author of this. Unfortunately, this is broken in 7.8rc2. 
References are resolved correctly, and it is possible to load all 
modules (which was impossible before), but if any foreign code use them 
it segfaults.

I've put a patch that fixes things here: 
https://ghc.haskell.org/trac/ghc/attachment/ticket/2283/indirect_link_windows.patch.

Hope it will be committed and merged to 7.8 soon.

Cheers,
Kyra

On 3/18/2014 14:53, Rouan van Dalen wrote:
> Hi Cafe,
>
> I have the following program:
>
> =========================
>
> module Main where
>
>    import Text.Regex.Posix
>
>    main = do
>       putStrLn "!!!"
>
> =========================
>
> When I run the main function from within GHCi, I get the following 
> output from GHCi:
>
> =========================
>
> Loading package array-0.5.0.0 ... linking ... done.
> Loading package deepseq-1.3.0.2 ... linking ... done.
> Loading package containers-0.5.4.0 ... linking ... done.
> Loading package bytestring-0.10.4.0 ... linking ... done.
> Loading package transformers-0.3.0.0 ... linking ... done.
> Loading package mtl-2.1.2 ... linking ... done.
> Loading package regex-base-0.93.2 ... linking ... done.
> Loading package regex-posix-0.95.2 ... linking ...
> <interactive>: warning: isupper from msvcrt is linked instead of 
> __imp_isupper
> <interactive>: warning: toupper from msvcrt is linked instead of 
> __imp_toupper
> <interactive>: warning: tolower from msvcrt is linked instead of 
> __imp_tolower
> <interactive>: warning: isalpha from msvcrt is linked instead of 
> __imp_isalpha
> <interactive>: warning: isalpha from msvcrt is linked instead of 
> __imp_isalpha
> <interactive>: warning: isalpha from msvcrt is linked instead of 
> __imp_isalpha
> <interactive>: warning: iscntrl from msvcrt is linked instead of 
> __imp_iscntrl
> <interactive>: warning: isupper from msvcrt is linked instead of 
> __imp_isupper
> <interactive>: warning: isgraph from msvcrt is linked instead of 
> __imp_isgraph
> <interactive>: warning: isprint from msvcrt is linked instead of 
> __imp_isprint
> <interactive>: warning: ispunct from msvcrt is linked instead of 
> __imp_ispunct
> <interactive>: warning: isalnum from msvcrt is linked instead of 
> __imp_isalnum
> <interactive>: warning: isalpha from msvcrt is linked instead of 
> __imp_isalpha
> <interactive>: warning: isalnum from msvcrt is linked instead of 
> __imp_isalnum
> <interactive>: warning: isalnum from msvcrt is linked instead of 
> __imp_isalnum
> <interactive>: warning: isalnum from msvcrt is linked instead of 
> __imp_isalnum
> <interactive>: warning: isalnum from msvcrt is linked instead of 
> __imp_isalnum
> <interactive>: warning: isalnum from msvcrt is linked instead of 
> __imp_isalnum
> <interactive>: warning: isalnum from msvcrt is linked instead of 
> __imp_isalnum
> <interactive>: warning: isalnum from msvcrt is linked instead of 
> __imp_isalnum
> <interactive>: warning: isalnum from msvcrt is linked instead of 
> __imp_isalnum
> <interactive>: warning: isalnum from msvcrt is linked instead of 
> __imp_isalnum
> <interactive>: warning: isalnum from msvcrt is linked instead of 
> __imp_isalnum
> <interactive>: warning: isalnum from msvcrt is linked instead of 
> __imp_isalnum
> <interactive>: warning: isalnum from msvcrt is linked instead of 
> __imp_isalnum
> done.
> !!!
> *Main>
>
> =========================
>
> Does anyone have an idea why GHCi is even linking against msvcrt?
> And is there a way to fix this?
>
> I am using GHC 7.8.1 RC2 x64 on Windows 8 x64
>
> Regards
> --Rouan
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe



More information about the Haskell-Cafe mailing list