the output of
  dpkg -l | grep protobuf
is:

ii  libprotobuf8:amd64
 2.5.0-9ubuntu1                                      amd64        protocol
buffers C++ library
ii  protobuf-compiler
2.5.0-9ubuntu1                                      amd64        compiler
for protocol buffer definition files
ii  python-protobuf
2.5.0-9ubuntu1                                      all          Python
bindings for protocol buffers

is there something missing?

On Thu, Oct 30, 2014 at 1:53 AM, Patrick L. via gem5-users <
[email protected]> wrote:

> Farshid Hajhashemi via gem5-users <gem5-users <at> gem5.org> writes:
>
> >
> > Just to access physical addresses by commMonitor, I have modified
> "configs/common/CacheConfig.py" as Patrick indicated and used below
> command: build/ARM/gem5.opt --debug-flag=CommMonitor --debug-
> file=trace.out.gz configs/example/se.py -c tests/test-
> progs/hello/bin/arm/linux/hellocpu-type=timing
> >
> >
> >
> > then I the terminal prompted following error:
> >
> >
> > system.monitor2 = CommMonitor(trace_file = "trace2.txt")
> > NameError: name 'CommMonitor' is not defined
> >
> >
> > then I read this
> >
> > https://www.mail-archive.com/gem5-users%40gem5.org/msg08610.html
> > (which is not completely answered)
> >
> > And I also added these lines to "configs/common/CacheConfig.py":
> >
> >
> >
> > from m5.util import addToPath, fatal
> > addToPath('../../src/mem')
> > from CommMonitor import CommMonitor
> >
> >
> > I got this:
> >
> >
> > gem5 Simulator System.  http://gem5.org
> >
> > gem5 is copyrighted software; use the --copyright option for details.
> >
> > gem5 compiled Oct 18 2014 20:14:39
> > gem5 started Oct 29 2014 10:40:21
> > gem5 executing on KeepChange
> > command line: build/ARM/gem5.opt --debug-flag=CommMonitor --debug-
> file=trace.out.gz configs/example/se.py --caches --l2cache --l2_size=2MB
> --cpu-type=timing --mem-type=DDR3_1600_x64 -c tests/test-
> progs/hello/bin/arm/linux/hello
> > /home/farshid/gem5-stable/configs/common/CacheConfig.py:55:
> SyntaxWarning: import * only allowed at module level
> >   def config_cache(options, system):
> > Traceback (most recent call last):
> >   File "<string>", line 1, in <module>
> >   File "/home/farshid/gem5-stable/src/python/m5/main.py", line 388, in
> main
> >     exec filecode in scope
> >   File "configs/example/se.py", line 60, in <module>
> >     import CacheConfig
> >   File "/home/farshid/gem5-stable/configs/common/CacheConfig.py", line
> 51, in <module>
> >     from CommMonitor import CommMonitor
> >   File "/home/farshid/gem5-stable/src/mem/CommMonitor.py", line 41, in
> <module>
> >     from MemObject import MemObject
> >   File "/home/farshid/gem5-stable/src/mem/MemObject.py", line 33, in
> <module>
> >     from ClockedObject import ClockedObject
> > ImportError: No module named ClockedObject
> >
> >
> > any clue?
> > Thanks
> >
>
>
> Farshid,
>
> Do you have protobuf installed? scons I believe will print out a warning
> during the build if you don't have it. I believe CommMonitor will not be
> defined if you don't have protobuf installed in such a way that gem5
> will find it.
>
> Patrick
>
> _______________________________________________
> 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

Reply via email to