sergei-mironov / cake3

Makefile DSL
BSD 3-Clause "New" or "Revised" License
12 stars 2 forks source link

README should contain versions of tested dependencies #6

Open rooprob opened 8 years ago

rooprob commented 8 years ago

Hi there,

Have a little difficulty building or installing cake3 on my system, and was wondering what dependency versions were supported with this distribution.

Issues are numerous, so I'll only mention them briefly now and file better bug reports if required:

$ cat /etc/lsb-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=17.3
DISTRIB_CODENAME=rosa
DISTRIB_DESCRIPTION="Linux Mint 17.3 Rosa"

cake3 master 581c9cffefccc9

$ cabal --version
cabal-install version 1.24.0.0
compiled using version 1.24.0.0 of the Cabal library 
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.10.3
$ cabal install haskell-src-meta monadloc QuasiText
Resolving dependencies...
All the requested packages are already installed:
QuasiText-0.1.2.6
haskell-src-meta-0.6.0.14
monadloc-0.7.1
$ cabal install 
Resolving dependencies...
cabal: Entering directory '.'
Configuring cake3-0.6.3...
Building cake3-0.6.3...
Preprocessing library cake3-0.6.3...

src/Development/Cake3/Monad.hs:3:14: Warning:
    -XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS
[ 1 of 10] Compiling Development.Cake3.Ext.UrEmbed.Types ( src/Development/Cake3/Ext/UrEmbed/Types.hs, dist/build/Development/Cake3/Ext/UrEmbed/Types.o )
[ 2 of 10] Compiling Text.QuasiMake   ( src/Text/QuasiMake.hs, dist/build/Text/QuasiMake.o )

src/Text/QuasiMake.hs:19:10:
    Duplicate instance declarations:
      instance [incoherent] Lift Text
        -- Defined at src/Text/QuasiMake.hs:19:10
      instance Lift Text
        -- Defined in ‘th-lift-instances-0.1.8:Instances.TH.Lift’
cabal: Leaving directory '.'
Failed to install cake3-0.6.3
cabal: Error: some packages failed to install:
cake3-0.6.3 failed during the building phase. The exception was:
ExitFailure 1

If I comment out these lines: src/Text/QuasiMake.hs

-                        
-instance Lift Text where
-    lift = litE . stringL . T.unpack
+
+--instance Lift Text where
+--    lift = litE . stringL . T.unpack 

a further cabal install fails at

src/Development/Cake3/Ext/UrEmbed/JS.hs:72:30:
    Not in scope: type constructor or class ‘JSNode’

src/Development/Cake3/Ext/UrEmbed/JS.hs:78:25:
    Not in scope: type constructor or class ‘JSNode’

src/Development/Cake3/Ext/UrEmbed/JS.hs:80:17:
    Not in scope: data constructor ‘JSVarDecl’

src/Development/Cake3/Ext/UrEmbed/JS.hs:82:14:
    Not in scope: data constructor ‘JSVarDecl’

src/Development/Cake3/Ext/UrEmbed/JS.hs:85:14:
    Not in scope: data constructor ‘NT’
    Perhaps you meant one of these:
      ‘LT’ (imported from Prelude), ‘GT’ (imported from Prelude),
      ‘GT’ (imported from Data.Generics)

src/Development/Cake3/Ext/UrEmbed/JS.hs:87:13:
    Not in scope: data constructor ‘NT’
    Perhaps you meant one of these:
      ‘LT’ (imported from Prelude), ‘GT’ (imported from Prelude),
      ‘GT’ (imported from Data.Generics)
cabal: Leaving directory '.'
Failed to install cake3-0.6.3
cabal: Error: some packages failed to install:
cake3-0.6.3 failed during the building phase. The exception was:
ExitFailure 1

If I switch to ghc 8.7.4, I get a different error:

src/Development/Cake3/Utils/Find.hs:52:67:
    Could not deduce (Functor m) arising from a use of ‘<$>’
    from the context (MonadIO m)
      bound by the type signature for
                 getDirectoryContentsRecursive :: MonadIO m => File -> m [File]
      at src/Development/Cake3/Utils/Find.hs:51:34-64
    Possible fix:
      add (Functor m) to the context of
        the type signature for
          getDirectoryContentsRecursive :: MonadIO m => File -> m [File]
    In the expression:
      map (FileT x) <$> (getDirectoryContentsRecursive' topdir)
    In an equation for ‘getDirectoryContentsRecursive’:
        getDirectoryContentsRecursive td@(FileT x topdir)
          = map (FileT x) <$> (getDirectoryContentsRecursive' topdir)
cabal: Leaving directory '.'
Failed to install cake3-0.6.3
cabal: Error: some packages failed to install:
cake3-0.6.3 failed during the building phase. The exception was:
ExitFailure 1

Apologies if this report is incomplete, let me know if you'd like further information.