Skip to content

GHC fails to build from source on Alpha

The ghc compiler (version 7.6.1-2 as packaged by Debian in the experimental distribution) fails to build from source on the Alpha architecture. The build failure is:

echo 'bindir="/«PKGBUILDDIR»/inplace/bin"'        >> inplace/bin/ghc-stage2
echo 'topdir="/«PKGBUILDDIR»/inplace/lib"'     >> inplace/bin/ghc-stage2
echo 'pgmgcc="/usr/bin/gcc"'            >> inplace/bin/ghc-stage2
cat ghc/ghc.wrapper               >> inplace/bin/ghc-stage2
chmod +x                               inplace/bin/ghc-stage2
  HC [stage 2] utils/haddock/dist/build/Haddock/GhcUtils.o

utils/haddock/src/Haddock/GhcUtils.hs:1:35:
    lexical error at character '\n'
make[2]: *** [utils/haddock/dist/build/Haddock/GhcUtils.o] Error 1

The full build log is at: http://buildd.debian-ports.org/status/fetch.php?pkg=ghc&arch=alpha&ver=7.6.1-2&stamp=1349784016

The GHC compiler was bootstrapped with the 7.4.1 compiler.

Edited by Ian Lynagh -
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information