Hi Sungup, There may very well be warnings (and thus errors) when compiling with gcc 4.7 (the price you pay for being bleeding edge :). If there are any such warnings we should fix them rather than ignore them...at least as far as possible. If you want to use gcc 4.7 and address any compilation problems then please post a patch to the reviewboard.
Thanks, Andreas -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Sungup Moon Sent: 25 May 2012 13:14 To: gem5 users mailing list Cc: gem5 users mailing list Subject: Re: [gem5-users] Build error occured 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 -- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
