Hi all!
I am trying to compile gem5 in opt mode and it keeps giving me this error:
build/X86/sim/init_signals.cc:65:32: error: size of array 'fatalSigStack'
is not an integral constant-expression
65 | static uint8_t fatalSigStack[2 * SIGSTKSZ];
| ^
scons: *** [build/X86/sim/init_signals.o] Error 1
build/X86/sim/init.cc: In static member function 'static PyObject*
EmbeddedPyBind::initAll()':
build/X86/sim/init.cc:201:41: warning: 'pybind11::module_::module_(const
char*, const char*)' is deprecated: Use PYBIND11_MODULE or
module_::create_extension_module instead [-Wdeprecated-declarations]
201 | py::module_ m_m5 = py::module_("m5");
| ^
In file included from build/X86/sim/init.hh:44,
from build/X86/sim/init.cc:44:
ext/pybind11/include/pybind11/pybind11.h:947:14: note: declared here
947 | explicit module(const char *name, const char *doc = nullptr) {
| ^~~~~~~
Can someone help me understand this? I feel like I need to install python
libraries that can fix this maybe?
Thank you.
Hi Preet,
I faced this error when I was trying to compile an old version of Gem5
(from 2018) on a relatively recent system with the latest glibc/gcc.
SIGSTKSZ used to be a macro in older glibc/gcc. You can simply set the size
of fatalSigStack to 8192.
Best,
Gagan
On Tue, Jun 14, 2022 at 6:09 PM Preet Derasari preetderasari@gmail.com
wrote:
Hi all!
I am trying to compile gem5 in opt mode and it keeps giving me this error:
build/X86/sim/init_signals.cc:65:32: error: size of array 'fatalSigStack'
is not an integral constant-expression
65 | static uint8_t fatalSigStack[2 * SIGSTKSZ];
| ^
scons: *** [build/X86/sim/init_signals.o] Error 1
build/X86/sim/init.cc: In static member function 'static PyObject*
EmbeddedPyBind::initAll()':
build/X86/sim/init.cc:201:41: warning: 'pybind11::module_::module_(const
char*, const char*)' is deprecated: Use PYBIND11_MODULE or
module_::create_extension_module instead [-Wdeprecated-declarations]
201 | py::module_ m_m5 = py::module_("m5");
| ^
In file included from build/X86/sim/init.hh:44,
from build/X86/sim/init.cc:44:
ext/pybind11/include/pybind11/pybind11.h:947:14: note: declared here
947 | explicit module(const char *name, const char *doc = nullptr) {
| ^~~~~~~
Can someone help me understand this? I feel like I need to install python
libraries that can fix this maybe?
Thank you.
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-leave@gem5.org