You are not logged in.

#1 2012-10-28 06:02:35

MeisBarry
Member
Registered: 2011-04-11
Posts: 15

having trouble installing Elm with cabal

Here's the result:

$ cabal install elm
Resolving dependencies...
In order, the following will be installed:
regex-base-0.93.2 (reinstall) changes: containers-0.5.1.0 -> 0.4.1.0
regex-pcre-builtin-0.94.2.1.7.7 (new package)
highlighting-kate-0.5.3.3 (new package)
pandoc-1.9.4.5 +blaze_html_0_5 (new package)
Elm-0.5.0 (new package)
Warning: Note that reinstalls are always dangerous. Continuing anyway...
Configuring regex-base-0.93.2...
Building regex-base-0.93.2...
Preprocessing library regex-base-0.93.2...
[1 of 4] Compiling Text.Regex.Base.RegexLike ( Text/Regex/Base/RegexLike.hs, dist/build/Text/Regex/Base/RegexLike.o )
[2 of 4] Compiling Text.Regex.Base.Context ( Text/Regex/Base/Context.hs, dist/build/Text/Regex/Base/Context.o )
[3 of 4] Compiling Text.Regex.Base  ( Text/Regex/Base.hs, dist/build/Text/Regex/Base.o )
[4 of 4] Compiling Text.Regex.Base.Impl ( Text/Regex/Base/Impl.hs, dist/build/Text/Regex/Base/Impl.o )
Registering regex-base-0.93.2...
Installing library in /home/barry/.cabal/lib/regex-base-0.93.2/ghc-7.6.1
Registering regex-base-0.93.2...
Configuring regex-pcre-builtin-0.94.2.1.7.7...
Building regex-pcre-builtin-0.94.2.1.7.7...
Preprocessing library regex-pcre-builtin-0.94.2.1.7.7...

