The ARM vs ARM_FS thing is a recent change.  Basically if you're using
gem5-stable you should use ARM_FS, but if you're using the gem5 development
repository you should use ARM.

The error you're getting looks like an issue with swig or an
incompatibility between swig and your version of gcc.  The versions you are
using seem reasonable though.  If you start from scratch (rm -rf build) and
still see the error, I would try a different version of swig.  1.3.40 is a
good choice since it's the last of the 1.3 series, and the switch to 2.0
was not smooth.

Also, I'd suggest compiling gem5.debug first since that will compile faster
and let you know if you have any errors.  gem5.opt is reasonable once
you've got things working to make your runs go faster.  gem5.fast is really
only useful once you've got all the bugs worked out and are ready to fire
off hundreds of jobs.

Steve

On Wed, Apr 18, 2012 at 12:10 PM, Thomas, Amanda J <
[email protected]> wrote:

>  I'm using gcc/g++ version 4.4.3.  And I tried ARM before, but scons
> would output an error that the variables file could not be found, so the
> version I'm using needs to use ARM_FS.
> -Amanda
>  ------------------------------
> *From:* [email protected] [[email protected]] on
> behalf of Uri Wiener [[email protected]]
> *Sent:* Wednesday, April 18, 2012 2:58 PM
>
> *To:* gem5 users mailing list
> *Subject:* Re: [gem5-users] Build Error
>
>   Hi Amanda,
>
> In addition, I think you better use ARM and not ARM_FS, which is by now
> deprecated.
>
> Regards,
>
> Uri
>
>
>
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *Steve Reinhardt
> *Sent:* 18 April 2012 19:52
> *To:* gem5 users mailing list
> *Subject:* Re: [gem5-users] Build Error
>
>
>
> What version of gcc/g++ are you using?
>
> On Wed, Apr 18, 2012 at 11:48 AM, Thomas, Amanda J <
> [email protected]> wrote:
>
> I still can't seem to get Gem5 to build.  I've tried different versions of
> gem5, different versions of python and swig, and all have the same error
> when I build gem5.
>
> Here is my output when I try to build gem5 with the following command:
>
> scons build/ARM_FS/m5.fast
>
> scons: Reading SConscript files ...
> Checking for leading underscore in global variables...(cached) no
> Checking for C header file Python.h... (cached) yes
> Checking for C library pthread... (cached) yes
> Checking for C library dl... (cached) yes
> Checking for C library util... (cached) yes
> Checking for C library m... (cached) yes
> Checking for C library python2.4... (cached) yes
> Checking for accept(0,0,0) in C++ library None... (cached) yes
> Checking for zlibVersion() in C++ library z... (cached) yes
> Checking for clock_nanosleep(0,0,NULL,NULL) in C library None... (cached)
> no
> Checking for clock_nanosleep(0,0,NULL,NULL) in C library rt... (cached) yes
> Checking for C header file fenv.h... (cached) yes
> Reading SConsopts
> Building in /home/amanda/Downloads/gem5-stable-549b72de8f72/build/ARM_FS
> Using saved variables file
> /home/amanda/Downloads/gem5-stable-549b72de8f72/build/variables/ARM_FS
> scons: done reading SConscript files.
> scons: Building targets ...
>  [     CXX] ARM_FS/python/swig/core_wrap.cc -> .fo
>
> cc1plus: warnings being treated as errors
> build/ARM_FS/python/swig/core_wrap.cc: In function 'void
> SWIG_Python_AddErrorMsg(const char*)':
> build/ARM_FS/python/swig/core_wrap.cc:870: error: format not a string
> literal and no format arguments
> scons: *** [build/ARM_FS/python/swig/core_wrap.fo] Error 1
> scons: building terminated because of errors.
>
>  The only thing I can think of that may cause this would be the versions
> of swig or Python, but I'm using Swig 1.3.35 and Python 2.4.5.
> What is happening?
>
>
> -Amanda
> _______________________________________________
> 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
>
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to