Hi all,
I want to add a new class (inherited from SimObject) under src/cpu.
To achieve this, I added three files:
propertymgr.cc
propertymgr.hh
PropertyMgr.py
and the SConscript is modified accordingly.
Unfortunately, every time I try to build gem5 with these files added,
python complains
about a syntax error in my .py file. Therefore, in order to identify the
erroneous step
immediately,I commented out all the contents of these three files added
them back gradually.
However, I found that, if there's any uncommented line in the .py file, the
compilation
would always fails and reports the following error message:
Building in /z/hsuch/gem5-prototype/build/ARM
Using saved variables file /z/hsuch/gem5-prototype/build/variables/ARM
scons: done reading SConscript files.
scons: Building targets ...
[ CXX] ARM/cpu/propertymgr.cc -> .o
[EMBED PY] ARM/cpu/PropertyMgr.py -> .cc
scons: *** [build/ARM/cpu/PropertyMgr.py.cc] SyntaxError : invalid syntax
(PropertyMgr.py, line 3)
Traceback (most recent call last):
File "/net/tawas/x/hsuch/local/lib/scons-2.2.0/SCons/Action.py", line
1062, in execute
result = self.execfunction(target=target, source=rsources, env=env)
File "/z/hsuch/gem5-prototype/build/ARM/SConscript", line 828, in
embedPyFile
compiled = compile(src, pysource.abspath, 'exec')
File "/z/hsuch/gem5-prototype/src/cpu/PropertyMgr.py", line 3
^
SyntaxError: invalid syntax
scons: building terminated because of errors.
*Since everything in .cc and .hh is commented out, and there's only one
uncommentedblank line in the .py file, it is unlikely that this is caused
by a syntax error. *
Could anyone please give me some suggestions? Any idea is appreciated!!!
-CH
<[email protected]>
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users