hi: for example, for the following error, I just added the line at line 4380, I believe that you can add the line just before the function where the error occurs. btw, I did it in gem-stable and gem-beta, both works. --------------------------------------------------------------------- >> build/ALPHA_SE/python/m5/internal/Process_vector_wrap.cc:4407: error: >> 'SWIGPY_SLIC E_ARG' was not declared in this scope
At 2011-11-12 18:42:04,"Meeran Mohideeen" <[email protected]> wrote: >Hi... > >Can you please specify where exactly you added this line... ># define SWIGPY_SLICE_ARG(obj) ((PySliceObject*) (obj))... > >Because when i did so.... I am getting a lot of syntax errors when >compiling my system.... > >Please help me.... > > > >On 11/11/11, [email protected] <[email protected]> wrote: >> Hi: >> I have handled it with adding the following line to the file where the error >> message is given: >> # define SWIGPY_SLICE_ARG(obj) ((PySliceObject*) (obj)) >> >> and now, everything goes well. >> >> >> >> >> At 2011-11-11 20:55:47,[email protected] wrote: >> >> Hi: >> I tried to compile gem5, but it failed with the following message: >> build/ALPHA_SE/python/m5/internal/Process_vector_wrap.cc: In function >> 'std::vector<Process*, std::allocator<Process*> >* >> std_vector_Sl_Process_Sm__Sg____getitem____SWIG_0(std::vector<Process*, >> std::allocator<Process*> >*, PySliceObject*)': >> build/ALPHA_SE/python/m5/internal/Process_vector_wrap.cc:4398: error: >> 'SWIGPY_SLICE_ARG' was not declared in this scope >> build/ALPHA_SE/python/m5/internal/Process_vector_wrap.cc: In function 'void >> std_vector_Sl_Process_Sm__Sg____setitem____SWIG_0(std::vector<Process*, >> std::allocator<Process*> >*, PySliceObject*, const std::vector<Process*, >> std::allocator<Process*> >&)': >> build/ALPHA_SE/python/m5/internal/Process_vector_wrap.cc:4407: error: >> 'SWIGPY_SLIC E_ARG' was not declared in this scope >> build/ALPHA_SE/python/m5/internal/Process_vector_wrap.cc: In function 'void >> std_vector_Sl_Process_Sm__Sg____setitem____SWIG_1(std::vector<Process*, >> std::allocator<Process*> >*, PySliceObject*)': >> build/ALPHA_SE/python/m5/internal/Process_vector_wrap.cc:4416: error: >> 'SWIGPY_SLICE_ARG' was not declared in this scope >> build/ALPHA_SE/python/m5/internal/Process_vector_wrap.cc: In function 'void >> std_vector_Sl_Process_Sm__Sg____delitem____SWIG_1(std::vector<Process*, >> std::allocator<Process*> >*, PySliceObject*)': >> build/ALPHA_SE/python/m5/internal/Process_vector_wrap.cc:4425: error: >> 'SWIGPY_SLICE_ARG' was not declared in this scope >> cc1plus: warnings being treated as errors >> build/ALPHA_SE/python/m5/internal/Process_vector_wrap.cc: In function >> 'PyObject* _wrap_new_vector_Process__SWIG_0(PyObject*, PyObject*)': >> build/ALPHA_SE/python/m5/internal/Process_vector_wrap.cc:5360: error: label >> 'fail' defined but n ot used >> scons: *** [build/ALPHA_SE/python/m5/internal/Process_vector_wrap.o] Error 1 >> scons: building terminated because of errors. >> >> Can any one help? >> >> I change the gcc to gcc-4.4, it does not work either. >> ---------------------------- >> I compiling environment is >> nifan@debian:/programs/simulation-tools/gem5/hg-src/gem5-2fc7787f47a9$ uname >> -a >> Linux debian 3.0.0-1-amd64 #1 SMP Sat Aug 27 16:21:11 UTC 2011 x86_64 >> GNU/Linux >> nifan@debian:/programs/simulation-tools/gem5/hg-src/gem5-2fc7787f47a9$ gcc >> -v >> Using built-in specs. >> COLLECT_GCC=gcc >> COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper >> Target: x86_64-linux-gnu >> gcc version 4.6.1 (Debian 4.6.1-15) >> nifan@debian:/programs/simulation-tools/gem5/hg-src/gem5-2fc7787f47a9$ scons >> -v >> SCons by Steven Knight et al.: >> script: v2. 1.0.r5357[MODIFIED], 2011/09/09 21:31:03, by bdeegan on >> ubuntu >> engine: v2.1.0.r5357[MODIFIED], 2011/09/09 21:31:03, by bdeegan on >> ubuntu >> engine path: ['/usr/lib/scons/SCons'] >> Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, >> 2011 The SCons Foundation >> swig 2.0 >> >> >> >> >> >> >> >> >> >> >_______________________________________________ >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
