dschmenk/apple2pi

gcc fails - out of memory

KenKashmarek opened this issue · 6 comments

I am compiling a small C program, about 6K of source code (1 file), and gcc fails with out of memory:

gcc -v -time -S challenge.c
...
cc1: out of memory allocating 67108864 bytes after a total of 991232 bytes

cc1 6.18 1.90

The command was entered on one terminal session while running the top command on another terminal session. The compile filled all of memory running near 100% CPU, and when memory filled, the swap daemon took over using high CPU and filled the swap file.

The source compiles clean (all source errors that were hit have been corrected).

Apparently, gcc has memory issues (note: it also failed on the same souce file on my x86 Ubuntu 14.04.1 system with 3 gig memory 3 gig swapfile; haven't tried it yet on my UDOO Lubuntu 12.04 system yet).

Open to suggestions. I have the diagnostics from the above command.

Another one Dave.

Ken

Visit my sales venues at:

¡¸ Webstore: http://drkenb.blujay.com - Vintage Apple II Computers, Canon Portable Printers & other miscellaneous items

Visit my informational websites at:

¡¸ http://www.Apple2Online.com - the ultimate online resource for the Apple II family of computers!

¡¸ http://CanonPortablePrinters.drkenb.com - the comprehensive online resource for Canon's portable inkjet printers!

¡¸ http://Photography.drkenb.com - Photographic library

¡¸ http://BeauMontFarmWeather.drkenb.com - CWOP Weather Station


Date: Fri, 17 Oct 2014 06:26:32 -0700
From: notifications@github.com
To: apple2pi@noreply.github.com
Subject: [apple2pi] gcc fails - out of memory (#5)

I am compiling a small C program, about 6K of source code (1 file), and gcc fails with out of memory:

gcc -v -time -S challenge.c

...

cc1: out of memory allocating 67108864 bytes after a total of 991232 bytes

cc1 6.18 1.90

The command was entered on one terminal session while running the top command on another terminal session. The compile filled all of memory running near 100% CPU, and when memory filled, the swap daemon took over using high CPU and filled the swap file.

The source compiles clean (all source errors that were hit have been corrected).

Apparently, gcc has memory issues (note: it also failed on the same souce file on my x86 Ubuntu 14.04.1 system with 3 gig memory 3 gig swapfile; haven't tried it yet on my UDOO Lubuntu 12.04 system yet).

Open to suggestions. I have the diagnostics from the above command.

¡X
Reply to this email directly or view it on GitHub.

I have a resolution to 1/2 of the problem...

By compiling with math.h and adding the -lm parameter after the source file name in the command, it works.

The half that still does NOT work, is when I compile with tgmath.h, even with -lm, it runs out of memory (no matter how much your have).

I Ken-

I'm not much on general Raspbian problems. The Raspberry Pi Forums are probably a better place to get resolution: http://www.raspberrypi.org/forums/viewforum.php?f=33&sid=764613046e127c4f06bae38b8cb7e55c

Dave...

On Oct 18, 2014, at 3:13 PM, KenKashmarek notifications@github.com wrote:

I have a resolution to 1/2 of the problem...

By compiling with math.h and adding the -lm parameter after the source file name in the command, it works.

The half that still does NOT work, is when I compile with tgmath.h, even with -lm, it runs out of memory (no matter how much your have).


Reply to this email directly or view it on GitHub #5 (comment).

HI David - I'm not sure how, but I seem to be getting inserted into the loop when I shouldn't be. Ken K's messages come to me, as do your replies to him. Ken Buchholz Visit my sales venues at: ¡¸ Webstore: http://drkenb.blujay.com - Vintage Apple II Computers, Canon Portable Printers & other miscellaneous itemsVisit my informational websites at: ¡¸ http://www.Apple2Online.com - the ultimate online resource for the Apple II family of computers! ¡¸ http://CanonPortablePrinters.drkenb.com - the comprehensive online resource for Canon's portable inkjet printers! ¡¸ http://Photography.drkenb.com - Photographic library ¡¸ http://BeauMontFarmWeather.drkenb.com - CWOP Weather Station________________________________________________________________________ Date: Sun, 19 Oct 2014 07:52:24 -0700From: notifications@github.comTo: apple2pi@noreply.github.comCC: kbuchholz1107@hotmail.comSubject: Re: [apple2pi] gcc fails - out of memory (#5)I Ken-

I'm not much on general Raspbian problems. The Raspberry Pi Forums are probably a better place to get resolution: http://www.raspberrypi.org/forums/viewforum.php?f=33&sid=764613046e127c4f06bae38b8cb7e55c

Dave...

On Oct 18, 2014, at 3:13 PM, KenKashmarek notifications@github.com wrote:

I have a resolution to 1/2 of the problem...

By compiling with math.h and adding the -lm parameter after the source file name in the command, it works.

The half that still does NOT work, is when I compile with tgmath.h, even with -lm, it runs out of memory (no matter how much your have).

¡X

Reply to this email directly or view it on GitHub #5 (comment).

¡XReply to this email directly or view it on GitHub.

Sorry Ken-

I thought Ken Kashmerek was something like your developer pseudo name. No idea why you'd be getting these messages - they are going through the GitHub mail system I'll have the other Ken contact me directly instead of going through the GitHub notification system.

Dave...

On Oct 19, 2014, at 8:07 AM, drkenb notifications@github.com wrote:

HI David - I'm not sure how, but I seem to be getting inserted into the loop when I shouldn't be. Ken K's messages come to me, as do your replies to him. Ken Buchholz Visit my sales venues at: ¡¸ Webstore: http://drkenb.blujay.com - Vintage Apple II Computers, Canon Portable Printers & other miscellaneous itemsVisit my informational websites at: ¡¸ http://www.Apple2Online.com - the ultimate online resource for the Apple II family of computers! ¡¸ http://CanonPortablePrinters.drkenb.com - the comprehensive online resource for Canon's portable inkjet printers! ¡¸ http://Photography.drkenb.com - Photographic library ¡¸ http://BeauMontFarmWeather.drkenb.com - CWOP Weather Station________________________________________________________________________ Date: Sun, 19 Oct 2014 07:52:24 -0700From: notifications@github.comTo: apple2pi@noreply.github.comCC: kbuchholz1107@hotmail.comSubject: Re: [apple2pi] gcc fails - out of memory (#5)I Ken-

I'm not much on general Raspbian problems. The Raspberry Pi Forums are probably a better place to get resolution: http://www.raspberrypi.org/forums/viewforum.php?f=33&sid=764613046e127c4f06bae38b8cb7e55c

Dave...

On Oct 18, 2014, at 3:13 PM, KenKashmarek notifications@github.com wrote:

I have a resolution to 1/2 of the problem...

By compiling with math.h and adding the -lm parameter after the source file name in the command, it works.

The half that still does NOT work, is when I compile with tgmath.h, even with -lm, it runs out of memory (no matter how much your have).

¡X

Reply to this email directly or view it on GitHub #5 (comment).

¡XReply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub #5 (comment).

No problem, Dave - just wanted to make sure you and Ken K. were getting each other's correspondance! Ken Visit my sales venues at: ☆ Webstore: http://drkenb.blujay.com - Vintage Apple II Computers, Canon Portable Printers & other miscellaneous itemsVisit my informational websites at: ☆ http://www.Apple2Online.com - the ultimate online resource for the Apple II family of computers! ☆ http://CanonPortablePrinters.drkenb.com - the comprehensive online resource for Canon's portable inkjet printers! ☆ http://Photography.drkenb.com - Photographic library ☆ http://BeauMontFarmWeather.drkenb.com - CWOP Weather Station________________________________________________________________________ Date: Sun, 19 Oct 2014 08:33:29 -0700From: notifications@github.comTo: apple2pi@noreply.github.comCC: kbuchholz1107@hotmail.comSubject: Re: [apple2pi] gcc fails - out of memory (#5)Sorry Ken-

I thought Ken Kashmerek was something like your developer pseudo name. No idea why you'd be getting these messages - they are going through the GitHub mail system I'll have the other Ken contact me directly instead of going through the GitHub notification system.

Dave...

On Oct 19, 2014, at 8:07 AM, drkenb notifications@github.com wrote:

HI David - I'm not sure how, but I seem to be getting inserted into the loop when I shouldn't be. Ken K's messages come to me, as do your replies to him. Ken Buchholz Visit my sales venues at: ¡¸ Webstore: http://drkenb.blujay.com - Vintage Apple II Computers, Canon Portable Printers & other miscellaneous itemsVisit my informational websites at: ¡¸ http://www.Apple2Online.com - the ultimate online resource for the Apple II family of computers! ¡¸ http://CanonPortablePrinters.drkenb.com - the comprehensive online resource for Canon's portable inkjet printers! ¡¸ http://Photography.drkenb.com - Photographic library ¡¸ http://BeauMontFarmWeather.drkenb.com - CWOP Weather Station________________________________________________________________________ Date: Sun, 19 Oct 2014 07:52:24 -0700From: notifications@github.comTo: apple2pi@noreply.github.comCC: kbuchholz1107@hotmail.comSubject: Re: [apple2pi] gcc fails - out of memory (#5)I Ken-

I'm not much on general Raspbian problems. The Raspberry Pi Forums are probably a better place to get resolution: http://www.raspberrypi.org/forums/viewforum.php?f=33&sid=764613046e127c4f06bae38b8cb7e55c

Dave...

On Oct 18, 2014, at 3:13 PM, KenKashmarek notifications@github.com wrote:

I have a resolution to 1/2 of the problem...

By compiling with math.h and adding the -lm parameter after the source file name in the command, it works.

The half that still does NOT work, is when I compile with tgmath.h, even with -lm, it runs out of memory (no matter how much your have).

¡X

Reply to this email directly or view it on GitHub #5 (comment).

¡XReply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub #5 (comment).

—Reply to this email directly or view it on GitHub.