text, warp and blaze-builder

Christian Maeder Christian.Maeder at dfki.de
Mon Dec 9 16:20:41 UTC 2013


Am 09.12.2013 16:19, schrieb Johan Tibell:
> On Mon, Dec 9, 2013 at 3:49 PM, Christian Maeder
> <Christian.Maeder at dfki.de <mailto:Christian.Maeder at dfki.de>> wrote:
>
>          Couldn't match type `text-0.11.3.1:Data.Text.__Internal.Text'
>                        with `T.Text'
>          Expected type: [T.Text]
>            Actual type: [text-0.11.3.1:Data.Text.__Internal.Text]
>
>
> You typically get these errors when you try to use two versions of a
> package at the same time. Are you building with cabal? If so it should
> have warned you about that.

no, I just call "ghc --make ..."

When I add "-hide-package text-1.0.0.0" to the command line, then 
compilation goes through, but linking fails.

Obviously, having two versions is bad. Maybe I should install the old 
text version explicitly first and reinstall all other packages.

Or I wait until warp can work with text-1.0.0.0, too.

C.

/home/linux-bkb/ghc/ghc-7.6.3/lib/i386-linux-ghc-7.6.3/text-1.0.0.0/libHStext-1.0.0.0.a(cbits.o): 
In function `_hs_text_memcpy':
cbits.c:(.text+0x0): multiple definition of `_hs_text_memcpy'
/home/linux-bkb/ghc/ghc-7.6.3/lib/i386-linux-ghc-7.6.3/text-0.11.3.1/libHStext-0.11.3.1.a(cbits.o):cbits.c:(.text+0x0): 
first defined here
/home/linux-bkb/ghc/ghc-7.6.3/lib/i386-linux-ghc-7.6.3/text-1.0.0.0/libHStext-1.0.0.0.a(cbits.o): 
In function `_hs_text_memcmp':
cbits.c:(.text+0x30): multiple definition of `_hs_text_memcmp'
/home/linux-bkb/ghc/ghc-7.6.3/lib/i386-linux-ghc-7.6.3/text-0.11.3.1/libHStext-0.11.3.1.a(cbits.o):cbits.c:(.text+0x30): 
first defined here
/home/linux-bkb/ghc/ghc-7.6.3/lib/i386-linux-ghc-7.6.3/text-1.0.0.0/libHStext-1.0.0.0.a(cbits.o): 
In function `_hs_text_decode_latin1':
cbits.c:(.text+0x60): multiple definition of `_hs_text_decode_latin1'
/home/linux-bkb/ghc/ghc-7.6.3/lib/i386-linux-ghc-7.6.3/text-0.11.3.1/libHStext-0.11.3.1.a(cbits.o):cbits.c:(.text+0x60): 
first defined here
/home/linux-bkb/ghc/ghc-7.6.3/lib/i386-linux-ghc-7.6.3/text-1.0.0.0/libHStext-1.0.0.0.a(cbits.o): 
In function `_hs_text_decode_utf8':
cbits.c:(.text+0x2b0): multiple definition of `_hs_text_decode_utf8'
/home/linux-bkb/ghc/ghc-7.6.3/lib/i386-linux-ghc-7.6.3/text-0.11.3.1/libHStext-0.11.3.1.a(cbits.o):cbits.c:(.text+0x110): 
first defined here
collect2: error: ld returned 1 exit status



More information about the Libraries mailing list