Yeah I've been able to compile x86 on our big servers (48gb memory), but
have had trouble on ordinary machines. I'd definitely keep a top window
open and monitor the memory usage. That decoder file is certainly a lot for
a compiler to chew on ....



On Fri, Feb 24, 2012 at 4:35 PM, Nilay Vaish <[email protected]> wrote:

> On Fri, 24 Feb 2012, Max Kelner wrote:
>
>  I've been trying to compile gem5.opt for x86, using both the unmodified
>> gem5-stable repo (with 'scons build/X86_SE/gem5.opt') and the unmodified
>> gem5 repo (with 'scons build/X86/gem5.opt'). I've tried on gcc 4.3.2,
>> 4.5.2, and 4.6.1, and in all cases the build fails when it gets to
>> decoder.cc after a very long time. The error is always something like:
>>
>> [     CXX] X86/arch/x86/decoder.cc -> .o
>> build/X86/arch/x86/decoder.cc:**120069:3: fatal error: error writing to
>> -:
>> Broken pipe
>> compilation terminated.
>> g++: Internal error: Killed (program as)
>> Please submit a full bug report.
>> See <http://gcc.gnu.org/bugs.html> for instructions.
>> scons: *** [build/X86/arch/x86/decoder.o] Error 1
>> scons: building terminated because of errors.
>>
>> I've seen several other related errors on both the users and dev mailing
>> list, but I haven't seen any solutions. On the dev list, I saw a
>> discussion
>> about splitting decoder.cc into several files, so that gcc could compile
>> it, but I haven't come across any followup.
>>
>> Does anyone have an techniques for getting past this point in the compile?
>>
>> Thanks,
>> Max
>>
>> Other system details:
>> The system has 8GB memory
>> Red Hat (Enterprise 4)
>> Python 2.6.7
>>
>>
> Are you able to compile gem5.fast or gem5.debug? It definitely seems like
> gcc runs out of memory while compiling. Try compiling on a machine with
> more memory / swap space if you can.
>
> --
> Nilay
> ______________________________**_________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/**mailman/listinfo/gem5-users<http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users>
>
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to