Farshid,

You're welcome. Glad I could be of help.

-Patrick

On Fri, Oct 31, 2014 at 4:43 AM, Farshid Hajhashemi <
[email protected]> wrote:

> Patrick,
>
> After setting an environment variable, finally the warning has gone ;)
>
> I want to thank you again Patrick, you really helped.
> Thank you
>
>
> On Fri, Oct 31, 2014 at 1:34 PM, Farshid Hajhashemi <
> [email protected]> wrote:
>
>> Patrick,
>>
>> yes I ran scons again and the warning exists, I'm running mint(17)
>> Afterward I have downloaded Protobuf from here:
>> https://developers.google.com/protocol-buffers/
>> and then installed it this way:
>>
>> $ ./configure
>>  $ make
>>  $ make check
>>  $ make install
>>
>> but after running scons again the warning still exists.
>> so what's next step?
>>
>> Thanks in advance
>>
>> On Thu, Oct 30, 2014 at 8:47 PM, Patrick via gem5-users <
>> [email protected]> wrote:
>>
>>> Farshid,
>>>
>>> Are you getting this warning when you run scons to build gem5?
>>>
>>> "Warning: did not find protocol buffer library and/or headers.
>>>        Please install libprotobuf-dev for tracing support."
>>>
>>> If so, I have some ideas on how to fix that. I don't know what distro
>>> your running, but on CentOS, for example, the protobuf package installed by
>>> yum doesn't install all the necessary files (bug 815587 was filed at EPEL
>>> for this problem over two years ago, but it hasn't been fixed yet). Because
>>> of this, I had to download protobuf from Google and build it. There are a
>>> some gotchas (at least for me) when setting this up, so if you need any
>>> tips with getting that to work, please let me know.
>>>
>>> It looks like you are using a Debian flavor of Linux. I don't believe
>>> I've tried the protobuf package on a Debian-based system, so I don't know
>>> if the Debian package works. If you are getting the above warning when
>>> building gem5, then likely the answer is "no."
>>>
>>> Hope this helps,
>>> Patrick
>>>
>>> On Wed, Oct 29, 2014 at 9:49 PM, Farshid Hajhashemi <
>>> [email protected]> wrote:
>>>
>>>> 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
>>>
>>
>>
>>
>>
>>
>>
>>
>
>
> --
> Farshid Hajhashemi
> MS.c Student of Computer Architecture At University of Isfahan
> Senior Digital Designer At Kara Telephone
> Contact:
>       Mail:
>        [email protected]
>        [email protected]
>        [email protected]
>
>
>
>
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to