Bug 138 - Out of Memory when doing make bootstrap creating GCC 3.3
Summary: Out of Memory when doing make bootstrap creating GCC 3.3
Status: RESOLVED INVALID
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.13
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-28 18:30 UTC by Frank Krauss
Modified: 2004-05-06 01:05 UTC (History)
1 user (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build: i686-pc-linux-gnu
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Krauss 2004-04-28 18:30:42 UTC
I'm running Caldera 2.3 using the 2.4.22 Kernel on a Pentium II.
The System has 64 Mb of RAM
The GCC is 3.0.4
The GLIBC is 2.2.5
The Binutils is 2.13.2

When attempting to Upgrade GCC to 3.3, after running more than 3 Hours,
I got the following messages:

Out of Memory: Killed process ...  (ld)
collect2: ld terminated with signal 15 [terminated]

I opened a Bugzilla problem with the GCC Group, Problem #15153

They informed me that from the messages, this is an LD problem and thus
it would belong to the Binutils area.

Any assistance that could be given me to resolve this problem would be
greatly appreciated.

Yours truly,

Frank Krauss
Comment 1 Ben Elliston 2004-04-29 06:03:31 UTC
There has been a lot of work in the last year or so to reduce the time and space
demands of the linker.  Binutils 2.13.2 is quite old now; can you please try
upgrading to the latest version (2.14) and trying again?  If it fixes your
problem, I'm afraid we will be able to do little but suggest that you upgrade
your binutils.  If the problem persists, I will try to look closer.

Thanks, Ben
Comment 2 Frank Krauss 2004-04-29 11:20:19 UTC
(In reply to comment #1)
> There has been a lot of work in the last year or so to reduce the time and space
> demands of the linker.  Binutils 2.13.2 is quite old now; can you please try
> upgrading to the latest version (2.14) and trying again?  If it fixes your
> problem, I'm afraid we will be able to do little but suggest that you upgrade
> your binutils.  If the problem persists, I will try to look closer.
> 
> Thanks, Ben
> 

Hello Ben,

Thank you very much for responding to my Post so fast.

I will look into Updating Binutils as you recommended.

Frank
 
Comment 3 Ben Elliston 2004-05-05 04:16:50 UTC
Hi Frank.  Any progress on this?

Ben
Comment 4 Frank Krauss 2004-05-05 16:17:54 UTC
(In reply to comment #3)
> Hi Frank.  Any progress on this?
> 
> Ben

Hello Ben,

I'm sorry that I didn't give you a final solution to this problem before.

I have not yet updated Binutils as you recommended.
I'm sure that your solution was the correct one.

Meanwhile, my solution to get around this problem has been described in
gcc.gnu.org/bugzilla Bug #15071.
At the end of Comment #7 is my mention of how I took care of this problem.

The solution was to explicitly mention a certain option that would then
bypass needing to do an LD for a very large Program.

This workaround was perfect for my needs.

I wish to thank you for your assistance in helping me with this problem.

Please feel free to close out this Bug.

Yours truly,

Frank
Comment 5 Ben Elliston 2004-05-06 01:05:49 UTC
Originator found a workaround.