The quickest fix is to delete this line in src/SConscript:

    swig_env.Append(CCFLAGS='-Werror')

Steve



On Wed, Mar 20, 2013 at 7:52 PM, Tao Zhang <tao.zhang.0...@gmail.com> wrote:

> Dear all,
>
> When I built the latest gem5, the following compilation erros came up.
> More interesting, it only happens when buiding gem5.fast. gem5.debug can
> still be built successfully. Any clue to fix it? (swig--1.3.40,
> scons--2.1.0, python--2.6.6, gcc--4.4.5)
>
> ==============================**==============================
> cc1plus: warnings being treated as errors
> build/ALPHA/python/swig/core_**wrap.cc: In function 'PyObject*
> _wrap_new_Cycles(PyObject*, PyObject*)':
> build/ALPHA/python/swig/core_**wrap.cc:3323: error: 'argv[0]' may be used
> uninitialized in this function
> scons: *** [build/ALPHA/python/swig/core_**wrap.fo <http://core_wrap.fo>]
> Error 1
> cc1plus: warnings being treated as errors
> build/ALPHA/python/swig/event_**wrap.cc: In function 'PyObject*
> _wrap_new_Cycles(PyObject*, PyObject*)':
> build/ALPHA/python/swig/event_**wrap.cc:3380: error: 'argv[0]' may be
> used uninitialized in this function
> build/ALPHA/python/swig/event_**wrap.cc: In function 'PyObject*
> _wrap_simulate(PyObject*, PyObject*)':
> build/ALPHA/python/swig/event_**wrap.cc:4590: error: 'argv[0]' may be
> used uninitialized in this function
> scons: *** [build/ALPHA/python/swig/event**_wrap.fo <http://event_wrap.fo>]
> Error 1
> cc1plus: warnings being treated as errors
> build/ALPHA/python/swig/range_**wrap.cc: In function 'PyObject*
> _wrap_new_Cycles(PyObject*, PyObject*)':
> build/ALPHA/python/swig/range_**wrap.cc:3120: error: 'argv[0]' may be
> used uninitialized in this function
> scons: *** [build/ALPHA/python/swig/range**_wrap.fo <http://range_wrap.fo>]
> Error 1
> cc1plus: warnings being treated as errors
> build/ALPHA/python/swig/debug_**wrap.cc: In function 'PyObject*
> _wrap_new_Cycles(PyObject*, PyObject*)':
> build/ALPHA/python/swig/debug_**wrap.cc:10624: error: 'argv[0]' may be
> used uninitialized in this function
> scons: *** [build/ALPHA/python/swig/debug**_wrap.fo <http://debug_wrap.fo>]
> Error 1
> scons: building terminated because of errors.
> ==============================**==============================
>
> Regards,
>
> --
> ************************************
> Tao Zhang
>
> Department of Computer Science&  Engineering,
> College of Engineering, Pennsylvania State University
>
> 354B IST Building
> University Park, PA 16802
>
> (Office) 814-863-1047
> (Mobile) 408-930-8930
> Homepage: www.cse.psu.edu/~tzz106
> ************************************
>
>         ("`-''-/").___..--''"`-._
>          `6_ 6  )   `-.  (     ).`-.__.`)       GO LIONS!!!
>          (_Y_.)'  ._   )  `._ `. ``-..-'
>        _..`--'_..-_/  /--'_.' ,'
>       (il),-''  (li),'  ((!.-'
>
>
> Happiness is like a butterfly which, when pursued, is always beyond your
> grasp, but if you will sit down quietly, may alight upon you.
> --- Nathaniel Hawthorne
>
> ______________________________**_________________
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/**mailman/listinfo/gem5-users<http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users>
>
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to