Welcome to gem5 Q&A, where you can ask questions and receive answers from other members of the community.

building error the latest version of gem5 on CentOS6.9

0 votes

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.

captured the whole screen with errors and attached it in three segments in sequence.

I will be waiting for your answer.

Thank you.

 

 


 

asked Aug 24 in Compiling by Kimseonggyu (120 points)

1 Answer

0 votes
Hi Kimseonggyu,

you can take a look here:

http://gem5.org/Using_a_non-default_Python_installation

you can find the version of your default python with (just to make sure your default python version is the one you posted):

python --version

you can find your python2 with the command below:

which python2

you can try to use this to build your gem5:

$(which python2) $(which scons) build/ARM/gem5.opt -j$(cat /proc/cpuinfo | grep proc | wc -l)

I hope it helps.

Regards,

Éder
answered Oct 5 by efzulian (180 points)
...