-
Notifications
You must be signed in to change notification settings - Fork 47
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
Slow build times in GHC 8.0.x #41
Comments
Update: by just building {
...
{-# LANGUAGE CPP #-}
#undef __GLASGOW_HASKELL__
#define __GLASGOW_HASKELL__ 709
module Language.Python.Version2.Parser.Parser (parseFileInput, parseSingleInput, parseEval) where
... ...I managed to build it in 6 minutes. Without that hack, |
Just to note that the build time is no longer an issue for me since GHC 8.6.1. |
Thanks @felixonmars. I will try it out. |
I tried compiling with ghc 8.6.1 on OS X High Sierra 10.13.6, cabal-install 2.2.0.0, alex 3.2.4 and happy 1.19.9. I used Unfortunately the compile time and memory usage was still as bad as before. I don't have exact figures, but it took hours to build and memory usage was in the GBs. So it seems I cannot reproduce your success @felixonmars If possible can you please report versions numbers, OS, and build commands used. |
It's on Arch Linux x86_64, ghc 8.6.1, alex 3.2.4, happy 1.19.9. The command is:
|
One more data point that this is still a problem in ghc-8.6.2.
|
This is weird, I am able to compile language-python 0.5.4 (with merged GHC build patches for 8.2/8.4) within 1 minute. It used to cost at least 8 hours in comparison. |
I'm trying to build from @felixonmars, in which environment did you build exactly? Or can you tell me the exact steps you took to get a successful build? |
I finally managed to build this in a reasonable time: ~10 minutes. I ran everything inside a Ubuntu 18.04.1 LTS VM. |
@LucianU I am building for Arch Linux package, and this is the build script (pure bash): https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/haskell-language-python I believe I didn't add the above hack. |
Thanks, but as I already said above, I managed to build it in Ubuntu. Without the |
Hi there! I'm getting the same described behaviour. Build is seemingly endless in GHC 8, and adding the aforementioned hack to files I've opened a fork adding these changes. I know it's not ideal, but since this is really just a GHC bug and there's nothing else to do but wait for it to be fixed, maybe you'll consider merging it in the meanwhile? |
Hi!
I am trying add
language-python 0.5.4
to an existing project (mumuki/mulang#161), but it is introducing a terrible time penalty in build times. I have also tried to buildlanguage-python HEAD
from source, with similar results.It looks like it is not - at least, entirely - caused by
language-python
, but byGHC >= 8.0 && < 8.4.1
:I am doing some benchmarks applying antalsz/hs-to-coq@c538e6a to understand if this is also related to https://ghc.haskell.org/trac/ghc/ticket/14766 as pointed out in haskell/happy#109 (comment).
I will keep you posted when I have better, stronger evidence of the issue origin, but on the meanwhile, have you tried any workarounds? Thanks!
The text was updated successfully, but these errors were encountered: