Discussion:
[gem5-users] Build Error
Shashwat Gupta
2018-10-02 17:07:06 UTC
Permalink
Hey,

I’m trying to build gem5 on my mac using:
scons build/ARM/gem5.opt

Details:
gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.10.44.2)
Target: x86_64-apple-darwin18.0.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

and getting the following errors:
Undefined symbols for architecture x86_64:
"PyTrafficGen::start(pybind11::object)", referenced from:
module_init(pybind11::module&) in lib.fo.partial
"typeinfo for PyTrafficGen", referenced from:
pybind11::detail::type_caster_base<PyTrafficGen>::cast(PyTrafficGen const*, pybind11::return_value_policy, pybind11::handle) in lib.fo.partial
pybind11::class_<PyTrafficGen, BaseTrafficGen, std::__1::unique_ptr<PyTrafficGen, pybind11::nodelete> >::class_<>(pybind11::handle, char const*) in lib.fo.partial
pybind11::class_<PyTrafficGen, BaseTrafficGen, std::__1::unique_ptr<PyTrafficGen, pybind11::nodelete> >::init_instance(pybind11::detail::instance*, void const*) in lib.fo.partial
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
scons: *** [build/ARM/gem5.fast.unstripped] Error 1
scons: building terminated because of errors.

Loading...