Rebuilding ghc

Dominic Steinitz dominic.steinitz at
Sat Jun 14 02:42:52 EDT 2008

Simon Peyton-Jones wrote:
> Sorry about this -- it's my fault.  I did validate a fix to the
> desugarer, but ndp isn't part of 'validate'.  Turns out that the
> change to the desugarer provoked quite subtle and longstanding bug in
> the simplifier.
> To get rolling again, use -fno-ds-multi-tyvar. Or just don't compile
> NDP. I'll commit a patch shortly.

The reason I'm compiling rather than installing is because I want to use

Where do I put -fno-ds-multi-tyvar so that the build system knows to use
it? I'm going to try

Ok that didn't work and I couldn't find anything about
-fno-ds-multi-tyvar in the documentation.

Thanks, Dominic.

> ../utils/mkdependC/mkdependC -f .depend    -I. -Iinclude -I../includes  -- -O -I. -Iinclude -D__GHC_PATCHLEVEL__=20080517 -I../libraries/base/cbits -I../libraries/base/include    -- cbits/directory.c cbits/rawSystem.c cbits/unicode.c
> /usr/local/bin/ghc -M -optdep-f -optdep.depend  -osuf o    -H32m -O2 -fasm -Rghc-timing -fno-ds-multi-tyvar -w -I. -Iinclude -Rghc-timing -O0 -W -package directory -package pretty -I../libraries -fglasgow-exts -no-recomp Compat/Unicode.hs Distribution/Compat/Exception.hs Distribution/Compat/ReadP.hs Distribution/Compat/TempFile.hs Distribution/Compiler.hs Distribution/GetOpt.hs Distribution/InstalledPackageInfo.hs Distribution/License.hs Distribution/Package.hs Distribution/ParseUtils.hs Distribution/ReadE.hs Distribution/Simple/Program.hs Distribution/Simple/Utils.hs Distribution/System.hs Distribution/Text.hs Distribution/Verbosity.hs Distribution/Version.hs Language/Haskell/Extension.hs System/FilePath.hs System/FilePath/Posix.hs System/FilePath/Windows.hs Trace/Hpc/Mix.hs Trace/Hpc/Tix.hs Trace/Hpc/Util.hs
> ghc-6.9.20080517: unrecognised flags: -fno-ds-multi-tyvar
> Usage: For basic information, try the `--help' option.
> <<ghc: 20972540 bytes, 3 GCs, 147456/147456 avg/max bytes residency (1 samples), 31M in use, 0.00 INIT (0.00 elapsed), 0.03 MUT (0.04 elapsed), 0.01 GC (0.01 elapsed) :ghc>>
> make[1]: *** [depend] Error 1
> make: *** [stage1] Error 1

More information about the Glasgow-haskell-users mailing list