Hello,

I am trying to do very simple tests using gem5, but when i try to compile it
i am faced with the following error:

 [    SWIG] SPARC_SE/python/swig/core.i -> _wrap.cc, .py
 [     CXX] SPARC_SE/python/swig/core_wrap.cc -> .fo
cc1plus: warnings being treated as errors
build/SPARC_SE/python/swig/core_wrap.cc: In function 'PyObject*
_wrap_doExitCleanup(PyObject*, PyObject*)':
build/SPARC_SE/python/swig/core_wrap.cc:3721: error: label 'fail' defined
but not used
build/SPARC_SE/python/swig/core_wrap.cc: In function 'PyObject*
_wrap_disableAllListeners(PyObject*, PyObject*)':
build/SPARC_SE/python/swig/core_wrap.cc:3732: error: label 'fail' defined
but not used
build/SPARC_SE/python/swig/core_wrap.cc: In function 'PyObject*
_wrap_curTick(PyObject*, PyObject*)':
build/SPARC_SE/python/swig/core_wrap.cc:3842: error: label 'fail' defined
but not used
scons: *** [build/SPARC_SE/python/swig/core_wrap.fo] Error 1
scons: building terminated because of errors.

I feel the solution has to be either
1) Make g++ treat wranings as warnings  (not sure how)
2) Make swig produce files that doesn't contain warnings since cor)wrap.cc
was produced by swig

the version of programs i am using
GCC 4.4.3-4ubuntu5
swig 2.0.4 [ compiled with g++ x86_64-unknown-linux-gnu]


Saad
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to