On 29/02/16 14:01, Neal Oakey wrote:
> Hi,
>
> I'm trying to build ganeti from source on debian stable (8.3),
> but for some reason I get the following error: (independent of the
> version I try to build)
>
> touch apps/ganeti-metad.hs.stamp
> for p in src/htools test/hs/hpc-htools test/hs/hpc-mon-collector
> src/ganeti-kvmd src/ganeti-wconfd src/hconfd src/hluxid src/hs2py
> src/rpc-test src/ganeti-mond src/ganeti-metad ; do \
> echo >> ganeti.cabal; \
> echo "executable `basename $p`" >> ganeti.cabal; \
> echo " hs-source-dirs: apps" >> ganeti.cabal; \
> echo " main-is: `basename $p`.hs" >> ganeti.cabal; \
> echo " default-language: Haskell2010" >> ganeti.cabal; \
> echo " build-depends:" >> ganeti.cabal; \
> echo " base" >> ganeti.cabal; \
> echo " , ganeti" >> ganeti.cabal; \
> if [ $p == test/hs/htest ]; then \
> echo " , hslogger" >> ganeti.cabal; \
> echo " , test-framework" >> ganeti.cabal; \
> elif [ $p == src/rpc-test ]; then \
> echo " , json" >> ganeti.cabal; \
> fi \
> done
> touch empty-cabal-config
> /usr/bin/cabal --config-file=empty-cabal-config configure --user \
> -f`test no == yes && echo "htest" || echo "-htest"` \
> -f`test True == True && echo "mond" || echo "-mond"` \
> -f`test True == True && echo "metad" || echo "-metad"`
> Warning: No remote package servers have been specified. Usually you
> would have
> one specified in the config file.
> Resolving dependencies...
> Configuring ganeti-2.18...
> runhaskell /root/ganeti/cabal/CabalDependenciesMacros.hs \
> ganeti.cabal \
> ganeti.depsflags \
> cabal_macros.h
> CabalDependenciesMacros.hs: could not read dist/setup-config
> Makefile:4369: recipe for target 'cabal_macros.h' failed
> make: *** [cabal_macros.h] Error 1
The File is there and seams to contain some serialized content
like "[...]programOverrideEnv = [("PATH",Just
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/.cabal/bin")],
programLocation = FoundOnSystem {locationPath =
"/usr/bin/HsColour"}}),("ld",ConfiguredProgram {programId = "ld",
programVersion = Nothing, programDefaultArgs =
["-x","--hash-size=31","--reduce-memory-overheads"], programOverrideArgs
= [], programOverrideEnv = [("PATH",Just
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/.cabal/bin")],
programLocation = FoundOnSystem {locationPath =
"/usr/bin/ld"}}),("strip",ConfiguredProgram {programId = "strip",
programVersion = Nothing, programDefaultArgs = [], programOverrideArgs =
[], programOverrideEnv = [("PATH",Just
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/.cabal/bin")],
programLocation = FoundOnSystem {locationPath =
"/usr/bin/strip"}}),("tar",ConfiguredProgram {programId = "tar",
programVersion = Nothing, programDefaultArgs = [], programOverrideArgs =
[], programOverrideEnv = [("PATH",Just
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/.cabal/bin")],
programLocation = FoundOnSystem {locationPath = "/bin/tar"}})],
withPackageDB = [GlobalPackageDB,UserPackageDB], withVanillaLib = True,
withProfLib = False, withSharedLib = False, withDynExe = False,
withProfExe = False, withOptimization = NormalOptimisation, withGHCiLib
= False, splitObjs = False, stripExes = True, stripLibs = True,
progPrefix = "", progSuffix = ""}"
>
> can someone tell me what is missing or what I'm doing wrong?
>
> Greetings,
> Neal
>