Saad Arrabi <arrabi <at> virginia.edu> writes: > > > 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 > gem5-users <at> gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
This took me long time to find a solution around this. I was able to disablle the "-Werror" option that scons uses (that option make all warnings treated as errors). I was able to remove that option by editting the SConscript file in the 'src' folder. I changed "Werror = true" to "Werror=false" and i commented "swig_env.Append(CCFLAGS='-Werror') I know this is not a full solution, but it worked for me. I hope this didn't effect other aspects of the build _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
