Hi, sorry for taking a while to get back to you. The cxx-config code is not quite correct, although it basically works in most cases. It fails to build with the systemc integration, but you don't want to use gem5's built in systemc kernel anyway, if you're going to run it inside another external systemc simulation. The util/systemc/gem5_within_systemc/README was updated to tell you to set USE_SYSTEMC=0 on the command line, but it looks like we forgot to update the tlm one. Ideally we'll fix the underlying issue one of these days, but there are a lot of things to fix and only so much time. So, to get the build to work, add USE_SYSTEMC=0 to the scons command line.
Gabe On Fri, Aug 13, 2021 at 9:13 AM wu xuyong via gem5-users < gem5-users@gem5.org> wrote: > Dear Gem5 Users, > > I‘ve got stucked when try to follow the tlm tutorial in > gem5/util/tlm/README. > > (similar issues for versioin of GEM5 21.1.0.0 & 21.0.1.0) > > Following the section III of the README file, there is no issue on the > first two line and end with normal gem5.opt output: > > > cd ../.. > > > scons build/ARM/gem5.opt > > > > While the problem comes during the next command > > > scons --with-cxx-config --without-python --without-tcmalloc > > > build/ARM/libgem5_opt.so > > > > There comes several error report as below, the log file is also available > as attachment. > > build/ARM/cxx_config/Gem5ToTlmBridge256.cc:144 > <https://gem5totlmbridge256.cc:144/>:24: error: cannot convert > 'sc_gem5::Gem5ToTlmBridge<256>*' to 'gem5::SimObject*' in return > > 144 | return this->create(); > > | ~~~~~~~~~~~~^~ > > | | > > | sc_gem5::Gem5ToTlmBridge<256>* > > > > I tried hard walking arround and have no ideal on how to get throught. I > guess it may be a common issue for those who’s trying to get through this > tutorial. Any advise on using the tlm utility of Gem5 will be great helpful. > > By the way, it will make my life better if anyone could offer me any idea > on getting rid of the huge amount of namespace warning in building the new > version 21.1.0.0. > > > > Thank in advance > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-le...@gem5.org > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s