#3678: Build fails when adding -fexpose-all-unfoldings to GhcStage2HcOpts
---------------------------------+------------------------------------------
    Reporter:  pejo              |       Owner:                     
        Type:  bug               |      Status:  new                
    Priority:  normal            |   Component:  Build System       
     Version:  6.13              |    Keywords:                     
          Os:  Unknown/Multiple  |    Testcase:                     
Architecture:  Unknown/Multiple  |     Failure:  Building GHC failed
---------------------------------+------------------------------------------
 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
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3678>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to