Re: [gem5-users] Compilation error

2018-06-05 Thread Mao Ye
Hi Ciro,

It is solved already. I found out the problem resides in one of the header
files I added in .
I use the latest gem5 version, on ubuntu 16.04.

Thanks!
Mao






On Tue, Jun 5, 2018 at 4:28 AM, Ciro Santilli 
wrote:

> Does it happen on a full clean build? What is your gem5 git revision?
> What is your OS? What is your compiler version? :-)
>
> On Mon, Jun 4, 2018 at 9:44 PM, Mao Ye  wrote:
> > Hi all,
> >
> > I have been using gem5 for a while without any problem. But today I met a
> > problem with my new modification and it failed at compilation stage.
> > However, I diff the following file with the one under another directory
> of
> > mine, showing no difference at all. So what might be the reason causing
> so
> > many errors?  Any suggestion will be appreciated.
> >
> > The error message is as below :
> >
> > [VER TAGS]  -> X86/sim/tags.cc
> > [ CXX] X86/python/_m5/param_DRAMCtrl.cc -> .o
> > build/X86/python/_m5/param_DRAMCtrl.cc:53:1: error: expected
> unqualified-id
> > before 'namespace'
> >  namespace py = pybind11;
> >  ^
> > build/X86/python/_m5/param_DRAMCtrl.cc:56:13: error: 'py' has not been
> > declared
> >  module_init(py::module &m_internal)
> >  ^
> > build/X86/python/_m5/param_DRAMCtrl.cc:56:24: error: expected ',' or
> '...'
> > before '&' token
> >  module_init(py::module &m_internal)
> > ^
> > build/X86/python/_m5/param_DRAMCtrl.cc:137:33: error: expected
> identifier
> > before string constant
> >  static EmbeddedPyBind embed_obj("DRAMCtrl", module_init,
> "AbstractMemory");
> >  ^
> > build/X86/python/_m5/param_DRAMCtrl.cc:137:33: error: expected ',' or
> '...'
> > before string constant
> > build/X86/python/_m5/param_DRAMCtrl.cc:137:75: error: expected '}' at
> end of
> > input
> >  static EmbeddedPyBind embed_obj("DRAMCtrl", module_init,
> "AbstractMemory");
> >
>   ^
> > build/X86/python/_m5/param_DRAMCtrl.cc: In static member function
> 'static
> > void FECache::module_init(int)':
> > build/X86/python/_m5/param_DRAMCtrl.cc:58:5: error: 'py' has not been
> > declared
> >  py::module m = m_internal.def_submodule("param_DRAMCtrl");
> >  ^
> > build/X86/python/_m5/param_DRAMCtrl.cc:59:5: error: 'py' has not been
> > declared
> >  py::class_ > std::unique_ptr>(m, "
> >  ^
> > build/X86/python/_m5/param_DRAMCtrl.cc:59:30: error: expected
> > primary-expression before ',' token
> >  py::class_ > std::unique_ptr>(m, "
> >   ^
> > build/X86/python/_m5/param_DRAMCtrl.cc:59:52: error: expected
> > primary-expression before ',' token
> >  py::class_ > std::unique_ptr>(m, "
> > ^
> > build/X86/python/_m5/param_DRAMCtrl.cc:59:86: error: 'py' was not
> declared
> > in this scope
> >  py::class_ > std::unique_ptr>(m, "
> >
> > ^
> > build/X86/python/_m5/param_DRAMCtrl.cc:59:98: error: template argument
> 2 is
> > invalid
> >  py::class_ > std::unique_ptr>(m, "DRAM
> >
> > ^
> > build/X86/python/_m5/param_DRAMCtrl.cc:59:101: error: 'm' was not
> declared
> > in this scope
> >  :class_ > std::unique_ptr>(m, "DRAMCtr
> >
> > ^
> > build/X86/python/_m5/param_DRAMCtrl.cc:60:14: error: 'py' is not a
> class,
> > namespace, or enumeration
> >  .def(py::init<>())
> >   ^
> > build/X86/python/_m5/param_DRAMCtrl.cc:60:23: error: expected
> > primary-expression before '>' token
> >  .def(py::init<>())
> >^
> > build/X86/python/_m5/param_DRAMCtrl.cc:60:25: error: expected
> > primary-expression before ')' token
> >  .def(py::init<>())
> >  ^
> > build/X86/python/_m5/param_DRAMCtrl.cc:132:5: error: 'py' is not a
> class,
> > namespace, or enumeration
> >  py::class_ > py::nodelete>>(m, "DRAMCtrl")
> >  ^
> > build/X86/python/_m5/param_DRAMCtrl.cc:132:24: error: expected
> > primary-expression before ',' token
> >  py::class_ > py::nodelete>>(m, "DRAMCtrl")
> > ^
> > build/X86/python/_m5/param_DRAMCtrl.cc:132:40: error: expected
> > primary-expression before ',' token
> >  py::class_ > py::nodelete>>(m, "DRAMCtrl")
> > ^
> > build/X86/python/_m5/param_DRAMCtrl.cc:132:68: error: the value of 'py'
> is
> > not usable in a constant expression
> >  py::class_ > py::nodelete>>(m, "DRAMCtrl")
> > ^
> > build/X86/python/_m5/param_DRAMCtrl.cc:59:86: note: 'py' was not
> declared
> > 'constexpr'
> >  py::class_ > std::unique_ptr>(m, "
> >
> > ^
> > build/X86/python/_m5/param_DRAMCtrl.cc:132:80: error: type/value
> mismatch at
> > argument 2 in template parameter list for 'template
> > class std::unique_ptr'
> >  py::class_ > py::nodelete>>(m, "DRAMCtrl")
> >
> > ^
> > build/X86/python/_m5/param_DRAMCtrl.cc:132:80: note:   expected a type,
> got
> > 'py'
> > build/X86/python/_m5/param_DRAMCtrl

Re: [gem5-users] Compilation error

2018-06-05 Thread Mao Ye
Hi Oscar,

I think it is because of in one of the header files I had the issue as you
described. It is solved already. Thanks!

Mao

On Tue, Jun 5, 2018 at 4:57 AM, Oscar Rosell 
wrote:

> Hi,
>
> Most (if not all) of the errors are just a consequence of the first one so
> they don't really matter. Most probably, you're missing a ";" somewhere
> before the "namespace py = pybind11;" line.
>
> Regards,
>
> Oscar
>
> On 04/06/18 22:44, Mao Ye wrote:
>
> Hi all,
>
> I have been using gem5 for a while without any problem. But today I met a
> problem with my new modification and it failed at compilation stage.
> However, I diff the following file with the one under another directory of
> mine, showing no difference at all. So what might be the reason causing so
> many errors?  Any suggestion will be appreciated.
>
> The error message is as below :
>
> [VER TAGS]  -> X86/sim/tags.cc
> [ CXX] X86/python/_m5/param_DRAMCtrl.cc -> .o
> build/X86/python/_m5/param_DRAMCtrl.cc:53:1: error: expected
> unqualified-id before 'namespace'
>  namespace py = pybind11;
>  ^
> build/X86/python/_m5/param_DRAMCtrl.cc:56:13: error: 'py' has not been
> declared
>  module_init(py::module &m_internal)
>  ^
> build/X86/python/_m5/param_DRAMCtrl.cc:56:24: error: expected ',' or
> '...' before '&' token
>  module_init(py::module &m_internal)
> ^
> build/X86/python/_m5/param_DRAMCtrl.cc:137:33: error: expected identifier
> before string constant
>  static EmbeddedPyBind embed_obj("DRAMCtrl", module_init,
> "AbstractMemory");
>  ^
> build/X86/python/_m5/param_DRAMCtrl.cc:137:33: error: expected ',' or
> '...' before string constant
> build/X86/python/_m5/param_DRAMCtrl.cc:137:75: error: expected '}' at end
> of input
>  static EmbeddedPyBind embed_obj("DRAMCtrl", module_init,
> "AbstractMemory");
>
> ^
> build/X86/python/_m5/param_DRAMCtrl.cc: In static member function 'static
> void FECache::module_init(int)':
> build/X86/python/_m5/param_DRAMCtrl.cc:58:5: error: 'py' has not been
> declared
>  py::module m = m_internal.def_submodule("param_DRAMCtrl");
>  ^
> build/X86/python/_m5/param_DRAMCtrl.cc:59:5: error: 'py' has not been
> declared
>  py::class_ std::unique_ptr>(m, "
>  ^
> build/X86/python/_m5/param_DRAMCtrl.cc:59:30: error: expected
> primary-expression before ',' token
>  py::class_ std::unique_ptr>(m, "
>   ^
> build/X86/python/_m5/param_DRAMCtrl.cc:59:52: error: expected
> primary-expression before ',' token
>  py::class_ std::unique_ptr>(m, "
> ^
> build/X86/python/_m5/param_DRAMCtrl.cc:59:86: error: 'py' was not
> declared in this scope
>  py::class_ std::unique_ptr>(m, "
>
> ^
> build/X86/python/_m5/param_DRAMCtrl.cc:59:98: error: template argument 2
> is invalid
>  py::class_ std::unique_ptr>(m, "DRAM
>
>   ^
> build/X86/python/_m5/param_DRAMCtrl.cc:59:101: error: 'm' was not
> declared in this scope
>  :class_ std::unique_ptr>(m, "DRAMCtr
>
>   ^
> build/X86/python/_m5/param_DRAMCtrl.cc:60:14: error: 'py' is not a class,
> namespace, or enumeration
>  .def(py::init<>())
>   ^
> build/X86/python/_m5/param_DRAMCtrl.cc:60:23: error: expected
> primary-expression before '>' token
>  .def(py::init<>())
>^
> build/X86/python/_m5/param_DRAMCtrl.cc:60:25: error: expected
> primary-expression before ')' token
>  .def(py::init<>())
>  ^
> build/X86/python/_m5/param_DRAMCtrl.cc:132:5: error: 'py' is not a class,
> namespace, or enumeration
>  py::class_ py::nodelete>>(m, "DRAMCtrl")
>  ^
> build/X86/python/_m5/param_DRAMCtrl.cc:132:24: error: expected
> primary-expression before ',' token
>  py::class_ py::nodelete>>(m, "DRAMCtrl")
> ^
> build/X86/python/_m5/param_DRAMCtrl.cc:132:40: error: expected
> primary-expression before ',' token
>  py::class_ py::nodelete>>(m, "DRAMCtrl")
> ^
> build/X86/python/_m5/param_DRAMCtrl.cc:132:68: error: the value of 'py'
> is not usable in a constant expression
>  py::class_ py::nodelete>>(m, "DRAMCtrl")
> ^
> build/X86/python/_m5/param_DRAMCtrl.cc:59:86: note: 'py' was not declared
> 'constexpr'
>  py::class_ std::unique_ptr>(m, "
>
> ^
> build/X86/python/_m5/param_DRAMCtrl.cc:132:80: error: type/value mismatch
> at argument 2 in template parameter list for 'template _Dp> class std::unique_ptr'
>  py::class_ py::nodelete>>(m, "DRAMCtrl")
>
> ^
> build/X86/python/_m5/param_DRAMCtrl.cc:132:80: note:   expected a type,
> got 'py'
> build/X86/python/_m5/param_DRAMCtrl.cc: At global scope:
> build/X86/python/_m5/param_DRAMCtrl.cc:135:1: error: expected
> unqualified-id at end of input
>  };
>  ^
> scons: *** [build/X8

Re: [gem5-users] Compilation error

2018-06-05 Thread Oscar Rosell

Hi,

Most (if not all) of the errors are just a consequence of the first one 
so they don't really matter. Most probably, you're missing a ";" 
somewhere before the "namespace py = pybind11;" line.


Regards,

    Oscar


On 04/06/18 22:44, Mao Ye wrote:

Hi all,

I have been using gem5 for a while without any problem. But today I 
met a problem with my new modification and it failed at compilation 
stage. However, I diff the following file with the one under another 
directory of mine, showing no difference at all. So what might be the 
reason causing so many errors? Any suggestion will be appreciated.


The error message is as below :

[VER TAGS]  -> X86/sim/tags.cc
[ CXX] X86/python/_m5/param_DRAMCtrl.cc -> .o
build/X86/python/_m5/param_DRAMCtrl.cc:53:1: error: expected 
unqualified-id before 'namespace'

 namespace py = pybind11;
 ^
build/X86/python/_m5/param_DRAMCtrl.cc:56:13: error: 'py' has not been 
declared

 module_init(py::module &m_internal)
 ^
build/X86/python/_m5/param_DRAMCtrl.cc:56:24: error: expected ',' or 
'...' before '&' token

 module_init(py::module &m_internal)
    ^
build/X86/python/_m5/param_DRAMCtrl.cc:137:33: error: expected 
identifier before string constant
 static EmbeddedPyBind embed_obj("DRAMCtrl", module_init, 
"AbstractMemory");

   ^
build/X86/python/_m5/param_DRAMCtrl.cc:137:33: error: expected ',' or 
'...' before string constant
build/X86/python/_m5/param_DRAMCtrl.cc:137:75: error: expected '}' at 
end of input
 static EmbeddedPyBind embed_obj("DRAMCtrl", module_init, 
"AbstractMemory");

^
build/X86/python/_m5/param_DRAMCtrl.cc: In static member function 
'static void FECache::module_init(int)':
build/X86/python/_m5/param_DRAMCtrl.cc:58:5: error: 'py' has not been 
declared

 py::module m = m_internal.def_submodule("param_DRAMCtrl");
 ^
build/X86/python/_m5/param_DRAMCtrl.cc:59:5: error: 'py' has not been 
declared
 py::class_std::unique_ptr>(m, "

 ^
build/X86/python/_m5/param_DRAMCtrl.cc:59:30: error: expected 
primary-expression before ',' token
 py::class_std::unique_ptr>(m, "

  ^
build/X86/python/_m5/param_DRAMCtrl.cc:59:52: error: expected 
primary-expression before ',' token
 py::class_std::unique_ptr>(m, "

  ^
build/X86/python/_m5/param_DRAMCtrl.cc:59:86: error: 'py' was not 
declared in this scope
 py::class_std::unique_ptr>(m, "

^
build/X86/python/_m5/param_DRAMCtrl.cc:59:98: error: template argument 
2 is invalid
 py::class_std::unique_ptr>(m, "DRAM

^
build/X86/python/_m5/param_DRAMCtrl.cc:59:101: error: 'm' was not 
declared in this scope
 :class_std::unique_ptr>(m, "DRAMCtr

^
build/X86/python/_m5/param_DRAMCtrl.cc:60:14: error: 'py' is not a 
class, namespace, or enumeration

 .def(py::init<>())
  ^
build/X86/python/_m5/param_DRAMCtrl.cc:60:23: error: expected 
primary-expression before '>' token

 .def(py::init<>())
   ^
build/X86/python/_m5/param_DRAMCtrl.cc:60:25: error: expected 
primary-expression before ')' token

 .def(py::init<>())
 ^
build/X86/python/_m5/param_DRAMCtrl.cc:132:5: error: 'py' is not a 
class, namespace, or enumeration
 py::class_py::nodelete>>(m, "DRAMCtrl")

 ^
build/X86/python/_m5/param_DRAMCtrl.cc:132:24: error: expected 
primary-expression before ',' token
 py::class_py::nodelete>>(m, "DRAMCtrl")

    ^
build/X86/python/_m5/param_DRAMCtrl.cc:132:40: error: expected 
primary-expression before ',' token
 py::class_py::nodelete>>(m, "DRAMCtrl")

  ^
build/X86/python/_m5/param_DRAMCtrl.cc:132:68: error: the value of 
'py' is not usable in a constant expression
 py::class_py::nodelete>>(m, "DRAMCtrl")

^
build/X86/python/_m5/param_DRAMCtrl.cc:59:86: note: 'py' was not 
declared 'constexpr'
 py::class_std::unique_ptr>(m, "

^
build/X86/python/_m5/param_DRAMCtrl.cc:132:80: error: type/value 
mismatch at argument 2 in template parameter list for 'template_Tp, class _Dp> class std::unique_ptr'
 py::class_py::nodelete>>(m, "DRAMCtrl")

^
build/X86/python/_m5/param_DRAMCtrl.cc:132:80: note: expected a type, 
got 'py'

build/X86/python/_m5/param_DRAMCtrl.cc: At global scope:
build/X86/python/_m5/param_DRAMCtrl.cc:135:1: error: expected 
unqualified-id at end of input

 };
 ^
scons: *** [build/X86/python/_m5/param_DRAMCtrl.o] Error 1
scons: building terminated because of errors.


--
Mao Ye,


___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users




smime.p7s
Description: S/MIME Cryptographic Signature
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Compilation error

2018-06-05 Thread Ciro Santilli
Does it happen on a full clean build? What is your gem5 git revision?
What is your OS? What is your compiler version? :-)

On Mon, Jun 4, 2018 at 9:44 PM, Mao Ye  wrote:
> Hi all,
>
> I have been using gem5 for a while without any problem. But today I met a
> problem with my new modification and it failed at compilation stage.
> However, I diff the following file with the one under another directory of
> mine, showing no difference at all. So what might be the reason causing so
> many errors?  Any suggestion will be appreciated.
>
> The error message is as below :
>
> [VER TAGS]  -> X86/sim/tags.cc
> [ CXX] X86/python/_m5/param_DRAMCtrl.cc -> .o
> build/X86/python/_m5/param_DRAMCtrl.cc:53:1: error: expected unqualified-id
> before 'namespace'
>  namespace py = pybind11;
>  ^
> build/X86/python/_m5/param_DRAMCtrl.cc:56:13: error: 'py' has not been
> declared
>  module_init(py::module &m_internal)
>  ^
> build/X86/python/_m5/param_DRAMCtrl.cc:56:24: error: expected ',' or '...'
> before '&' token
>  module_init(py::module &m_internal)
> ^
> build/X86/python/_m5/param_DRAMCtrl.cc:137:33: error: expected identifier
> before string constant
>  static EmbeddedPyBind embed_obj("DRAMCtrl", module_init, "AbstractMemory");
>  ^
> build/X86/python/_m5/param_DRAMCtrl.cc:137:33: error: expected ',' or '...'
> before string constant
> build/X86/python/_m5/param_DRAMCtrl.cc:137:75: error: expected '}' at end of
> input
>  static EmbeddedPyBind embed_obj("DRAMCtrl", module_init, "AbstractMemory");
>^
> build/X86/python/_m5/param_DRAMCtrl.cc: In static member function 'static
> void FECache::module_init(int)':
> build/X86/python/_m5/param_DRAMCtrl.cc:58:5: error: 'py' has not been
> declared
>  py::module m = m_internal.def_submodule("param_DRAMCtrl");
>  ^
> build/X86/python/_m5/param_DRAMCtrl.cc:59:5: error: 'py' has not been
> declared
>  py::class_ std::unique_ptr>(m, "
>  ^
> build/X86/python/_m5/param_DRAMCtrl.cc:59:30: error: expected
> primary-expression before ',' token
>  py::class_ std::unique_ptr>(m, "
>   ^
> build/X86/python/_m5/param_DRAMCtrl.cc:59:52: error: expected
> primary-expression before ',' token
>  py::class_ std::unique_ptr>(m, "
> ^
> build/X86/python/_m5/param_DRAMCtrl.cc:59:86: error: 'py' was not declared
> in this scope
>  py::class_ std::unique_ptr>(m, "
>
> ^
> build/X86/python/_m5/param_DRAMCtrl.cc:59:98: error: template argument 2 is
> invalid
>  py::class_ std::unique_ptr>(m, "DRAM
>
> ^
> build/X86/python/_m5/param_DRAMCtrl.cc:59:101: error: 'm' was not declared
> in this scope
>  :class_ std::unique_ptr>(m, "DRAMCtr
>
> ^
> build/X86/python/_m5/param_DRAMCtrl.cc:60:14: error: 'py' is not a class,
> namespace, or enumeration
>  .def(py::init<>())
>   ^
> build/X86/python/_m5/param_DRAMCtrl.cc:60:23: error: expected
> primary-expression before '>' token
>  .def(py::init<>())
>^
> build/X86/python/_m5/param_DRAMCtrl.cc:60:25: error: expected
> primary-expression before ')' token
>  .def(py::init<>())
>  ^
> build/X86/python/_m5/param_DRAMCtrl.cc:132:5: error: 'py' is not a class,
> namespace, or enumeration
>  py::class_ py::nodelete>>(m, "DRAMCtrl")
>  ^
> build/X86/python/_m5/param_DRAMCtrl.cc:132:24: error: expected
> primary-expression before ',' token
>  py::class_ py::nodelete>>(m, "DRAMCtrl")
> ^
> build/X86/python/_m5/param_DRAMCtrl.cc:132:40: error: expected
> primary-expression before ',' token
>  py::class_ py::nodelete>>(m, "DRAMCtrl")
> ^
> build/X86/python/_m5/param_DRAMCtrl.cc:132:68: error: the value of 'py' is
> not usable in a constant expression
>  py::class_ py::nodelete>>(m, "DRAMCtrl")
> ^
> build/X86/python/_m5/param_DRAMCtrl.cc:59:86: note: 'py' was not declared
> 'constexpr'
>  py::class_ std::unique_ptr>(m, "
>
> ^
> build/X86/python/_m5/param_DRAMCtrl.cc:132:80: error: type/value mismatch at
> argument 2 in template parameter list for 'template
> class std::unique_ptr'
>  py::class_ py::nodelete>>(m, "DRAMCtrl")
>
> ^
> build/X86/python/_m5/param_DRAMCtrl.cc:132:80: note:   expected a type, got
> 'py'
> build/X86/python/_m5/param_DRAMCtrl.cc: At global scope:
> build/X86/python/_m5/param_DRAMCtrl.cc:135:1: error: expected unqualified-id
> at end of input
>  };
>  ^
> scons: *** [build/X86/python/_m5/param_DRAMCtrl.o] Error 1
> scons: building terminated because of errors.
>
>
> --
> Mao Ye,
>
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_

[gem5-users] Compilation error

2018-06-04 Thread Mao Ye
Hi all,

I have been using gem5 for a while without any problem. But today I met a
problem with my new modification and it failed at compilation stage.
However, I diff the following file with the one under another directory of
mine, showing no difference at all. So what might be the reason causing so
many errors?  Any suggestion will be appreciated.

The error message is as below :

[VER TAGS]  -> X86/sim/tags.cc
[ CXX] X86/python/_m5/param_DRAMCtrl.cc -> .o
build/X86/python/_m5/param_DRAMCtrl.cc:53:1: error: expected unqualified-id
before 'namespace'
 namespace py = pybind11;
 ^
build/X86/python/_m5/param_DRAMCtrl.cc:56:13: error: 'py' has not been
declared
 module_init(py::module &m_internal)
 ^
build/X86/python/_m5/param_DRAMCtrl.cc:56:24: error: expected ',' or '...'
before '&' token
 module_init(py::module &m_internal)
^
build/X86/python/_m5/param_DRAMCtrl.cc:137:33: error: expected identifier
before string constant
 static EmbeddedPyBind embed_obj("DRAMCtrl", module_init, "AbstractMemory");
 ^
build/X86/python/_m5/param_DRAMCtrl.cc:137:33: error: expected ',' or '...'
before string constant
build/X86/python/_m5/param_DRAMCtrl.cc:137:75: error: expected '}' at end
of input
 static EmbeddedPyBind embed_obj("DRAMCtrl", module_init, "AbstractMemory");
   ^
build/X86/python/_m5/param_DRAMCtrl.cc: In static member function 'static
void FECache::module_init(int)':
build/X86/python/_m5/param_DRAMCtrl.cc:58:5: error: 'py' has not been
declared
 py::module m = m_internal.def_submodule("param_DRAMCtrl");
 ^
build/X86/python/_m5/param_DRAMCtrl.cc:59:5: error: 'py' has not been
declared
 py::class_>(m, "
 ^
build/X86/python/_m5/param_DRAMCtrl.cc:59:30: error: expected
primary-expression before ',' token
 py::class_>(m, "
  ^
build/X86/python/_m5/param_DRAMCtrl.cc:59:52: error: expected
primary-expression before ',' token
 py::class_>(m, "
^
build/X86/python/_m5/param_DRAMCtrl.cc:59:86: error: 'py' was not declared
in this scope
 py::class_>(m, "

^
build/X86/python/_m5/param_DRAMCtrl.cc:59:98: error: template argument 2 is
invalid
 py::class_>(m, "DRAM

  ^
build/X86/python/_m5/param_DRAMCtrl.cc:59:101: error: 'm' was not declared
in this scope
 :class_>(m, "DRAMCtr

  ^
build/X86/python/_m5/param_DRAMCtrl.cc:60:14: error: 'py' is not a class,
namespace, or enumeration
 .def(py::init<>())
  ^
build/X86/python/_m5/param_DRAMCtrl.cc:60:23: error: expected
primary-expression before '>' token
 .def(py::init<>())
   ^
build/X86/python/_m5/param_DRAMCtrl.cc:60:25: error: expected
primary-expression before ')' token
 .def(py::init<>())
 ^
build/X86/python/_m5/param_DRAMCtrl.cc:132:5: error: 'py' is not a class,
namespace, or enumeration
 py::class_>(m, "DRAMCtrl")
 ^
build/X86/python/_m5/param_DRAMCtrl.cc:132:24: error: expected
primary-expression before ',' token
 py::class_>(m, "DRAMCtrl")
^
build/X86/python/_m5/param_DRAMCtrl.cc:132:40: error: expected
primary-expression before ',' token
 py::class_>(m, "DRAMCtrl")
^
build/X86/python/_m5/param_DRAMCtrl.cc:132:68: error: the value of 'py' is
not usable in a constant expression
 py::class_>(m, "DRAMCtrl")
^
build/X86/python/_m5/param_DRAMCtrl.cc:59:86: note: 'py' was not declared
'constexpr'
 py::class_>(m, "

^
build/X86/python/_m5/param_DRAMCtrl.cc:132:80: error: type/value mismatch
at argument 2 in template parameter list for 'template class std::unique_ptr'
 py::class_>(m, "DRAMCtrl")

^
build/X86/python/_m5/param_DRAMCtrl.cc:132:80: note:   expected a type, got
'py'
build/X86/python/_m5/param_DRAMCtrl.cc: At global scope:
build/X86/python/_m5/param_DRAMCtrl.cc:135:1: error: expected
unqualified-id at end of input
 };
 ^
scons: *** [build/X86/python/_m5/param_DRAMCtrl.o] Error 1
scons: building terminated because of errors.


-- 
Mao Ye,
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Compilation error main SConstruct

2015-12-04 Thread Andreas Hansson
Hi Marcos,

You don’t seem to be using an up-to-date gem5 repo. This issue should be
resolved.

Andreas

On 04/12/2015, 05:39, "gem5-users on behalf of Marcos Horro Varela"
 wrote:

>Hello all,
>
>I have updated my computer to Fedora 22 and gem5 stopped compiling. The
>error that I get when I want to compile is:
>
>$ scons build/X86/gem5.opt
>scons: Reading SConscript files ...
>AttributeError: 'NoneType' object has no attribute 'group':
>  File "./gem5/SConstruct", line 605:
>if not as_version or compareVersions(as_version[-1], "2.23") < 0:
>  File "./gem5/src/python/m5/util/__init__.py", line 120:
>v1 = make_version_list(v1)
>  File "./gem5/src/python/m5/util/__init__.py", line 116:
>return map(lambda x: int(re.match('\d+', x).group()), v.split('.'))
>  File "./gem5/src/python/m5/util/__init__.py", line 116:
>return map(lambda x: int(re.match('\d+', x).group()), v.split('.'))
>
>My Python version is 2.10.7, my scons version is 2.3.4 and my gcc version
>is 5.1.1. I have tried with different SConstruct versions and still not
>compiling, any idea? I know what the error means but I do not understand
>why I get it, since it works in other linux enviroments. (My repo
>https://github.com/markoshorro/gem5/)
>
>Regards
>
>--
>Marcos Horro Varela,
>BSc student
>University of A Coruña
>http://markos-horro.com
>___
>gem5-users mailing list
>gem5-users@gem5.org
>http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] Compilation error main SConstruct

2015-12-03 Thread Marcos Horro Varela
Hello all,

I have updated my computer to Fedora 22 and gem5 stopped compiling. The error 
that I get when I want to compile is:

$ scons build/X86/gem5.opt
scons: Reading SConscript files ...
AttributeError: 'NoneType' object has no attribute 'group':
  File "./gem5/SConstruct", line 605:
if not as_version or compareVersions(as_version[-1], "2.23") < 0:
  File "./gem5/src/python/m5/util/__init__.py", line 120:
v1 = make_version_list(v1)
  File "./gem5/src/python/m5/util/__init__.py", line 116:
return map(lambda x: int(re.match('\d+', x).group()), v.split('.'))
  File "./gem5/src/python/m5/util/__init__.py", line 116:
return map(lambda x: int(re.match('\d+', x).group()), v.split('.'))

My Python version is 2.10.7, my scons version is 2.3.4 and my gcc version is 
5.1.1. I have tried with different SConstruct versions and still not compiling, 
any idea? I know what the error means but I do not understand why I get it, 
since it works in other linux enviroments. (My repo 
https://github.com/markoshorro/gem5/)

Regards

-- 
Marcos Horro Varela,
BSc student
University of A Coruña
http://markos-horro.com
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Compilation Error

2013-07-11 Thread Zheng Wu
Hi,

I've fixed the compilation problem by updating SWIG to version 2.0.4

Thanks

On 2013-07-10, at 1:47 PM, Zheng Wu  wrote:

> Hi,
> 
> I am not too familiar with how the swig *.i files work, where should I add 
> the changes?
> 
> Right at the top before:  %module(package="m5.internal") stats ??
> 
> Thanks,
> Zheng
> 
> On 2013-07-10, at 1:43 PM, Andreas Hansson  wrote:
> 
>> I just noticed that we solved this for the SimObject but not the stats
>> wrapper. Could you try adding:
>> 
>> #include 
>> using std::ptrdiff_t;
>> 
>> to src/python/swig/stats.i.
>> 
>> Thanks,
>> 
>> Andreas
>> 
>> On 10/07/2013 18:27, "Zheng Wu"  wrote:
>> 
>>> Hi,
>>> 
>>> I've used this version of SWIG for and older version of gem5 (changeset:
>>> 9350:ddb946b131c8) and it works fine. It's just for the most current
>>> version of gem5.
>>> 
>>> I could update my SWIG to 2.0.4 but I also want it to be backward
>>> compatible with the older version of gem5, would the new version of swig
>>> be a problem for older gem5?
>>> 
>>> Thanks,
>>> Zheng Wu
>>> 
>>> On 2013-07-10, at 12:15 PM, Andreas Hansson 
>>> wrote:
>>> 
 I suspect it is the combination of an old version of swig and a recent
 version of gcc that is causing the issue. Do you have the possibility of
 using swig 2.0.4 by any chance?
 
 Andreas
 
 On 10/07/2013 17:10, "Zheng Wu"  wrote:
 
> Hi Andreas,
> 
> I am using the latest version of gem5 dev (change set:
> 9803:86b426640960)
> and SWIG 1.3.40.
> 
> Thanks
> 
> On 2013-07-10, at 12:07 PM, Andreas Hansson 
> wrote:
> 
>> What version of gem5 and swig are you using?
>> 
>> On 10/07/2013 15:18, "Zheng Wu"  wrote:
>> 
>>> Hi,
>>> 
>>> I am getting the following errors instead now when I compile (scons
>>> build/X86/gem5.debug):
>>> 
>>> build/X86/python/swig/stats_wrap.cc:2883:13: error: 'ptrdiff_t' does
>>> not
>>> name a type
>>> build/X86/python/swig/stats_wrap.cc:2920:21: error: expected ';' at
>>> end
>>> of member declaration
>>> build/X86/python/swig/stats_wrap.cc:2920:39: error: expected ')'
>>> before
>>> 'n'
>>> build/X86/python/swig/stats_wrap.cc:2935:34: error: declaration of
>>> 'operator+=' as non-function
>>> build/X86/python/swig/stats_wrap.cc:2935:30: error: expected ';' at
>>> end
>>> of member declaration
>>> build/X86/python/swig/stats_wrap.cc:2935:44: error: expected ')'
>>> before
>>> 'n'
>>> build/X86/python/swig/stats_wrap.cc:2940:34: error: declaration of
>>> 'operator-=' as non-function
>>> build/X86/python/swig/stats_wrap.cc:2940:30: error: expected ';' at
>>> end
>>> of member declaration
>>> build/X86/python/swig/stats_wrap.cc:2940:44: error: expected ')'
>>> before
>>> 'n'
>>> build/X86/python/swig/stats_wrap.cc:2945:33: error: declaration of
>>> 'operator+' as non-function
>>> build/X86/python/swig/stats_wrap.cc:2945:30: error: expected ';' at
>>> end
>>> of member declaration
>>> build/X86/python/swig/stats_wrap.cc:2945:43: error: expected ')'
>>> before
>>> 'n'
>>> build/X86/python/swig/stats_wrap.cc:2950:33: error: declaration of
>>> 'operator-' as non-function
>>> build/X86/python/swig/stats_wrap.cc:2950:30: error: expected ';' at
>>> end
>>> of member declaration
>>> build/X86/python/swig/stats_wrap.cc:2950:43: error: expected ')'
>>> before
>>> 'n'
>>> build/X86/python/swig/stats_wrap.cc:2955:5: error: 'ptrdiff_t' does
>>> not
>>> name a type
>>> build/X86/python/swig/stats_wrap.cc:3111:23: error:
>>> 'SWIG_From_ptrdiff_t'
>>> declared as an 'inline' variable
>>> build/X86/python/swig/stats_wrap.cc:3111:23: error: 'ptrdiff_t' was
>>> not
>>> declared in this scope
>>> build/X86/python/swig/stats_wrap.cc:3111:23: note: suggested
>>> alternatives:
>>> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28:
>>> note:
>>> 'std::ptrdiff_t'
>>> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28:
>>> note:
>>> 'std::ptrdiff_t'
>>> build/X86/python/swig/stats_wrap.cc:3112:1: error: expected ',' or
>>> ';'
>>> before '{' token
>>> build/X86/python/swig/stats_wrap.cc:3164:39: error: 'ptrdiff_t' has
>>> not
>>> been declared
>>> build/X86/python/swig/stats_wrap.cc: In function 'int
>>> SWIG_AsVal_ptrdiff_t(PyObject*, int*)':
>>> build/X86/python/swig/stats_wrap.cc:3168:50: error: expected
>>> type-specifier before 'ptrdiff_t'
>>> build/X86/python/swig/stats_wrap.cc:3168:50: error: expected '>'
>>> before
>>> 'ptrdiff_t'
>>> build/X86/python/swig/stats_wrap.cc:3168:50: error: expected '('
>>> before
>>> 'ptrdiff_t'
>>> build/X86/python/swig/stats_wrap.cc:3168:50: error: 'ptrdiff_t' was
>>> not
>>> declared in this scope
>>> build/X86/python/swig/stats_

Re: [gem5-users] Compilation Error

2013-07-10 Thread Zheng Wu
Hi,

I am not too familiar with how the swig *.i files work, where should I add the 
changes?

Right at the top before:  %module(package="m5.internal") stats ??

Thanks,
Zheng

On 2013-07-10, at 1:43 PM, Andreas Hansson  wrote:

> I just noticed that we solved this for the SimObject but not the stats
> wrapper. Could you try adding:
> 
> #include 
> using std::ptrdiff_t;
> 
> to src/python/swig/stats.i.
> 
> Thanks,
> 
> Andreas
> 
> On 10/07/2013 18:27, "Zheng Wu"  wrote:
> 
>> Hi,
>> 
>> I've used this version of SWIG for and older version of gem5 (changeset:
>> 9350:ddb946b131c8) and it works fine. It's just for the most current
>> version of gem5.
>> 
>> I could update my SWIG to 2.0.4 but I also want it to be backward
>> compatible with the older version of gem5, would the new version of swig
>> be a problem for older gem5?
>> 
>> Thanks,
>> Zheng Wu
>> 
>> On 2013-07-10, at 12:15 PM, Andreas Hansson 
>> wrote:
>> 
>>> I suspect it is the combination of an old version of swig and a recent
>>> version of gcc that is causing the issue. Do you have the possibility of
>>> using swig 2.0.4 by any chance?
>>> 
>>> Andreas
>>> 
>>> On 10/07/2013 17:10, "Zheng Wu"  wrote:
>>> 
 Hi Andreas,
 
 I am using the latest version of gem5 dev (change set:
 9803:86b426640960)
 and SWIG 1.3.40.
 
 Thanks
 
 On 2013-07-10, at 12:07 PM, Andreas Hansson 
 wrote:
 
> What version of gem5 and swig are you using?
> 
> On 10/07/2013 15:18, "Zheng Wu"  wrote:
> 
>> Hi,
>> 
>> I am getting the following errors instead now when I compile (scons
>> build/X86/gem5.debug):
>> 
>> build/X86/python/swig/stats_wrap.cc:2883:13: error: 'ptrdiff_t' does
>> not
>> name a type
>> build/X86/python/swig/stats_wrap.cc:2920:21: error: expected ';' at
>> end
>> of member declaration
>> build/X86/python/swig/stats_wrap.cc:2920:39: error: expected ')'
>> before
>> 'n'
>> build/X86/python/swig/stats_wrap.cc:2935:34: error: declaration of
>> 'operator+=' as non-function
>> build/X86/python/swig/stats_wrap.cc:2935:30: error: expected ';' at
>> end
>> of member declaration
>> build/X86/python/swig/stats_wrap.cc:2935:44: error: expected ')'
>> before
>> 'n'
>> build/X86/python/swig/stats_wrap.cc:2940:34: error: declaration of
>> 'operator-=' as non-function
>> build/X86/python/swig/stats_wrap.cc:2940:30: error: expected ';' at
>> end
>> of member declaration
>> build/X86/python/swig/stats_wrap.cc:2940:44: error: expected ')'
>> before
>> 'n'
>> build/X86/python/swig/stats_wrap.cc:2945:33: error: declaration of
>> 'operator+' as non-function
>> build/X86/python/swig/stats_wrap.cc:2945:30: error: expected ';' at
>> end
>> of member declaration
>> build/X86/python/swig/stats_wrap.cc:2945:43: error: expected ')'
>> before
>> 'n'
>> build/X86/python/swig/stats_wrap.cc:2950:33: error: declaration of
>> 'operator-' as non-function
>> build/X86/python/swig/stats_wrap.cc:2950:30: error: expected ';' at
>> end
>> of member declaration
>> build/X86/python/swig/stats_wrap.cc:2950:43: error: expected ')'
>> before
>> 'n'
>> build/X86/python/swig/stats_wrap.cc:2955:5: error: 'ptrdiff_t' does
>> not
>> name a type
>> build/X86/python/swig/stats_wrap.cc:3111:23: error:
>> 'SWIG_From_ptrdiff_t'
>> declared as an 'inline' variable
>> build/X86/python/swig/stats_wrap.cc:3111:23: error: 'ptrdiff_t' was
>> not
>> declared in this scope
>> build/X86/python/swig/stats_wrap.cc:3111:23: note: suggested
>> alternatives:
>> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28:
>> note:
>> 'std::ptrdiff_t'
>> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28:
>> note:
>> 'std::ptrdiff_t'
>> build/X86/python/swig/stats_wrap.cc:3112:1: error: expected ',' or
>> ';'
>> before '{' token
>> build/X86/python/swig/stats_wrap.cc:3164:39: error: 'ptrdiff_t' has
>> not
>> been declared
>> build/X86/python/swig/stats_wrap.cc: In function 'int
>> SWIG_AsVal_ptrdiff_t(PyObject*, int*)':
>> build/X86/python/swig/stats_wrap.cc:3168:50: error: expected
>> type-specifier before 'ptrdiff_t'
>> build/X86/python/swig/stats_wrap.cc:3168:50: error: expected '>'
>> before
>> 'ptrdiff_t'
>> build/X86/python/swig/stats_wrap.cc:3168:50: error: expected '('
>> before
>> 'ptrdiff_t'
>> build/X86/python/swig/stats_wrap.cc:3168:50: error: 'ptrdiff_t' was
>> not
>> declared in this scope
>> build/X86/python/swig/stats_wrap.cc:3168:50: note: suggested
>> alternatives:
>> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28:
>> note:
>> 'std::ptrdiff_t'
>> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28:
>> note:
>> 'std::ptrdiff_t'
>> build/X86

Re: [gem5-users] Compilation Error

2013-07-10 Thread Andreas Hansson
I just noticed that we solved this for the SimObject but not the stats
wrapper. Could you try adding:

#include 
using std::ptrdiff_t;

to src/python/swig/stats.i.

Thanks,

Andreas

On 10/07/2013 18:27, "Zheng Wu"  wrote:

>Hi,
>
>I've used this version of SWIG for and older version of gem5 (changeset:
> 9350:ddb946b131c8) and it works fine. It's just for the most current
>version of gem5.
>
>I could update my SWIG to 2.0.4 but I also want it to be backward
>compatible with the older version of gem5, would the new version of swig
>be a problem for older gem5?
>
>Thanks,
>Zheng Wu
>
>On 2013-07-10, at 12:15 PM, Andreas Hansson 
>wrote:
>
>> I suspect it is the combination of an old version of swig and a recent
>> version of gcc that is causing the issue. Do you have the possibility of
>> using swig 2.0.4 by any chance?
>>
>> Andreas
>>
>> On 10/07/2013 17:10, "Zheng Wu"  wrote:
>>
>>> Hi Andreas,
>>>
>>> I am using the latest version of gem5 dev (change set:
>>>9803:86b426640960)
>>> and SWIG 1.3.40.
>>>
>>> Thanks
>>>
>>> On 2013-07-10, at 12:07 PM, Andreas Hansson 
>>> wrote:
>>>
 What version of gem5 and swig are you using?

 On 10/07/2013 15:18, "Zheng Wu"  wrote:

> Hi,
>
> I am getting the following errors instead now when I compile (scons
> build/X86/gem5.debug):
>
> build/X86/python/swig/stats_wrap.cc:2883:13: error: 'ptrdiff_t' does
> not
> name a type
> build/X86/python/swig/stats_wrap.cc:2920:21: error: expected ';' at
>end
> of member declaration
> build/X86/python/swig/stats_wrap.cc:2920:39: error: expected ')'
>before
> 'n'
> build/X86/python/swig/stats_wrap.cc:2935:34: error: declaration of
> 'operator+=' as non-function
> build/X86/python/swig/stats_wrap.cc:2935:30: error: expected ';' at
>end
> of member declaration
> build/X86/python/swig/stats_wrap.cc:2935:44: error: expected ')'
>before
> 'n'
> build/X86/python/swig/stats_wrap.cc:2940:34: error: declaration of
> 'operator-=' as non-function
> build/X86/python/swig/stats_wrap.cc:2940:30: error: expected ';' at
>end
> of member declaration
> build/X86/python/swig/stats_wrap.cc:2940:44: error: expected ')'
>before
> 'n'
> build/X86/python/swig/stats_wrap.cc:2945:33: error: declaration of
> 'operator+' as non-function
> build/X86/python/swig/stats_wrap.cc:2945:30: error: expected ';' at
>end
> of member declaration
> build/X86/python/swig/stats_wrap.cc:2945:43: error: expected ')'
>before
> 'n'
> build/X86/python/swig/stats_wrap.cc:2950:33: error: declaration of
> 'operator-' as non-function
> build/X86/python/swig/stats_wrap.cc:2950:30: error: expected ';' at
>end
> of member declaration
> build/X86/python/swig/stats_wrap.cc:2950:43: error: expected ')'
>before
> 'n'
> build/X86/python/swig/stats_wrap.cc:2955:5: error: 'ptrdiff_t' does
>not
> name a type
> build/X86/python/swig/stats_wrap.cc:3111:23: error:
> 'SWIG_From_ptrdiff_t'
> declared as an 'inline' variable
> build/X86/python/swig/stats_wrap.cc:3111:23: error: 'ptrdiff_t' was
>not
> declared in this scope
> build/X86/python/swig/stats_wrap.cc:3111:23: note: suggested
> alternatives:
> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28:
>note:
> 'std::ptrdiff_t'
> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28:
>note:
> 'std::ptrdiff_t'
> build/X86/python/swig/stats_wrap.cc:3112:1: error: expected ',' or
>';'
> before '{' token
> build/X86/python/swig/stats_wrap.cc:3164:39: error: 'ptrdiff_t' has
>not
> been declared
> build/X86/python/swig/stats_wrap.cc: In function 'int
> SWIG_AsVal_ptrdiff_t(PyObject*, int*)':
> build/X86/python/swig/stats_wrap.cc:3168:50: error: expected
> type-specifier before 'ptrdiff_t'
> build/X86/python/swig/stats_wrap.cc:3168:50: error: expected '>'
>before
> 'ptrdiff_t'
> build/X86/python/swig/stats_wrap.cc:3168:50: error: expected '('
>before
> 'ptrdiff_t'
> build/X86/python/swig/stats_wrap.cc:3168:50: error: 'ptrdiff_t' was
>not
> declared in this scope
> build/X86/python/swig/stats_wrap.cc:3168:50: note: suggested
> alternatives:
> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28:
>note:
> 'std::ptrdiff_t'
> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28:
>note:
> 'std::ptrdiff_t'
> build/X86/python/swig/stats_wrap.cc:3168:64: error: expected ')'
>before
> ';' token
> build/X86/python/swig/stats_wrap.cc: At global scope:
> build/X86/python/swig/stats_wrap.cc:3862:15: error:
>'swig::check_index'
> declared as an 'inline' variable
> build/X86/python/swig/stats_wrap.cc:3862:15: error: 'ptrdiff_t' was
>not
> declared in this scope
> build/X86/python/swig/stats_wrap.cc:3862:15: note: 

Re: [gem5-users] Compilation Error

2013-07-10 Thread Zheng Wu
Hi,

I've used this version of SWIG for and older version of gem5 (changeset:   
9350:ddb946b131c8) and it works fine. It's just for the most current version of 
gem5.

I could update my SWIG to 2.0.4 but I also want it to be backward compatible 
with the older version of gem5, would the new version of swig be a problem for 
older gem5?

Thanks,
Zheng Wu

On 2013-07-10, at 12:15 PM, Andreas Hansson  wrote:

> I suspect it is the combination of an old version of swig and a recent
> version of gcc that is causing the issue. Do you have the possibility of
> using swig 2.0.4 by any chance?
> 
> Andreas
> 
> On 10/07/2013 17:10, "Zheng Wu"  wrote:
> 
>> Hi Andreas,
>> 
>> I am using the latest version of gem5 dev (change set: 9803:86b426640960)
>> and SWIG 1.3.40.
>> 
>> Thanks
>> 
>> On 2013-07-10, at 12:07 PM, Andreas Hansson 
>> wrote:
>> 
>>> What version of gem5 and swig are you using?
>>> 
>>> On 10/07/2013 15:18, "Zheng Wu"  wrote:
>>> 
 Hi,
 
 I am getting the following errors instead now when I compile (scons
 build/X86/gem5.debug):
 
 build/X86/python/swig/stats_wrap.cc:2883:13: error: 'ptrdiff_t' does
 not
 name a type
 build/X86/python/swig/stats_wrap.cc:2920:21: error: expected ';' at end
 of member declaration
 build/X86/python/swig/stats_wrap.cc:2920:39: error: expected ')' before
 'n'
 build/X86/python/swig/stats_wrap.cc:2935:34: error: declaration of
 'operator+=' as non-function
 build/X86/python/swig/stats_wrap.cc:2935:30: error: expected ';' at end
 of member declaration
 build/X86/python/swig/stats_wrap.cc:2935:44: error: expected ')' before
 'n'
 build/X86/python/swig/stats_wrap.cc:2940:34: error: declaration of
 'operator-=' as non-function
 build/X86/python/swig/stats_wrap.cc:2940:30: error: expected ';' at end
 of member declaration
 build/X86/python/swig/stats_wrap.cc:2940:44: error: expected ')' before
 'n'
 build/X86/python/swig/stats_wrap.cc:2945:33: error: declaration of
 'operator+' as non-function
 build/X86/python/swig/stats_wrap.cc:2945:30: error: expected ';' at end
 of member declaration
 build/X86/python/swig/stats_wrap.cc:2945:43: error: expected ')' before
 'n'
 build/X86/python/swig/stats_wrap.cc:2950:33: error: declaration of
 'operator-' as non-function
 build/X86/python/swig/stats_wrap.cc:2950:30: error: expected ';' at end
 of member declaration
 build/X86/python/swig/stats_wrap.cc:2950:43: error: expected ')' before
 'n'
 build/X86/python/swig/stats_wrap.cc:2955:5: error: 'ptrdiff_t' does not
 name a type
 build/X86/python/swig/stats_wrap.cc:3111:23: error:
 'SWIG_From_ptrdiff_t'
 declared as an 'inline' variable
 build/X86/python/swig/stats_wrap.cc:3111:23: error: 'ptrdiff_t' was not
 declared in this scope
 build/X86/python/swig/stats_wrap.cc:3111:23: note: suggested
 alternatives:
 /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:
 'std::ptrdiff_t'
 /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:
 'std::ptrdiff_t'
 build/X86/python/swig/stats_wrap.cc:3112:1: error: expected ',' or ';'
 before '{' token
 build/X86/python/swig/stats_wrap.cc:3164:39: error: 'ptrdiff_t' has not
 been declared
 build/X86/python/swig/stats_wrap.cc: In function 'int
 SWIG_AsVal_ptrdiff_t(PyObject*, int*)':
 build/X86/python/swig/stats_wrap.cc:3168:50: error: expected
 type-specifier before 'ptrdiff_t'
 build/X86/python/swig/stats_wrap.cc:3168:50: error: expected '>' before
 'ptrdiff_t'
 build/X86/python/swig/stats_wrap.cc:3168:50: error: expected '(' before
 'ptrdiff_t'
 build/X86/python/swig/stats_wrap.cc:3168:50: error: 'ptrdiff_t' was not
 declared in this scope
 build/X86/python/swig/stats_wrap.cc:3168:50: note: suggested
 alternatives:
 /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:
 'std::ptrdiff_t'
 /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:
 'std::ptrdiff_t'
 build/X86/python/swig/stats_wrap.cc:3168:64: error: expected ')' before
 ';' token
 build/X86/python/swig/stats_wrap.cc: At global scope:
 build/X86/python/swig/stats_wrap.cc:3862:15: error: 'swig::check_index'
 declared as an 'inline' variable
 build/X86/python/swig/stats_wrap.cc:3862:15: error: 'ptrdiff_t' was not
 declared in this scope
 build/X86/python/swig/stats_wrap.cc:3862:15: note: suggested
 alternatives:
 /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:
 'std::ptrdiff_t'
 /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:
 'std::ptrdiff_t'
 build/X86/python/swig/stats_wrap.cc:3862:35: error: expected
 primary-expression before 'size'
 build/X86/python/swig/stats_wrap.cc:3862:41: error: expected
 primary-expression before 'bool'
 build/X8

Re: [gem5-users] Compilation Error

2013-07-10 Thread Andreas Hansson
I suspect it is the combination of an old version of swig and a recent
version of gcc that is causing the issue. Do you have the possibility of
using swig 2.0.4 by any chance?

Andreas

On 10/07/2013 17:10, "Zheng Wu"  wrote:

>Hi Andreas,
>
>I am using the latest version of gem5 dev (change set: 9803:86b426640960)
>and SWIG 1.3.40.
>
>Thanks
>
>On 2013-07-10, at 12:07 PM, Andreas Hansson 
>wrote:
>
>> What version of gem5 and swig are you using?
>>
>> On 10/07/2013 15:18, "Zheng Wu"  wrote:
>>
>>> Hi,
>>>
>>> I am getting the following errors instead now when I compile (scons
>>> build/X86/gem5.debug):
>>>
>>> build/X86/python/swig/stats_wrap.cc:2883:13: error: 'ptrdiff_t' does
>>>not
>>> name a type
>>> build/X86/python/swig/stats_wrap.cc:2920:21: error: expected ';' at end
>>> of member declaration
>>> build/X86/python/swig/stats_wrap.cc:2920:39: error: expected ')' before
>>> 'n'
>>> build/X86/python/swig/stats_wrap.cc:2935:34: error: declaration of
>>> 'operator+=' as non-function
>>> build/X86/python/swig/stats_wrap.cc:2935:30: error: expected ';' at end
>>> of member declaration
>>> build/X86/python/swig/stats_wrap.cc:2935:44: error: expected ')' before
>>> 'n'
>>> build/X86/python/swig/stats_wrap.cc:2940:34: error: declaration of
>>> 'operator-=' as non-function
>>> build/X86/python/swig/stats_wrap.cc:2940:30: error: expected ';' at end
>>> of member declaration
>>> build/X86/python/swig/stats_wrap.cc:2940:44: error: expected ')' before
>>> 'n'
>>> build/X86/python/swig/stats_wrap.cc:2945:33: error: declaration of
>>> 'operator+' as non-function
>>> build/X86/python/swig/stats_wrap.cc:2945:30: error: expected ';' at end
>>> of member declaration
>>> build/X86/python/swig/stats_wrap.cc:2945:43: error: expected ')' before
>>> 'n'
>>> build/X86/python/swig/stats_wrap.cc:2950:33: error: declaration of
>>> 'operator-' as non-function
>>> build/X86/python/swig/stats_wrap.cc:2950:30: error: expected ';' at end
>>> of member declaration
>>> build/X86/python/swig/stats_wrap.cc:2950:43: error: expected ')' before
>>> 'n'
>>> build/X86/python/swig/stats_wrap.cc:2955:5: error: 'ptrdiff_t' does not
>>> name a type
>>> build/X86/python/swig/stats_wrap.cc:3111:23: error:
>>>'SWIG_From_ptrdiff_t'
>>> declared as an 'inline' variable
>>> build/X86/python/swig/stats_wrap.cc:3111:23: error: 'ptrdiff_t' was not
>>> declared in this scope
>>> build/X86/python/swig/stats_wrap.cc:3111:23: note: suggested
>>>alternatives:
>>> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:
>>> 'std::ptrdiff_t'
>>> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:
>>> 'std::ptrdiff_t'
>>> build/X86/python/swig/stats_wrap.cc:3112:1: error: expected ',' or ';'
>>> before '{' token
>>> build/X86/python/swig/stats_wrap.cc:3164:39: error: 'ptrdiff_t' has not
>>> been declared
>>> build/X86/python/swig/stats_wrap.cc: In function 'int
>>> SWIG_AsVal_ptrdiff_t(PyObject*, int*)':
>>> build/X86/python/swig/stats_wrap.cc:3168:50: error: expected
>>> type-specifier before 'ptrdiff_t'
>>> build/X86/python/swig/stats_wrap.cc:3168:50: error: expected '>' before
>>> 'ptrdiff_t'
>>> build/X86/python/swig/stats_wrap.cc:3168:50: error: expected '(' before
>>> 'ptrdiff_t'
>>> build/X86/python/swig/stats_wrap.cc:3168:50: error: 'ptrdiff_t' was not
>>> declared in this scope
>>> build/X86/python/swig/stats_wrap.cc:3168:50: note: suggested
>>>alternatives:
>>> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:
>>> 'std::ptrdiff_t'
>>> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:
>>> 'std::ptrdiff_t'
>>> build/X86/python/swig/stats_wrap.cc:3168:64: error: expected ')' before
>>> ';' token
>>> build/X86/python/swig/stats_wrap.cc: At global scope:
>>> build/X86/python/swig/stats_wrap.cc:3862:15: error: 'swig::check_index'
>>> declared as an 'inline' variable
>>> build/X86/python/swig/stats_wrap.cc:3862:15: error: 'ptrdiff_t' was not
>>> declared in this scope
>>> build/X86/python/swig/stats_wrap.cc:3862:15: note: suggested
>>>alternatives:
>>> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:
>>> 'std::ptrdiff_t'
>>> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:
>>> 'std::ptrdiff_t'
>>> build/X86/python/swig/stats_wrap.cc:3862:35: error: expected
>>> primary-expression before 'size'
>>> build/X86/python/swig/stats_wrap.cc:3862:41: error: expected
>>> primary-expression before 'bool'
>>> build/X86/python/swig/stats_wrap.cc:3862:60: error: expression list
>>> treated as compound expression in initializer [-fpermissive]
>>> build/X86/python/swig/stats_wrap.cc:3862:62: error: expected ',' or ';'
>>> before '{' token
>>> build/X86/python/swig/stats_wrap.cc:17818:1: error: expected '}' at end
>>> of input
>>> scons: *** [build/X86/python/swig/stats_wrap.do] Error 1
>>> scons: building terminated because of errors.
>>>
>>>
>>>
>>> On 2013-07-10, at 10:00 AM, Zheng Wu  wrote:
>>>
 Sorry Please Ignore this emailŠI did something stupid..

Re: [gem5-users] Compilation Error

2013-07-10 Thread Zheng Wu
Hi Andreas,

I am using the latest version of gem5 dev (change set: 9803:86b426640960) and 
SWIG 1.3.40.

Thanks

On 2013-07-10, at 12:07 PM, Andreas Hansson  wrote:

> What version of gem5 and swig are you using?
> 
> On 10/07/2013 15:18, "Zheng Wu"  wrote:
> 
>> Hi,
>> 
>> I am getting the following errors instead now when I compile (scons
>> build/X86/gem5.debug):
>> 
>> build/X86/python/swig/stats_wrap.cc:2883:13: error: 'ptrdiff_t' does not
>> name a type
>> build/X86/python/swig/stats_wrap.cc:2920:21: error: expected ';' at end
>> of member declaration
>> build/X86/python/swig/stats_wrap.cc:2920:39: error: expected ')' before
>> 'n'
>> build/X86/python/swig/stats_wrap.cc:2935:34: error: declaration of
>> 'operator+=' as non-function
>> build/X86/python/swig/stats_wrap.cc:2935:30: error: expected ';' at end
>> of member declaration
>> build/X86/python/swig/stats_wrap.cc:2935:44: error: expected ')' before
>> 'n'
>> build/X86/python/swig/stats_wrap.cc:2940:34: error: declaration of
>> 'operator-=' as non-function
>> build/X86/python/swig/stats_wrap.cc:2940:30: error: expected ';' at end
>> of member declaration
>> build/X86/python/swig/stats_wrap.cc:2940:44: error: expected ')' before
>> 'n'
>> build/X86/python/swig/stats_wrap.cc:2945:33: error: declaration of
>> 'operator+' as non-function
>> build/X86/python/swig/stats_wrap.cc:2945:30: error: expected ';' at end
>> of member declaration
>> build/X86/python/swig/stats_wrap.cc:2945:43: error: expected ')' before
>> 'n'
>> build/X86/python/swig/stats_wrap.cc:2950:33: error: declaration of
>> 'operator-' as non-function
>> build/X86/python/swig/stats_wrap.cc:2950:30: error: expected ';' at end
>> of member declaration
>> build/X86/python/swig/stats_wrap.cc:2950:43: error: expected ')' before
>> 'n'
>> build/X86/python/swig/stats_wrap.cc:2955:5: error: 'ptrdiff_t' does not
>> name a type
>> build/X86/python/swig/stats_wrap.cc:3111:23: error: 'SWIG_From_ptrdiff_t'
>> declared as an 'inline' variable
>> build/X86/python/swig/stats_wrap.cc:3111:23: error: 'ptrdiff_t' was not
>> declared in this scope
>> build/X86/python/swig/stats_wrap.cc:3111:23: note: suggested alternatives:
>> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:
>> 'std::ptrdiff_t'
>> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:
>> 'std::ptrdiff_t'
>> build/X86/python/swig/stats_wrap.cc:3112:1: error: expected ',' or ';'
>> before '{' token
>> build/X86/python/swig/stats_wrap.cc:3164:39: error: 'ptrdiff_t' has not
>> been declared
>> build/X86/python/swig/stats_wrap.cc: In function 'int
>> SWIG_AsVal_ptrdiff_t(PyObject*, int*)':
>> build/X86/python/swig/stats_wrap.cc:3168:50: error: expected
>> type-specifier before 'ptrdiff_t'
>> build/X86/python/swig/stats_wrap.cc:3168:50: error: expected '>' before
>> 'ptrdiff_t'
>> build/X86/python/swig/stats_wrap.cc:3168:50: error: expected '(' before
>> 'ptrdiff_t'
>> build/X86/python/swig/stats_wrap.cc:3168:50: error: 'ptrdiff_t' was not
>> declared in this scope
>> build/X86/python/swig/stats_wrap.cc:3168:50: note: suggested alternatives:
>> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:
>> 'std::ptrdiff_t'
>> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:
>> 'std::ptrdiff_t'
>> build/X86/python/swig/stats_wrap.cc:3168:64: error: expected ')' before
>> ';' token
>> build/X86/python/swig/stats_wrap.cc: At global scope:
>> build/X86/python/swig/stats_wrap.cc:3862:15: error: 'swig::check_index'
>> declared as an 'inline' variable
>> build/X86/python/swig/stats_wrap.cc:3862:15: error: 'ptrdiff_t' was not
>> declared in this scope
>> build/X86/python/swig/stats_wrap.cc:3862:15: note: suggested alternatives:
>> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:
>> 'std::ptrdiff_t'
>> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:
>> 'std::ptrdiff_t'
>> build/X86/python/swig/stats_wrap.cc:3862:35: error: expected
>> primary-expression before 'size'
>> build/X86/python/swig/stats_wrap.cc:3862:41: error: expected
>> primary-expression before 'bool'
>> build/X86/python/swig/stats_wrap.cc:3862:60: error: expression list
>> treated as compound expression in initializer [-fpermissive]
>> build/X86/python/swig/stats_wrap.cc:3862:62: error: expected ',' or ';'
>> before '{' token
>> build/X86/python/swig/stats_wrap.cc:17818:1: error: expected '}' at end
>> of input
>> scons: *** [build/X86/python/swig/stats_wrap.do] Error 1
>> scons: building terminated because of errors.
>> 
>> 
>> 
>> On 2013-07-10, at 10:00 AM, Zheng Wu  wrote:
>> 
>>> Sorry Please Ignore this emailŠI did something stupid...
>>> 
>>> 
>>> On 2013-07-10, at 9:58 AM, Zheng Wu  wrote:
>>> 
 Hi,
 
 I've the most current version of the gem5 dev code ( change set:
 9803:86b426640960) and when I try to compile (scons
 build/X86/gem5.opt), I get the following errors:
 
 build/X86/mem/cache/tags/base.cc: In member function 'virtual void
>>>

Re: [gem5-users] Compilation Error

2013-07-10 Thread Andreas Hansson
What version of gem5 and swig are you using?

On 10/07/2013 15:18, "Zheng Wu"  wrote:

>Hi,
>
>I am getting the following errors instead now when I compile (scons
>build/X86/gem5.debug):
>
>build/X86/python/swig/stats_wrap.cc:2883:13: error: 'ptrdiff_t' does not
>name a type
>build/X86/python/swig/stats_wrap.cc:2920:21: error: expected ';' at end
>of member declaration
>build/X86/python/swig/stats_wrap.cc:2920:39: error: expected ')' before
>'n'
>build/X86/python/swig/stats_wrap.cc:2935:34: error: declaration of
>'operator+=' as non-function
>build/X86/python/swig/stats_wrap.cc:2935:30: error: expected ';' at end
>of member declaration
>build/X86/python/swig/stats_wrap.cc:2935:44: error: expected ')' before
>'n'
>build/X86/python/swig/stats_wrap.cc:2940:34: error: declaration of
>'operator-=' as non-function
>build/X86/python/swig/stats_wrap.cc:2940:30: error: expected ';' at end
>of member declaration
>build/X86/python/swig/stats_wrap.cc:2940:44: error: expected ')' before
>'n'
>build/X86/python/swig/stats_wrap.cc:2945:33: error: declaration of
>'operator+' as non-function
>build/X86/python/swig/stats_wrap.cc:2945:30: error: expected ';' at end
>of member declaration
>build/X86/python/swig/stats_wrap.cc:2945:43: error: expected ')' before
>'n'
>build/X86/python/swig/stats_wrap.cc:2950:33: error: declaration of
>'operator-' as non-function
>build/X86/python/swig/stats_wrap.cc:2950:30: error: expected ';' at end
>of member declaration
>build/X86/python/swig/stats_wrap.cc:2950:43: error: expected ')' before
>'n'
>build/X86/python/swig/stats_wrap.cc:2955:5: error: 'ptrdiff_t' does not
>name a type
>build/X86/python/swig/stats_wrap.cc:3111:23: error: 'SWIG_From_ptrdiff_t'
>declared as an 'inline' variable
>build/X86/python/swig/stats_wrap.cc:3111:23: error: 'ptrdiff_t' was not
>declared in this scope
>build/X86/python/swig/stats_wrap.cc:3111:23: note: suggested alternatives:
>/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:
>'std::ptrdiff_t'
>/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:
>'std::ptrdiff_t'
>build/X86/python/swig/stats_wrap.cc:3112:1: error: expected ',' or ';'
>before '{' token
>build/X86/python/swig/stats_wrap.cc:3164:39: error: 'ptrdiff_t' has not
>been declared
>build/X86/python/swig/stats_wrap.cc: In function 'int
>SWIG_AsVal_ptrdiff_t(PyObject*, int*)':
>build/X86/python/swig/stats_wrap.cc:3168:50: error: expected
>type-specifier before 'ptrdiff_t'
>build/X86/python/swig/stats_wrap.cc:3168:50: error: expected '>' before
>'ptrdiff_t'
>build/X86/python/swig/stats_wrap.cc:3168:50: error: expected '(' before
>'ptrdiff_t'
>build/X86/python/swig/stats_wrap.cc:3168:50: error: 'ptrdiff_t' was not
>declared in this scope
>build/X86/python/swig/stats_wrap.cc:3168:50: note: suggested alternatives:
>/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:
>'std::ptrdiff_t'
>/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:
>'std::ptrdiff_t'
>build/X86/python/swig/stats_wrap.cc:3168:64: error: expected ')' before
>';' token
>build/X86/python/swig/stats_wrap.cc: At global scope:
>build/X86/python/swig/stats_wrap.cc:3862:15: error: 'swig::check_index'
>declared as an 'inline' variable
>build/X86/python/swig/stats_wrap.cc:3862:15: error: 'ptrdiff_t' was not
>declared in this scope
>build/X86/python/swig/stats_wrap.cc:3862:15: note: suggested alternatives:
>/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:
>'std::ptrdiff_t'
>/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:
>'std::ptrdiff_t'
>build/X86/python/swig/stats_wrap.cc:3862:35: error: expected
>primary-expression before 'size'
>build/X86/python/swig/stats_wrap.cc:3862:41: error: expected
>primary-expression before 'bool'
>build/X86/python/swig/stats_wrap.cc:3862:60: error: expression list
>treated as compound expression in initializer [-fpermissive]
>build/X86/python/swig/stats_wrap.cc:3862:62: error: expected ',' or ';'
>before '{' token
>build/X86/python/swig/stats_wrap.cc:17818:1: error: expected '}' at end
>of input
>scons: *** [build/X86/python/swig/stats_wrap.do] Error 1
>scons: building terminated because of errors.
>
>
>
>On 2013-07-10, at 10:00 AM, Zheng Wu  wrote:
>
>> Sorry Please Ignore this emailŠI did something stupid...
>>
>>
>> On 2013-07-10, at 9:58 AM, Zheng Wu  wrote:
>>
>>> Hi,
>>>
>>> I've the most current version of the gem5 dev code ( change set:
>>>9803:86b426640960) and when I try to compile (scons
>>>build/X86/gem5.opt), I get the following errors:
>>>
>>> build/X86/mem/cache/tags/base.cc: In member function 'virtual void
>>>BaseTags::regStats()':
>>> build/X86/mem/cache/tags/base.cc:95:25: error: invalid use of member
>>>(did you forget the '&' ?)
>>> build/X86/mem/cache/tags/base.cc:100:22: error: invalid use of member
>>>(did you forget the '&' ?)
>>> scons: *** [build/X86/mem/cache/tags/base.o] Error 1
>>> scons: building terminated because of errors.
>>>
>>> Does anyone else have this problem?
>

Re: [gem5-users] Compilation Error

2013-07-10 Thread Zheng Wu
Hi,

I am getting the following errors instead now when I compile (scons 
build/X86/gem5.debug):

build/X86/python/swig/stats_wrap.cc:2883:13: error: 'ptrdiff_t' does not name a 
type
build/X86/python/swig/stats_wrap.cc:2920:21: error: expected ';' at end of 
member declaration
build/X86/python/swig/stats_wrap.cc:2920:39: error: expected ')' before 'n'
build/X86/python/swig/stats_wrap.cc:2935:34: error: declaration of 'operator+=' 
as non-function
build/X86/python/swig/stats_wrap.cc:2935:30: error: expected ';' at end of 
member declaration
build/X86/python/swig/stats_wrap.cc:2935:44: error: expected ')' before 'n'
build/X86/python/swig/stats_wrap.cc:2940:34: error: declaration of 'operator-=' 
as non-function
build/X86/python/swig/stats_wrap.cc:2940:30: error: expected ';' at end of 
member declaration
build/X86/python/swig/stats_wrap.cc:2940:44: error: expected ')' before 'n'
build/X86/python/swig/stats_wrap.cc:2945:33: error: declaration of 'operator+' 
as non-function
build/X86/python/swig/stats_wrap.cc:2945:30: error: expected ';' at end of 
member declaration
build/X86/python/swig/stats_wrap.cc:2945:43: error: expected ')' before 'n'
build/X86/python/swig/stats_wrap.cc:2950:33: error: declaration of 'operator-' 
as non-function
build/X86/python/swig/stats_wrap.cc:2950:30: error: expected ';' at end of 
member declaration
build/X86/python/swig/stats_wrap.cc:2950:43: error: expected ')' before 'n'
build/X86/python/swig/stats_wrap.cc:2955:5: error: 'ptrdiff_t' does not name a 
type
build/X86/python/swig/stats_wrap.cc:3111:23: error: 'SWIG_From_ptrdiff_t' 
declared as an 'inline' variable
build/X86/python/swig/stats_wrap.cc:3111:23: error: 'ptrdiff_t' was not 
declared in this scope
build/X86/python/swig/stats_wrap.cc:3111:23: note: suggested alternatives:
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:   
'std::ptrdiff_t'
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:   
'std::ptrdiff_t'
build/X86/python/swig/stats_wrap.cc:3112:1: error: expected ',' or ';' before 
'{' token
build/X86/python/swig/stats_wrap.cc:3164:39: error: 'ptrdiff_t' has not been 
declared
build/X86/python/swig/stats_wrap.cc: In function 'int 
SWIG_AsVal_ptrdiff_t(PyObject*, int*)':
build/X86/python/swig/stats_wrap.cc:3168:50: error: expected type-specifier 
before 'ptrdiff_t'
build/X86/python/swig/stats_wrap.cc:3168:50: error: expected '>' before 
'ptrdiff_t'
build/X86/python/swig/stats_wrap.cc:3168:50: error: expected '(' before 
'ptrdiff_t'
build/X86/python/swig/stats_wrap.cc:3168:50: error: 'ptrdiff_t' was not 
declared in this scope
build/X86/python/swig/stats_wrap.cc:3168:50: note: suggested alternatives:
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:   
'std::ptrdiff_t'
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:   
'std::ptrdiff_t'
build/X86/python/swig/stats_wrap.cc:3168:64: error: expected ')' before ';' 
token
build/X86/python/swig/stats_wrap.cc: At global scope:
build/X86/python/swig/stats_wrap.cc:3862:15: error: 'swig::check_index' 
declared as an 'inline' variable
build/X86/python/swig/stats_wrap.cc:3862:15: error: 'ptrdiff_t' was not 
declared in this scope
build/X86/python/swig/stats_wrap.cc:3862:15: note: suggested alternatives:
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:   
'std::ptrdiff_t'
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:   
'std::ptrdiff_t'
build/X86/python/swig/stats_wrap.cc:3862:35: error: expected primary-expression 
before 'size'
build/X86/python/swig/stats_wrap.cc:3862:41: error: expected primary-expression 
before 'bool'
build/X86/python/swig/stats_wrap.cc:3862:60: error: expression list treated as 
compound expression in initializer [-fpermissive]
build/X86/python/swig/stats_wrap.cc:3862:62: error: expected ',' or ';' before 
'{' token
build/X86/python/swig/stats_wrap.cc:17818:1: error: expected '}' at end of input
scons: *** [build/X86/python/swig/stats_wrap.do] Error 1
scons: building terminated because of errors.



On 2013-07-10, at 10:00 AM, Zheng Wu  wrote:

> Sorry Please Ignore this email…I did something stupid...
> 
> 
> On 2013-07-10, at 9:58 AM, Zheng Wu  wrote:
> 
>> Hi,
>> 
>> I've the most current version of the gem5 dev code ( change set: 
>> 9803:86b426640960) and when I try to compile (scons build/X86/gem5.opt), I 
>> get the following errors:
>> 
>> build/X86/mem/cache/tags/base.cc: In member function 'virtual void 
>> BaseTags::regStats()':
>> build/X86/mem/cache/tags/base.cc:95:25: error: invalid use of member (did 
>> you forget the '&' ?)
>> build/X86/mem/cache/tags/base.cc:100:22: error: invalid use of member (did 
>> you forget the '&' ?)
>> scons: *** [build/X86/mem/cache/tags/base.o] Error 1
>> scons: building terminated because of errors.
>> 
>> Does anyone else have this problem?
>> 
>> Thanks,
>> Zheng Wu
>> ___
>> gem5-users mailing list
>> gem5-users@gem5.org
>> http://m5s

Re: [gem5-users] Compilation Error

2013-07-10 Thread Zheng Wu
Sorry Please Ignore this email…I did something stupid...


On 2013-07-10, at 9:58 AM, Zheng Wu  wrote:

> Hi,
> 
> I've the most current version of the gem5 dev code ( change set: 
> 9803:86b426640960) and when I try to compile (scons build/X86/gem5.opt), I 
> get the following errors:
> 
> build/X86/mem/cache/tags/base.cc: In member function 'virtual void 
> BaseTags::regStats()':
> build/X86/mem/cache/tags/base.cc:95:25: error: invalid use of member (did you 
> forget the '&' ?)
> build/X86/mem/cache/tags/base.cc:100:22: error: invalid use of member (did 
> you forget the '&' ?)
> scons: *** [build/X86/mem/cache/tags/base.o] Error 1
> scons: building terminated because of errors.
> 
> Does anyone else have this problem?
> 
> Thanks,
> Zheng Wu
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users


[gem5-users] Compilation Error

2013-07-10 Thread Zheng Wu
Hi,

I've the most current version of the gem5 dev code ( change set: 
9803:86b426640960) and when I try to compile (scons build/X86/gem5.opt), I get 
the following errors:

build/X86/mem/cache/tags/base.cc: In member function 'virtual void 
BaseTags::regStats()':
build/X86/mem/cache/tags/base.cc:95:25: error: invalid use of member (did you 
forget the '&' ?)
build/X86/mem/cache/tags/base.cc:100:22: error: invalid use of member (did you 
forget the '&' ?)
scons: *** [build/X86/mem/cache/tags/base.o] Error 1
scons: building terminated because of errors.

Does anyone else have this problem?

Thanks,
Zheng Wu
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users


Re: [gem5-users] Compilation error: statement has no effect

2013-02-18 Thread Maxime Chéramy
Hello,

I was able to compile with no error using the latest trunk instead of
stable as you suggested.

Thank you.

Maxime.

2013/2/15 Andreas Hansson 

>  I'd suggest going for the latest trunk instead of stable. I also have
> some patches on the review board cleaning up the compiler flags.
>
>  The "-Wno-unused-value" is added to the SWIG flags in the later editions
> of the Sconscript.
>
>  Andreas
>
>   From: Fernando Endo 
> Reply-To: gem5 users mailing list 
> Date: Friday, 15 February 2013 17:04
> To: gem5 users mailing list 
> Subject: Re: [gem5-users] Compilation error: statement has no effect
>
>  Hello,
>
>  Could you please give us more information? (command line, OS, compiler
> version, etc)
>
>  --
> Fernando A. Endo, PhD student and researcher
>
> Universit� de Grenoble, UJF
> France
>
>
>
> 2013/2/14 Maxime Ch�ramy 
>
>> Hello,
>>
>> I'm new with gem5. I've downloaded the code of the branch gem5-stable and
>> tried to compile using scons. Here's the error I get:
>>
>>  [ CXX] ALPHA/python/swig/core_wrap.cc -> .do
>> build/ALPHA/python/swig/core_
>> wrap.cc: In function 'void SWIG_InitializeModule(void*)':
>> build/ALPHA/python/swig/core_wrap.cc:4233:21: error: statement has no
>> effect [-Werror=unused-value]
>> cc1plus: all warnings being treated as errors
>> scons: *** [build/ALPHA/python/swig/core_wrap.do] Error 1
>> scons: building terminated because of errors.
>>
>> The line is : (void*)clientdata;
>>
>>
>> Cheers,
>>
>> Maxime.
>>
>> ___
>> gem5-users mailing list
>> gem5-users@gem5.org
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>
>
> -- IMPORTANT NOTICE: The contents of this email and any attachments are
> confidential and may also be privileged. If you are not the intended
> recipient, please notify the sender immediately and do not disclose the
> contents to any other person, use it for any purpose, or store or copy the
> information in any medium. Thank you.
>
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Compilation error: statement has no effect

2013-02-16 Thread Maxime Chéramy
Hello Fernando,

Command: scons
OS: Debian Wheezy
compiler version: gcc 4.7.2, swig 2.0.7

Thanks for you help. I'll give a try to the trunk version on Monday.

Maxime.

2013/2/15 Fernando Endo 

> Hello,
>
> Could you please give us more information? (command line, OS, compiler
> version, etc)
>
> --
> Fernando A. Endo, PhD student and researcher
>
> Université de Grenoble, UJF
> France
>
>
>
> 2013/2/14 Maxime Chéramy 
>
>>  Hello,
>>
>> I'm new with gem5. I've downloaded the code of the branch gem5-stable and
>> tried to compile using scons. Here's the error I get:
>>
>>  [ CXX] ALPHA/python/swig/core_wrap.cc -> .do
>> build/ALPHA/python/swig/core_
>> wrap.cc: In function 'void SWIG_InitializeModule(void*)':
>> build/ALPHA/python/swig/core_wrap.cc:4233:21: error: statement has no
>> effect [-Werror=unused-value]
>> cc1plus: all warnings being treated as errors
>> scons: *** [build/ALPHA/python/swig/core_wrap.do] Error 1
>> scons: building terminated because of errors.
>>
>> The line is : (void*)clientdata;
>>
>>
>> Cheers,
>>
>> Maxime.
>>
>> ___
>> gem5-users mailing list
>> gem5-users@gem5.org
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>
>
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Compilation error: statement has no effect

2013-02-15 Thread Andreas Hansson
I'd suggest going for the latest trunk instead of stable. I also have some 
patches on the review board cleaning up the compiler flags.

The "-Wno-unused-value" is added to the SWIG flags in the later editions of the 
Sconscript.

Andreas

From: Fernando Endo mailto:fernando.en...@gmail.com>>
Reply-To: gem5 users mailing list 
mailto:gem5-users@gem5.org>>
Date: Friday, 15 February 2013 17:04
To: gem5 users mailing list mailto:gem5-users@gem5.org>>
Subject: Re: [gem5-users] Compilation error: statement has no effect

Hello,

Could you please give us more information? (command line, OS, compiler version, 
etc)

--
Fernando A. Endo, PhD student and researcher

Universit� de Grenoble, UJF
France



2013/2/14 Maxime Ch�ramy 
mailto:maxime.cher...@gmail.com>>
Hello,

I'm new with gem5. I've downloaded the code of the branch gem5-stable and tried 
to compile using scons. Here's the error I get:

 [ CXX] ALPHA/python/swig/core_wrap.cc -> .do
build/ALPHA/python/swig/core_
wrap.cc: In function 'void SWIG_InitializeModule(void*)':
build/ALPHA/python/swig/core_wrap.cc:4233:21: error: statement has no effect 
[-Werror=unused-value]
cc1plus: all warnings being treated as errors
scons: *** [build/ALPHA/python/swig/core_wrap.do] Error 1
scons: building terminated because of errors.

The line is : (void*)clientdata;


Cheers,

Maxime.

___
gem5-users mailing list
gem5-users@gem5.org<mailto:gem5-users@gem5.org>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users


-- IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Compilation error: statement has no effect

2013-02-15 Thread Fernando Endo
Hello,

Could you please give us more information? (command line, OS, compiler
version, etc)

--
Fernando A. Endo, PhD student and researcher

Université de Grenoble, UJF
France



2013/2/14 Maxime Chéramy 

> Hello,
>
> I'm new with gem5. I've downloaded the code of the branch gem5-stable and
> tried to compile using scons. Here's the error I get:
>
>  [ CXX] ALPHA/python/swig/core_wrap.cc -> .do
> build/ALPHA/python/swig/core_
> wrap.cc: In function 'void SWIG_InitializeModule(void*)':
> build/ALPHA/python/swig/core_wrap.cc:4233:21: error: statement has no
> effect [-Werror=unused-value]
> cc1plus: all warnings being treated as errors
> scons: *** [build/ALPHA/python/swig/core_wrap.do] Error 1
> scons: building terminated because of errors.
>
> The line is : (void*)clientdata;
>
>
> Cheers,
>
> Maxime.
>
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] Compilation error: statement has no effect

2013-02-14 Thread Maxime Chéramy
Hello,

I'm new with gem5. I've downloaded the code of the branch gem5-stable and
tried to compile using scons. Here's the error I get:

 [ CXX] ALPHA/python/swig/core_wrap.cc -> .do
build/ALPHA/python/swig/core_
wrap.cc: In function 'void SWIG_InitializeModule(void*)':
build/ALPHA/python/swig/core_wrap.cc:4233:21: error: statement has no
effect [-Werror=unused-value]
cc1plus: all warnings being treated as errors
scons: *** [build/ALPHA/python/swig/core_wrap.do] Error 1
scons: building terminated because of errors.

The line is : (void*)clientdata;


Cheers,

Maxime.
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users