Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70785 - dev-haskell/haddock-0.6-r2 fails to compile with gcc 3.4.2
Summary: dev-haskell/haddock-0.6-r2 fails to compile with gcc 3.4.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-11 06:01 UTC by David Morgan
Modified: 2004-11-11 07:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Morgan 2004-11-11 06:01:50 UTC
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:
Comment 1 Duncan Coutts (RETIRED) gentoo-dev 2004-11-11 06:41:22 UTC
This is fixed in haddock-0.6-r3. haddock-0.6-r3 has been marked as stable on x86.
Comment 2 David Morgan 2004-11-11 07:22:29 UTC
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.