Oh, I'm sorry.
I make a mistake about the scons file in gem5.
In my compile environment with gcc 4.6.1, gem5 can be compiled clearly.
How about add the compile option -Wno-unused-variable in the sconscript file in 
gem5 root directory?

iPadから送信

On 2012. 5. 25., at 오후 8:58, Sungup Moon <[email protected]> wrote:

> Hi
> 
> What version of gem5 did you compile?
> Stable version has some problem of compile option in scons file about 
> unused-variable option.
> Maybe gem5 development version (repo.gem5.org/gem5) has no problem over the 
> gcc 4.6 version.
> 
> Best regards
> 
> Sungup Moon
> iPadから送信
> 
> On 2012. 5. 25., at 오후 7:13, WonSeob Jeong <[email protected]> wrote:
> 
>> Hi all,
>> 
>> When I build gem5, I got a error that g++ couldn't fild cassert.
>> 
>> [     CXX] X86/kern/linux/printk.cc -> .o
>> In file included from build/X86/kern/linux/printk.cc:38:0:
>> build/X86/sim/arguments.hh: In instantiation of 'Arguments::operator T*() 
>> [with T = const char]':
>> build/X86/kern/linux/printk.cc:172:51:   required from here
>> build/X86/sim/arguments.hh:140:9: error: 'CopyData' was not declared in this 
>> scope
>> In file included from build/X86/arch/isa_traits.hh:1:0,
>>                from build/X86/mem/port_proxy.hh:64,
>>                from build/X86/mem/fs_translating_port_proxy.hh:63,
>>                from build/X86/sim/arguments.hh:39,
>>                from build/X86/kern/linux/printk.cc:38:
>> build/X86/arch/x86/isa_traits.hh:74:23: error: 'X86ISA::NoopMachInst' 
>> defined but not used [-Werror=unused-variable]
>> cc1plus: all warnings being treated as errors
>> scons: *** [build/X86/kern/linux/printk.o] Error 1
>> scons: building terminated because of errors.
>> 
>> 
>> I use gcc 4.7.0 and I can find casser file in /usr/include/c++/4.7.0/
>> 
>> Any one know solution for that?
>> 
>> Thans in advance.
>> _______________________________________________
>> gem5-users mailing list
>> [email protected]
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
> _______________________________________________
> gem5-users mailing list
> [email protected]
> 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