patch applied (ghc): Add --supported-languages support to dummy-ghc

Ben Lippmeier Ben.Lippmeier at anu.edu.au
Wed Oct 7 00:43:39 EDT 2009


My x86 Windows MSYS build, and "tnaur x86 OS X stable" also died with 
the same problem. Upgrading to a recent version of sed (4.2.1) fixed the 
problem.

Ben.


Jonah Petri wrote:
> sed '/^xFlags/,/]/{/^  (/{s/^[^"]*"/  ["/; s/"[^"]*$/"] ++/; p}}; d' 
> compiler/main/DynFlags.hs >> 
> utils/ghc-cabal/dist-dummy-ghc/build/dummy-ghc.hs
> sed: 1: "/^xFlags/,/]/{/^  (/{s/ ...": extra characters at the end of 
> p command
> make[1]: *** [utils/ghc-cabal/dist-dummy-ghc/build/dummy-ghc.hs] Error 1
> make[1]: *** Deleting file 
> `utils/ghc-cabal/dist-dummy-ghc/build/dummy-ghc.hs'
> make: *** [all] Error 2

Ian Lynagh wrote:
> Tue Oct  6 13:14:15 PDT 2009  Ian Lynagh <igloo at earth.li>
>   * Add --supported-languages support to dummy-ghc
>   We uJonah Petri wrote:sed to call the bootstrapping compiler to get its --supported-languages
>   but that doesn't work when it doesn't support all the extensions that we
>   need. In particular, compiling the new bytestring which needs NamedFieldPuns
>   broken when building with 6.8.2.
>   There's now a rather ugly sed script to extract the extensions from
>   DynFlags.hs.
>
>     M ./utils/ghc-cabal/ghc.mk -4 +28
>
> View patch online:
> http://darcs.haskell.org/ghc/_darcs/patches/20091006201415-3fd76-11961a54aca66ca29efd9c1cdcf465a79c2dedf3.gz
>
> _______________________________________________
> Cvs-ghc mailing list
> Cvs-ghc at haskell.org
> http://www.haskell.org/mailman/listinfo/cvs-ghc
>   



More information about the Cvs-ghc mailing list