Hi, I am not able to build gem5 with python 2.4.3 and swig 2.0.7, even though dependencies show python : version 2.4 - 2.7 swig : version 1.3.34 or newer
I was able to successfully able to build it on my laptop with python version 2.7.3, swig 2.0.4. I want to run on my lab system with centos 5. I am getting python scope error. scons: Reading SConscript files ... Warning: Protocol buffer compiler (protoc) not found. Please install protobuf-compiler for tracing support. Checking for leading underscore in global variables...(cached) no Checking for C header file Python.h... (cached) yes Checking for C library pthread... (cached) yes Checking for C library dl... (cached) yes Checking for C library util... (cached) yes Checking for C library m... (cached) yes Checking for C library python2.4... (cached) yes Checking for accept(0,0,0) in C++ library None... (cached) yes Checking for zlibVersion() in C++ library z... (cached) yes Checking for clock_nanosleep(0,0,NULL,NULL) in C library None... (cached) no Checking for clock_nanosleep(0,0,NULL,NULL) in C library rt... (cached) yes Checking for C library tcmalloc_minimal... (cached) no You can get a 12% performance improvement by installing tcmalloc (libgoogle-perftools-dev package on Ubuntu or RedHat). Checking for C header file fenv.h... (cached) yes Reading SConsopts Building in /research-storage/users/sxm5916/gem5/build/ALPHA Using saved variables file /research-storage/users/sxm5916/gem5/build/variables/ALPHA scons: done reading SConscript files. scons: Building targets ... [ CXX] ALPHA/sim/main.cc -> .o [ CXX] ALPHA/python/swig/pyevent.cc -> .o [ CXX] ALPHA/python/swig/pyobject.cc -> .o [ CXX] ALPHA/python/swig/core_wrap.cc -> .o build/ALPHA/python/swig/core_wrap.cc:917: warning: 'long int PyNumber_AsSsize_t(PyObject*, void*)' defined but not used [ CXX] ALPHA/python/swig/debug_wrap.cc -> .o build/ALPHA/python/swig/debug_wrap.cc:917: warning: 'long int PyNumber_AsSsize_t(PyObject*, void*)' defined but not used [ CXX] ALPHA/python/swig/drain_wrap.cc -> .o build/ALPHA/python/swig/drain_wrap.cc: In function 'PyObject* SWIG_From_unsigned_SS_int(unsigned int)': build/ALPHA/python/swig/drain_wrap.cc:3068: error: 'PyInt_FromSize_t' was not declared in this scope build/ALPHA/python/swig/drain_wrap.cc: At global scope: build/ALPHA/python/swig/drain_wrap.cc:917: warning: 'long int PyNumber_AsSsize_t(PyObject*, void*)' defined but not used scons: *** [build/ALPHA/python/swig/drain_wrap.o] Error 1 scons: building terminated because of errors.
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users