emerge haddock fails with the following error: ------------------------------------------------------------------------ ==fptools== make all -wr; in /var/tmp/portage/haddock-0.6-r2/work/haddock-0.6/haddock/src ------------------------------------------------------------------------ make INSTALLING=0 BIN_DIST=0 - --no-print-directory -r all /usr/bin/ghc -H16m -O -package network -fglasgow-exts -cpp -c FastMutInt.hs -o FastMutInt.o -ohi FastMutInt.hi /usr/bin/ghc -H16m -O -package network -fglasgow-exts -cpp -c Binary.hs -o Binary.o -ohi Binary.hi /usr/bin/ghc -H16m -O -package network -fglasgow-exts -cpp -c BlockTable.hs -o BlockTable.o -ohi BlockTable.hi /usr/bin/ghc -H16m -O -package network -fglasgow-exts -cpp -c Digraph.lhs -o Digraph.o -ohi Digraph.hi /usr/bin/ghc -H16m -O -package network -fglasgow-exts -cpp -c HsSyn.lhs -o HsSyn.o -ohi HsSyn.hi /usr/bin/ghc -H16m -O -package network -fglasgow-exts -cpp -c HaddockUtil.hs -o HaddockUtil.o -ohi HaddockUtil.hi HaddockUtil.hs:191: warning: backslash and newline separated by space HaddockUtil.hs:192: warning: backslash and newline separated by space HaddockUtil.hs:193: warning: backslash and newline separated by space HaddockUtil.hs:194: warning: backslash and newline separated by space HaddockUtil.hs:195: warning: backslash and newline separated by space HaddockUtil.hs:191: lexical error in string/character literal make[3]: *** [HaddockUtil.o] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all] Error 1 make[1]: Leaving directory `/var/tmp/portage/haddock-0.6-r2/work/haddock-0.6/haddock' make: *** [build] Error 1 !!! ERROR: dev-haskell/haddock-0.6-r2 failed. !!! Function src_compile, Line 40, Exitcode 2 !!! make failed !!! If you need support, post the topmost build error, NOT this status message. Lines 191-196 of /var/tmp/portage/haddock-0.6-r2/work/haddock-0.6/haddock/src/HaddockUtil.hs are: "^([ \t\n]*Module[ \t]*:.*\n)?\ \([ \t\n]*Copyright[ \t]*:.*\n)?\ \([ \t\n]*License[ \t]*:.*\n)?\ \[ \t\n]*Maintainer[ \t]*:(.*)\n\ \[ \t\n]*Stability[ \t]*:(.*)\n\ \[ \t\n]*Portability[ \t]*:([^\n]*)\n" Removing the space between the \ and the newline and then running ebuild /usr/portage/dev-haskell/haddock/haddock-0.6-r2.ebuild merge fails with the same error but without the warnings This compiles fine with gcc 3.3.3, despite the HaddockUtils.hs files in each case being identical at all points during the emerge Reproducible: Always Steps to Reproduce:
This is fixed in haddock-0.6-r3. haddock-0.6-r3 has been marked as stable on x86.
Sorry, my mistake - my computer is a bit out of date since I don't have an internet connection at the moment. I guess I should have checked first but there was no bug for it.