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
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.
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!