on the commandline: Warning:
    -XPatternSignatures is deprecated: use -XScopedTypeVariables or pragma {-# LANGUAGE ScopedTypeVariables #-} instead
[1 of 6] Compiling Text.Regex.PCRE.Wrap ( dist/build/Text/Regex/PCRE/Wrap.hs, dist/build/Text/Regex/PCRE/Wrap.o )

Text/Regex/PCRE/Wrap.hsc:348:1:
    Unacceptable argument type in foreign declaration: CInt
    When checking declaration:
      foreign import ccall unsafe "static pcre.h pcre_compile" c_pcre_compile
        :: CString
           -> CompOption
              -> Ptr CString -> Ptr CInt -> CString -> IO (Ptr PCRE)

Text/Regex/PCRE/Wrap.hsc:352:1:
    Unacceptable argument type in foreign declaration: CInt
    When checking declaration:
      foreign import ccall unsafe "static pcre.h pcre_exec" c_pcre_exec
        :: Ptr PCRE
           -> Ptr PCRE_Extra
              -> CString
                 -> CInt -> CInt -> ExecOption -> Ptr CInt -> CInt -> IO ReturnCode

Text/Regex/PCRE/Wrap.hsc:352:1:
    Unacceptable argument type in foreign declaration: CInt
    When checking declaration:
      foreign import ccall unsafe "static pcre.h pcre_exec" c_pcre_exec
        :: Ptr PCRE
           -> Ptr PCRE_Extra
              -> CString
                 -> CInt -> CInt -> ExecOption -> Ptr CInt -> CInt -> IO ReturnCode

Text/Regex/PCRE/Wrap.hsc:352:1:
    Unacceptable argument type in foreign declaration: CInt
    When checking declaration:
      foreign import ccall unsafe "static pcre.h pcre_exec" c_pcre_exec
        :: Ptr PCRE
           -> Ptr PCRE_Extra
              -> CString
                 -> CInt -> CInt -> ExecOption -> Ptr CInt -> CInt -> IO ReturnCode

Text/Regex/PCRE/Wrap.hsc:352:1:
    Unacceptable argument type in foreign declaration: CInt
    When checking declaration:
      foreign import ccall unsafe "static pcre.h pcre_exec" c_pcre_exec
        :: Ptr PCRE
           -> Ptr PCRE_Extra
              -> CString
                 -> CInt -> CInt -> ExecOption -> Ptr CInt -> CInt -> IO ReturnCode

Text/Regex/PCRE/Wrap.hsc:352:1:
    Unacceptable result type in foreign declaration: IO CInt
    When checking declaration:
      foreign import ccall unsafe "static pcre.h pcre_exec" c_pcre_exec
        :: Ptr PCRE
           -> Ptr PCRE_Extra
              -> CString
                 -> CInt -> CInt -> ExecOption -> Ptr CInt -> CInt -> IO ReturnCode

Text/Regex/PCRE/Wrap.hsc:354:1:
    Unacceptable argument type in foreign declaration: CInt
    When checking declaration:
      foreign import ccall unsafe "static pcre.h pcre_fullinfo" c_pcre_fullinfo
        :: Ptr PCRE -> Ptr PCRE_Extra -> InfoWhat -> Ptr a -> IO CInt

Text/Regex/PCRE/Wrap.hsc:354:1:
    Unacceptable result type in foreign declaration: IO CInt
    When checking declaration:
      foreign import ccall unsafe "static pcre.h pcre_fullinfo" c_pcre_fullinfo
        :: Ptr PCRE -> Ptr PCRE_Extra -> InfoWhat -> Ptr a -> IO CInt

Text/Regex/PCRE/Wrap.hsc:358:1:
    Unacceptable argument type in foreign declaration: CInt
    When checking declaration:
      foreign import ccall unsafe "static pcre.h pcre_config" c_pcre_config
        :: ConfigWhat -> Ptr a -> IO CInt

Text/Regex/PCRE/Wrap.hsc:358:1:
    Unacceptable result type in foreign declaration: IO CInt
    When checking declaration:
      foreign import ccall unsafe "static pcre.h pcre_config" c_pcre_config
        :: ConfigWhat -> Ptr a -> IO CInt
cabal: Error: some packages failed to install:
Elm-0.5.0 depends on regex-pcre-builtin-0.94.2.1.7.7 which failed to install.
highlighting-kate-0.5.3.3 depends on regex-pcre-builtin-0.94.2.1.7.7 which
failed to install.
pandoc-1.9.4.5 depends on regex-pcre-builtin-0.94.2.1.7.7 which failed to
install.
regex-pcre-builtin-0.94.2.1.7.7 failed during the building phase. The
exception was:
ExitFailure 1

Interestingly, when I try to install regex-pcre-builtin on its own, it first reinstalls regex-base-0.93.2, then fails. When I try to install elm after this, it also installs regex-base-0.93.2 before failing as shown above. Perhaps it isn't getting registered properly?

Google is alluding to an issue with the recent build of cabal-install or ghc. I downgraded cabal-install to 0.14 from 0.16, which did nothing. I'm very concerned about downgrading ghc, because pacman 1) warns of many broken packages if I do that, and 2) I use XMonad and don't want to break my system. I'm at a loss of how to continue. Can anyone offer insight?

Edit: GHC 7.6.1

Last edited by MeisBarry (2012-10-28 20:47:33)

Offline

#2 2012-10-28 20:41:02

MeisBarry
Member
Registered: 2011-04-11
Posts: 15

Re: having trouble installing Elm with cabal

On a Macbook Air running OSX Lion, everything installed without issue using cabal-install 0.14.0 and ghc 7.4.1. Not sure how helpful that is, but it's a datapoint.

Offline

#3 2012-10-28 21:10:47

MeisBarry
Member
Registered: 2011-04-11
Posts: 15

Re: having trouble installing Elm with cabal

ghc-pkg told me that regex-posix was a broken package. I unregistered it and reinstalled it with cabal. Then tried to install elm again:

$ cabal install elm
Resolving dependencies...
In order, the following would be installed:
regex-base-0.93.2 (reinstall) changes: containers-0.5.1.0 -> 0.4.1.0
regex-pcre-builtin-0.94.2.1.7.7 (new package)
highlighting-kate-0.5.3.3 (new package)
pandoc-1.9.4.5 +blaze_html_0_5 (new package)
Elm-0.5.0 (new package)
cabal: The following packages are likely to be broken by the reinstalls:
regex-posix-0.95.2
Use --force-reinstalls if you want to install anyway.

So the install is breaking regex-posix by downgrading containers, it looks like.

Offline

Board footer

Powered by FluxBB