NICTA / cplusplus-th

C++ Foreign Import Generation
http://hackage.haskell.org/package/cplusplus-th
BSD 3-Clause "New" or "Revised" License
34 stars 0 forks source link

Build Fails 'Irrefutable pattern failed for pattern [(v, "")]' #4

Open drwebb opened 9 years ago

drwebb commented 9 years ago

Hi I am building on Arch Linux with clang and libc++ installed I get this error message from cabal.

git/cplusplus-th [master●] » cabal install
Resolving dependencies...
Configuring cplusplus-th-1.0.0.0...
Building cplusplus-th-1.0.0.0...
Failed to install cplusplus-th-1.0.0.0
Build log ( /home/twebb/.cabal/logs/cplusplus-th-1.0.0.0.log ):
Configuring cplusplus-th-1.0.0.0...
Building cplusplus-th-1.0.0.0...
Preprocessing library cplusplus-th-1.0.0.0...
[3 of 3] Compiling Foreign.CPlusPlusStdLib ( src/Foreign/CPlusPlusStdLib.hs, dist/build/Foreign/CPlusPlusStdLib.o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package array-0.5.0.0 ... linking ... done.
Loading package deepseq-1.3.0.2 ... linking ... done.
Loading package containers-0.5.5.1 ... linking ... done.
Loading package pretty-1.1.1.1 ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package filepath-1.3.0.2 ... linking ... done.
Loading package old-locale-1.0.0.6 ... linking ... done.
Loading package time-1.4.2 ... linking ... done.
Loading package bytestring-0.10.4.0 ... linking ... done.
Loading package unix-2.7.0.1 ... linking ... done.
Loading package directory-1.2.1.0 ... linking ... done.
Loading package process-1.2.0.0 ... linking ... done.

src/Foreign/CPlusPlusStdLib.hs:1:1:
    Exception when trying to run compile-time code:
      src/Foreign/NM.hs:48:7-27: Irrefutable pattern failed for pattern [(v, "")]

    Code: cplusplus
            "haskell::fromCString(char const*, int)"
            "cbits/hsstring.o"
            [t| CString -> Int -> IO Std__basic_string |]
cabal: Error: some packages failed to install:
cplusplus-th-1.0.0.0 failed during the building phase. The exception was:
ExitFailure 1