Skip to content

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

Description

@drwebb

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions