Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 611866

Summary: dev-lang/ghc requires more than 4G of disk space to emerge
Product: Gentoo Linux Reporter: Mike Limansky <limanski>
Component: Current packagesAssignee: Gentoo's Haskell Language team <haskell>
Status: RESOLVED FIXED    
Severity: normal CC: arthur
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Mike Limansky 2017-03-06 10:04:16 UTC
It would be nice to have disk space check for dev-lang/ghc. I've just observed that 4G is not enough in /var/tmp/portage to compile dev-lang/ghc-8.0.2, but previously I've seen the same problem with 7.10.3.

As I see It requires at least 4.4G for 8.0.2:

$ sudo du -d1 -h /var/tmp/portage/dev-lang/ghc-8.0.2
4,0K	/var/tmp/portage/dev-lang/ghc-8.0.2/homedir
28K	/var/tmp/portage/dev-lang/ghc-8.0.2/build-info
4,4G	/var/tmp/portage/dev-lang/ghc-8.0.2/work
4,0K	/var/tmp/portage/dev-lang/ghc-8.0.2/distdir
18M	/var/tmp/portage/dev-lang/ghc-8.0.2/temp
4,4G	/var/tmp/portage/dev-lang/ghc-8.0.2
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2017-07-04 09:01:34 UTC
Yeah, it heavily depends on HCFLAGS value, USE=profile, arch (regisetrised or UNREG).

A few datapoints from build logs:
 - 5G (amd64 full):
   dev-lang:ghc-8.0.2:20170618-115641.log: * Final size of build directory: 3704996 KiB
   dev-lang:ghc-8.0.2:20170618-115641.log: * Final size of installed tree: 1368100 KiB
 - 3G  (amd64 USE=-profile)
   dev-lang:ghc-8.2.1_rc1:20170424-070846.log: * Final size of build directory: 2205140 KiB
   dev-lang:ghc-8.2.1_rc1:20170424-070846.log: * Final size of installed tree: 796536 KiB
 - 6.3G (ia64, USE=-profile)
   cross-ia64-unknown-linux-gnu:ghc-9999:20170523-080855.log: * Final size of build directory: 5089248 KiB
   cross-ia64-unknown-linux-gnu:ghc-9999:20170523-080855.log: * Final size of installed tree: 1304820 KiB

Perhaps 8G disk space would be conservative enough.
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2017-07-08 12:01:45 UTC
Added basic checks to ghc-8.0.2 ebuild as: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0dc53bf2e8d10a09a892b5427009412ced1d65b0

Now we request 8G in build directory and 2G of final result.
It's a bit conservative but user can always ignore the check.

Thanks for the report!