stage2 build fails

Sylvain Henry sylvain at haskus.fr
Mon Jan 27 13:13:43 UTC 2020


Which stage 0 compiler are you using? It seems to be <= 8.10 and still 
has 8038cbd96f4 merged which seems contradictory.

Anyway the alternative seems to be redundant from the beginning and 
should have been removed IMO. I have opened 
https://gitlab.haskell.org/ghc/ghc/merge_requests/2564 to fix this. Does 
it work after applying this patch?

Sylvain


On 27/01/2020 12:42, Simon Peyton Jones via ghc-devs wrote:
>
> It would be good to know how to fix this.  It’s blocking my builds.
>
> For some reason it doesn’t seem to kill CI
>
> Simon
>
> *From:*Simon Peyton Jones
> *Sent:* 25 January 2020 20:26
> *To:* ghc-devs <ghc-devs at haskell.org>
> *Subject:* stage2 build fails
>
> I’m getting this with “sh validate –legacy”
>
> compiler/main/DynFlags.hs:1344:15: error: [-Woverlapping-patterns, 
> -Werror=overlapping-patterns]
>
>     Pattern match is redundant
>
>     In an equation for ‘settings’: settings s | otherwise = ...
>
>      |
>
> 1344 |             | otherwise = panic $ "Invalid cfg parameters." ++ 
> exampleString
>
>      |               ^^^^^^^^^
>
> This is when compiling the stage-2 compiler.  There’s an ifdef in 
> DynFlags thus
>
> #if __GLASGOW_HASKELL__ <= 810
>
>             | otherwise = panic $ "Invalid cfg parameters." ++ 
> exampleString
>
> #endif
>
> but somehow it’s not triggering for the stage2 compiler.
>
> Any ideas?  It’s blocking a full build.
>
> This #ifdef was added in 8038cbd96f4, when GHC became better at 
> reporting redundant code.
>
> Simon
>
>
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20200127/14717590/attachment.html>


More information about the ghc-devs mailing list