Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

How much space needed to compile gcc-5.4.0-r3? [solved]

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
engineermdr
Guru
Guru
User avatar
Posts: 317
Joined: Sat Nov 08, 2003 3:25 pm
Location: Altoona, WI, USA

How much space needed to compile gcc-5.4.0-r3? [solved]

  • Quote

Post by engineermdr » Tue Sep 05, 2017 5:18 am

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.
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Tue Sep 05, 2017 5:55 am

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.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
engineermdr
Guru
Guru
User avatar
Posts: 317
Joined: Sat Nov 08, 2003 3:25 pm
Location: Altoona, WI, USA

  • Quote

Post by engineermdr » Tue Sep 05, 2017 1:38 pm

RAM was not an issue. It's disk space I had to expand.
Top
Josef.95
Advocate
Advocate
Posts: 4857
Joined: Mon Sep 03, 2007 9:46 am
Location: Germany

  • Quote

Post by Josef.95 » Tue Sep 05, 2017 1:42 pm

Hm, I think ~6 GB should be fine (minimum).
Top
Hu
Administrator
Administrator
Posts: 24380
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Wed Sep 06, 2017 1:05 am

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.
Top
engineermdr
Guru
Guru
User avatar
Posts: 317
Joined: Sat Nov 08, 2003 3:25 pm
Location: Altoona, WI, USA

  • Quote

Post by engineermdr » Wed Sep 06, 2017 4:22 am

I was just building a base system with the default profile and USE flags in a virtualbox image.

Code: Select all

[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.
Top
Elleni
Veteran
Veteran
Posts: 1298
Joined: Tue May 23, 2006 10:56 pm

  • Quote

Post by Elleni » Wed Oct 04, 2017 2:23 am

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.
Top
dilfridge
Developer
Developer
User avatar
Posts: 121
Joined: Sat Sep 18, 2010 11:38 am
Location: Regensburg, Germany
Contact:
Contact dilfridge
Website

  • Quote

Post by dilfridge » Fri Oct 06, 2017 9:54 pm

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.
Top
eccerr0r
Watchman
Watchman
Posts: 10238
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

  • Quote

Post by eccerr0r » Sat Oct 07, 2017 3:53 am

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/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
Post Reply

9 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy