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_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_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 not 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