Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck while compiling on windows #1

Closed
steve-chavez opened this issue Jun 26, 2019 · 7 comments
Closed

Stuck while compiling on windows #1

steve-chavez opened this issue Jun 26, 2019 · 7 comments

Comments

@steve-chavez
Copy link

OS: Windows x64
GHC: 8.4.4 and 8.6.5

While compiling, the following warning is shown:

src\Text\Printer\Integral.hs:656:1: [;1mwarning:[;1m[;1m
Forall'd constraint `Ord �' is not bound in RULE lhs
  Orig bndrs: [�, p, $dOrd_amc3, $dIntegral_amc4, $dPrinter_amc5]
  Orig lhs: let {
              $dPrinter_amcc :: Printer p
              [LclId]
              $dPrinter_amcc = $dPrinter_amc5 } in
            let {
              $dIntegral_amcb :: Integral �
              [LclId]
              $dIntegral_amcb = $dIntegral_amc4 } in
            let {
              $dPositionalSystem_amc9 :: PositionalSystem Binary
              [LclId]
              $dPositionalSystem_amc9
                = Text.Printer.Integral.$fPositionalSystemBinary } in
            let {
              $dReal_aow8 :: Real �
              [LclId]
              $dReal_aow8 = GHC.Real.$p1Integral @ � $dIntegral_amc4 } in
            let {
              $dOrd_aowb :: Ord �
              [LclId]
              $dOrd_aowb = GHC.Real.$p2Real @ � $dReal_aow8 } in
            let {
              $dOrd_amca :: Ord �
              [LclId]
              $dOrd_amca = $dOrd_aowb } in
            number'
              @ Binary
              @ �
              @ p
              $dPositionalSystem_amc9
              $dOrd_amca
              $dIntegral_amcb
              $dPrinter_amcc
  optimised lhs: number'
                   @ Binary
                   @ �
                   @ p
                   $dPositionalSystem_amc9
                   $dOrd_amca
                   $dIntegral_amc4
                   $dPrinter_amc5

Then compiling somehow doesn't progress.
Logs can be seen here https://ci.appveyor.com/project/steve-chavez/postgrest/builds/25506383.

text-printer used to work normally on GHC 8.0.2 on windows.

Any pointers would be greatly appreciated.

@steve-chavez steve-chavez changed the title Locked while compiling on windows Stuck while compiling on windows Jun 26, 2019
@steve-chavez
Copy link
Author

On ubuntu 32 bit I get an error with text-printer as well https://circleci.com/gh/PostgREST/postgrest/3313?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link. Though this one quits.

@robx
Copy link

robx commented Jul 5, 2019

The problem also occurs when building text-printer stand-alone with GHC 8.6.5 / stackage lts-13.27: https://ci.appveyor.com/project/robx/text-printer/builds/25781889

Changing the alpha to a doesn't help. Removing the offending SPECIALIZE pragmas does:
https://ci.appveyor.com/project/robx/text-printer/builds/25782098

@robx
Copy link

robx commented Jul 5, 2019

same behaviour with GHC 8.4.4 / stackage lts-12.26:

https://ci.appveyor.com/project/robx/text-printer/builds/25782417

@robx robx mentioned this issue Jul 5, 2019
@mvv
Copy link
Owner

mvv commented Jul 6, 2019

I have fixed the warning in dd8a404, see if it helps with the compiler hangup.

@robx
Copy link

robx commented Jul 6, 2019

Indeed, that fixes it. I'll go ahead and file a bug report with ghc.

@robx
Copy link

robx commented Jul 6, 2019

GHC bug report: https://gitlab.haskell.org/ghc/ghc/issues/16917

@mvv
Copy link
Owner

mvv commented Jul 6, 2019

The fix is on Hackage (version 0.5.0.1), I'm closing the issue. BTW, it would help GHC devs if you could provide a reduced test case (start with number' and strip all dependencies to other parts of the library).

@mvv mvv closed this as completed Jul 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants