Re: Problem in compiling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12-08-08 09:54, rishi agrawal wrote:

I was trying to use the xgprof utility.

Its has a piece of code bundled with it named as "big.c"

On compiling it i got the error message

[root@localhost test]# gcc big.c

cc1: out of memory allocating 19208 bytes after a total of 1803980800 bytes


so how do i compile it .

On running cat big.c | wc -l the output was 2749876 lines

The idea is to compile it with gcc -pg as a profiler testcase (through a plain "make" from the test directory) but that won't make anything better.

Your total is a little short of 2G which is getting to be close to a value where you'd first have to answer the question whether you're using a 32-bit or 64-bit system.

Assuming though it's 64-bit or 32-bit with the normal 3:1 addressspace split, the answer's likely just that your patience is bigger than your amount of RAM + swap.

When I interrupted the thing it had only grown to 400M (on a 32-bit system) and didn't seem terribly keen on growing larger than that but if you just waited a long time there's probably nothing wrong. Or your GCC leaks...

Rene.


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux