Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 616902 - =sys-devel/gcc-5.4.0-r3 compile failed: collect2: fatal error: ld terminated with signal 9 [Killed]
Summary: =sys-devel/gcc-5.4.0-r3 compile failed: collect2: fatal error: ld terminated ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-28 18:24 UTC by Matthew Schultz
Modified: 2019-02-14 07:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log showing gcc failing on an NFS root filesystem machine with 4GB of system memory (build.log.xz,85.98 KB, application/x-xz)
2017-04-28 18:24 UTC, Matthew Schultz
Details
No -pipe and MAKEOPTS="-j1" still fails with 4GB of space to compile (build.log.xz,82.72 KB, application/x-xz)
2017-04-29 02:40 UTC, Matthew Schultz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Schultz 2017-04-28 18:24:35 UTC
Created attachment 471224 [details]
build.log showing gcc failing on an NFS root filesystem machine with 4GB of system memory

Can someone add diskspace and memory space checks before compilation of gcc starts since it appears gcc > 4.9 uses quite a bit more memory/disk space than previous versions and causes problems on lower memory/disk systems (e.g. NFS root filesystem diskless machines)
Comment 1 Matthew Schultz 2017-04-29 02:40:42 UTC
Created attachment 471234 [details]
No -pipe and MAKEOPTS="-j1" still fails with 4GB of space to compile

It looks like the minimum requirements for gcc-5.4.0 is quite high.  I removed -pipe and ran it with MAKEOPTS="-j1" and it still ran out of space (it had almost the entire 4 GB to work with).  This ebuild should definitely fail if there's not enough memory/diskspace to compile similar to libreoffice and firefox.  It looks like I have to get more system memory just to compile newer versions of gcc on this machine even though it really doesn't need more memory for every day stuff since it's just a mythfrontend box.
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2019-02-13 23:29:31 UTC
Does newer gcc still fail the same? 4GB sounds like a lot of RAM for a single-threaded compilation.
Comment 3 Matthew Schultz 2019-02-14 05:48:54 UTC
(In reply to Sergei Trofimovich from comment #2)
> Does newer gcc still fail the same? 4GB sounds like a lot of RAM for a
> single-threaded compilation.

I can't say at this point.  I gave up trying to make it work and just bought more RAM (now 8GB) for the machine since RAM is cheap for that machine and the motherboard allowed more RAM.
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2019-02-14 07:21:42 UTC
(In reply to Matthew Schultz from comment #3)
> (In reply to Sergei Trofimovich from comment #2)
> > Does newer gcc still fail the same? 4GB sounds like a lot of RAM for a
> > single-threaded compilation.
> 
> I can't say at this point.  I gave up trying to make it work and just bought
> more RAM (now 8GB) for the machine since RAM is cheap for that machine and
> the motherboard allowed more RAM.

Aha, let's close as obsolete then. Thanks for the update!