Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Compiling Buildwrapper fails

Help
2013-08-21
2013-10-01
  • I use Opensuse 64 Bit and GHC 7.6.3. Compiling ends with http://lpaste.net/92023.

     
  • JP Moresmau
    JP Moresmau
    2013-08-21

    Probably because the version of haskell-src-exts released yesterday (http://www.haskell.org/pipermail/haskell-cafe/2013-August/108461.html) has breaking changes in its API. Install haskell-src-exts version 1.13 instead. I'll try to release a compatible version soon.

     
    • I was so stupid changing a running system :-(. After "cabal install cabal-install"I got buildwrapper errors and so I have decided to remove the whole haskell-platform-2013.2.0.0 installation from my Opensuse 64 Bit system. But now if I want to compile buildwrapper I get always the following message:
      "Resolving dependencies...
      cabal: Could not resolve dependencies:
      trying: buildwrapper-0.7.5 (user goal)
      next goal: ghc (dependency of buildwrapper-0.7.5)".

      What's the reason for this error?

       
      • JP Moresmau
        JP Moresmau
        2013-09-30

        Are you not getting more errors? Buildwrapper requires the ghc library, so run ghc-pkg list and ensure the ghc library appears in the list.

         
        • You are right. ghc was missing. Now it works.

           
  • JP Moresmau
    JP Moresmau
    2013-08-21

    New versions uploaded to Haskage, try again!

     
  • The following may be superfluous as I'm new to Haskell/Cabal and Eclipse.

    Buildwrapper (Hackage) build is failing with TYPE_X (RealSrcLoc, etc.) not in scope errors on CentOS 6.4, GHC 7.04 (latest EPEL version).

    Apparently a more current GHC version is needed due to API changes in GHC 7.2.1:

    http://www.haskell.org/ghc/docs/7.2.1/html/users_guide/release-7-2-1.html#id566919
    "The SrcSpan and SrcLoc types have been refactored so that the new RealSrcSpan and RealSrcLoc types are used when we have a real location, rather than an "unhelpful" location."

    It would be helpful if you can suggest an alternate yum repo. I recently learned of "JustHub". It looks like a good source, but barring other factors I would prefer using yum.

    There probably are options for supporting multiple platform/library versions, I may have over looked them while focusing on getting started. Any comments/suggestions would be appreciated.