Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How much space needed to compile gcc-5.4.0-r3? [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
engineermdr
Apprentice
Apprentice


Joined: 08 Nov 2003
Posts: 260
Location: Altoona, WI, USA

PostPosted: Tue Sep 05, 2017 5:18 am    Post subject: How much space needed to compile gcc-5.4.0-r3? [solved] Reply with quote

I tried to emerge gcc-5.4.0-r3 with 3G of free disk space. The compile consumed all that space and it failed. How much space is needed to compile gcc these days? Many ebuilds check for the needed disk space at the beginning, but apparently not gcc. I mounted a spare 32G partition - I hope that's enough. :wink:

Last edited by engineermdr on Wed Sep 06, 2017 4:22 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 16255
Location: here

PostPosted: Tue Sep 05, 2017 5:55 am    Post subject: Reply with quote

A parallel make use more ram, you can try with a lesser value of -j (MAKEOPTS in make.conf)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
engineermdr
Apprentice
Apprentice


Joined: 08 Nov 2003
Posts: 260
Location: Altoona, WI, USA

PostPosted: Tue Sep 05, 2017 1:38 pm    Post subject: Reply with quote

RAM was not an issue. It's disk space I had to expand.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 3212
Location: Germany

PostPosted: Tue Sep 05, 2017 1:42 pm    Post subject: Reply with quote

Hm, I think ~6 GB should be fine (minimum).
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 11176

PostPosted: Wed Sep 06, 2017 1:05 am    Post subject: Reply with quote

It depends in part on what build options you enabled. Also, beware that generating debug information consumes substantially more space, even if Portage strips that information before install. Check that you do not have -g or similar options in CFLAGS / CXXFLAGS.
Back to top
View user's profile Send private message
engineermdr
Apprentice
Apprentice


Joined: 08 Nov 2003
Posts: 260
Location: Altoona, WI, USA

PostPosted: Wed Sep 06, 2017 4:22 am    Post subject: Reply with quote

I was just building a base system with the default profile and USE flags in a virtualbox image.
Code:
[ebuild   R    ] sys-devel/gcc-5.4.0-r3:5.4.0::gentoo  USE="cxx fortran (multilib) nls nptl openmp sanitize vtv (-altivec) (-awt) -cilk -debug -doc (-fixed-point) -gcj -go -graphite (-hardened) (-jit) (-libssp) -mpx -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla" 0 KiB

Last time I tried this, and I'll admit probably a couple years ago or so, I was able to do so in a 8G disk image. This wasn't the case this time.

My main machine has more than enough disk space and memory that I hadn't thought about minimum requirements in a long while. The Handbook doesn't provide much in the way of minimum sizes either, so I thought I'd ask here. I think I have my answer given the 6G suggestion given earlier.
Back to top
View user's profile Send private message
Elleni
Guru
Guru


Joined: 23 May 2006
Posts: 356

PostPosted: Wed Oct 04, 2017 2:23 am    Post subject: Reply with quote

I recently could not build gcc-5.4.0-r3 with 7GB mounted tmpfs /tmp, so I tried with 8GB and that was enough and did the trick.
Back to top
View user's profile Send private message
dilfridge
Developer
Developer


Joined: 18 Sep 2010
Posts: 105
Location: Regensburg, Germany

PostPosted: Fri Oct 06, 2017 9:54 pm    Post subject: Reply with quote

There's an open bug about this, the missing disk space check is a known problem.


It's not fixed yet because the needed disk space depends a lot on the circumstances. Debug info yes or no, how about the fortran flag or similar, or are you even building a multilib compiler (gasp)?! :D And noone so far did the work of estimating all the combinations.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 6151
Location: almost Mile High in the USA

PostPosted: Sat Oct 07, 2017 3:53 am    Post subject: Reply with quote

I was able to build gcc-5.4.0-r3 in a 5GB tmpfs somehow (8GB RAM, using 8 threads). The 5GB was specifically for firefox, not gcc, so I guess this is something else to look out for...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum