happs install seems to have become very slow since upgrading cabal Re: [Haskell-cafe] test driving cabal install...

sudo cabal install --global HAppS-State went fine, and ghc-pkg had
output on just the one (global) file.
but sudo cabal install --global HAppS-Server is slooooooow.
I finally canceled this and did
sudo runghc Setup.hs build -v3 with the same result: extremely,
extremely slow compile.
It seems to get hung up one one line:
src/HAppS/Server/Facebook.hs:416:2:
Warning: Defined but not used: `a'
*** Desugar:
Result size = 52971
*** Simplify:
Result size = 34350
Result size = 33980
Result size = 33972
Result size = 33972
*** Specialise:
Result size = 52989
*** Float out (not lambdas, not constants):
Result size = 55269
... and more and more of same. for 15 minutes now. With verbose output
on at least I can see there is something going on behind the scenes,
but still.
I don't remember things taking this long to compile before I upgraded
to cabal v1.4... cabal bug?
cabal --version
cabal-install version 0.4.7
using version 1.3.11 of the Cabal library
thomas.
2008/5/29 Thomas Hartman
I see. I had done
sudo cabal install HAppS-Server
but this just installed with root ownership in my home directory.
I'm now trying with
sudo cabal install --global HAppS-Server
2008/5/29 Daniel Patterson
: I think you need to install HAppS-Data etc globally... I'm not sure why locally installed (ie, only your user) packages wouldn't be picked up by runghc Setup.hs'ing, but if they are install system wide it should definitely work.
I think it is cabal --global install foo
On Thu, 29 May 2008 18:11:04 -0700 "Thomas Hartman"
wrote: After a little drama with zlib, I managed to get cabal-install installed.
I then attempted to do
cabal install HAppS-Server
since this is a module with a lot of dependencies, and in rapid development flux, so perenially painful for me to install.
The result is that I managed to install everything up to HAppS-State, which I think is the last dependency, but then seemed to hang indefinitely in the middle of installing HAppS-Server at the end.
OK, I thought, then perhaps I can do normal runghc Setup.hs after downloading and unzipping the tar from
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HAppS-Server-0.9....
However, this resulted in error
thartman@thartman-laptop:~/haskellInstalls/smallInstalls/HAppS-Server-0.9.2.1>runghc Setup.hs configure ... Setup.hs: At least the following dependencies are missing: HAppS-Data >=0.9.2...
Strange, because I had just installed that module via cabal-install, and I could load it in ghci with :m +HappS.Data.
I then ran ghc-pkg and got this strange result that my packages were broken into two different files. Is this by design?
ghc-pkg list /usr/local/lib/ghc-6.8.2/package.conf: Cabal-1.2.3.0, Cabal-1.3.11, Cabal-1.5.2, DeepArrow-0.2, .... /home/thartman/.ghc/i386-linux-6.8.2/package.conf: HAppS-Data-0.9.2.1, HAppS-IxSet-0.9.2.1, HAppS-State-0.9.2.1,
I am curious if anybody else is able to install HAppS-Server using cabal install, and whether they can shed any light on the other isuses I raised.
Thomas. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

It did finish, but I still feel like this took too long.
2008/5/29 Thomas Hartman
sudo cabal install --global HAppS-State went fine, and ghc-pkg had output on just the one (global) file.
but sudo cabal install --global HAppS-Server is slooooooow.
I finally canceled this and did
sudo runghc Setup.hs build -v3 with the same result: extremely, extremely slow compile.
It seems to get hung up one one line:
src/HAppS/Server/Facebook.hs:416:2: Warning: Defined but not used: `a' *** Desugar: Result size = 52971 *** Simplify: Result size = 34350 Result size = 33980 Result size = 33972 Result size = 33972 *** Specialise: Result size = 52989 *** Float out (not lambdas, not constants): Result size = 55269
... and more and more of same. for 15 minutes now. With verbose output on at least I can see there is something going on behind the scenes, but still.
I don't remember things taking this long to compile before I upgraded to cabal v1.4... cabal bug?
cabal --version cabal-install version 0.4.7 using version 1.3.11 of the Cabal library
thomas.
2008/5/29 Thomas Hartman
: I see. I had done
sudo cabal install HAppS-Server
but this just installed with root ownership in my home directory.
I'm now trying with
sudo cabal install --global HAppS-Server
2008/5/29 Daniel Patterson
: I think you need to install HAppS-Data etc globally... I'm not sure why locally installed (ie, only your user) packages wouldn't be picked up by runghc Setup.hs'ing, but if they are install system wide it should definitely work.
I think it is cabal --global install foo
On Thu, 29 May 2008 18:11:04 -0700 "Thomas Hartman"
wrote: After a little drama with zlib, I managed to get cabal-install installed.
I then attempted to do
cabal install HAppS-Server
since this is a module with a lot of dependencies, and in rapid development flux, so perenially painful for me to install.
The result is that I managed to install everything up to HAppS-State, which I think is the last dependency, but then seemed to hang indefinitely in the middle of installing HAppS-Server at the end.
OK, I thought, then perhaps I can do normal runghc Setup.hs after downloading and unzipping the tar from
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HAppS-Server-0.9....
However, this resulted in error
thartman@thartman-laptop:~/haskellInstalls/smallInstalls/HAppS-Server-0.9.2.1>runghc Setup.hs configure ... Setup.hs: At least the following dependencies are missing: HAppS-Data >=0.9.2...
Strange, because I had just installed that module via cabal-install, and I could load it in ghci with :m +HappS.Data.
I then ran ghc-pkg and got this strange result that my packages were broken into two different files. Is this by design?
ghc-pkg list /usr/local/lib/ghc-6.8.2/package.conf: Cabal-1.2.3.0, Cabal-1.3.11, Cabal-1.5.2, DeepArrow-0.2, .... /home/thartman/.ghc/i386-linux-6.8.2/package.conf: HAppS-Data-0.9.2.1, HAppS-IxSet-0.9.2.1, HAppS-State-0.9.2.1,
I am curious if anybody else is able to install HAppS-Server using cabal install, and whether they can shed any light on the other isuses I raised.
Thomas. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

At Thu, 29 May 2008 19:19:48 -0700, Thomas Hartman wrote:
It did finish, but I still feel like this took too long.
Facebook does take several minutes to compile and consumes quite a bit of memory while doing it. If you machine does not have atleast 1GB of memory it could be thrashing due to swapping. If you have a relatively modern machine with plenty of RAM, then 15 mins does sound a bit long. There are a few cases where GHC will take a very long time to compile a file. I have only seen that happen on perhaps 2-3 files in 6+ years of using Haskell though, and it all cases, the files contained a lot of autogenerated code (either using Template Haskell, or some other script which generated the code). j.
participants (2)
-
Jeremy Shaw
-
Thomas Hartman