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


can someone tell me what is missing or what I'm doing wrong?

Greetings,
Neal

Reply via email to