Hi,

These type of issues are typically caused by an incompatible Python
version. I suspect that the build system for some reason picked up
Python 2.6, which is the default Python version prior to CentOS/RHEL 7.

IIRC, scons and gem5 usually end up using the same Python interpreter.
To build gem5 with Python 2.7 on a system that ships with Python 2.6,
you might need to explicitly run scons with Python 2.7.

Cheers,
Andreas

On 24/08/2017 07:10, 김성규 wrote:
Hi
I'm having a hard time due to scons building errors.
Thanks in advance for your help!
I am using CentOS 6.9, gcc 4.9.2, python 2.7.12, scons 2.4.1 and swig 3.0.12.
When I install and build the gem5, the following errors occurred:
(I was typed "scons build/ARM/gem5.opt")
ext/pybind11/include/pybind11/pytypes.h: In member function 'bool 
pybind11::capsule::check() const':
ext/pybind11/include/pybind11/pytypes.h:681:78: error: 'PyCapsule_CheckExact' 
was not declared in this scope
          bool check() const { return m_ptr != nullptr && (bool) 
CheckFun(m_ptr); } \
                                                                               ^
ext/pybind11/include/pybind11/pytypes.h:690:5: note: in expansion of macro 
'PYBIND11_OBJECT_COMMON'
      PYBIND11_OBJECT_COMMON(Name, Parent, CheckFun) \
      ^
ext/pybind11/include/pybind11/pytypes.h:696:5: note: in expansion of macro 
'PYBIND11_OBJECT'
      PYBIND11_OBJECT(Name, Parent, CheckFun) \
      ^
ext/pybind11/include/pybind11/pytypes.h:1004:5: note: in expansion of macro 
'PYBIND11_OBJECT_DEFAULT'
      PYBIND11_OBJECT_DEFAULT(capsule, object, PyCapsule_CheckExact)
      ^
There are a lot of errors similar to this one.
I captured the whole screen with errors and attached it in three segments in 
sequence.
I will be waiting for your answer.
Thank you.
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

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-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to