id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,os,architecture,failure,difficulty,testcase,blockedby,blocking,related
3678,rejig the build system so that dummy-ghc isn't used,pejo,,"Build.mk:
{{{
# My build settings for hacking on stage 2
SRC_HC_OPTS     = -H32m -O -fasm -Rghc-timing
GhcStage1HcOpts = -O -fasm
GhcStage2HcOpts = -O0 -DDEBUG -Wall -fexpose-all-unfoldings
GhcLibHcOpts    = -O -fasm -XGenerics
GhcLibWays      = v
SplitObjs       = NO
GhcBootLibs     = YES
HADDOCK_DOCS       = NO
BUILD_DOCBOOK_HTML = NO
BUILD_DOCBOOK_PS   = NO
BUILD_DOCBOOK_PDF  = NO
}}}

The build error:
{{{
""inplace/bin/ghc-cabal"" configure --with-ghc=""/Volumes/OSXSSD/ghc/ghc.full-unfoldings/inplace/bin/dummy-ghc"" --with-ghc-pkg=""/Volumes/OSXSSD/ghc/ghc.full-unfoldings/inplace/bin/ghc-pkg"" --with-gcc=""/usr/bin/gcc"" --configure-option=--with-cc=""/usr/bin/gcc""  --flags=stage2 --flags=ncg --flags=ghci --ghc-option=-DGHCI_TABLES_NEXT_TO_CODE --ghc-option=-DSTAGE=2 --ghc-options='-O0 -DDEBUG -Wall -fexpose-all-unfoldings' --configure-option=CFLAGS="" -m32  "" --configure-option=LDFLAGS=""  "" -- stage2 compiler
Configuring ghc-6.13.20091119...
Warning: 'include-dirs: ../libffi/build/include' is a relative path outside of
the source tree. This will not work when generating a tarball with 'sdist'.
Warning: 'include-dirs: ../libraries/base/cbits' is a relative path outside of
the source tree. This will not work when generating a tarball with 'sdist'.
Warning: 'include-dirs: ../libraries/base/include' is a relative path outside
of the source tree. This will not work when generating a tarball with 'sdist'.
Warning: 'hs-source-dirs: cprAnalysis' directory does not exist.
ghc: unrecognised flags: -fexpose-all-unfoldings
Usage: For basic information, try the `--help' option.
make[1]: *** [compiler/stage2/package-data.mk] Error 1
make: *** [all] Error 2
}}}",bug,closed,high,7.4.1,Build System,6.13,fixed,,,Unknown/Multiple,Unknown/Multiple,Building GHC failed,,,,,
