Hello Ciro,
Thank you for your reply. Your way solves the problem. I am now using GCC 6.1.0 which compiles gem5 fine. Mr. Yuan Yao PhD Student ESY, ICT KTH Royal Institute of Technology <mailto:yuan...@kth.se> yuan...@kth.se <https://www.linkedin.com/in/yuan-yao-085a1087?trk=nav_responsive_tab_profile> From: Ciro Santilli <ciro.santi...@gmail.com> Sent: 29 August 2018 11:45 To: gem5 users mailing list <gem5-users@gem5.org>; yuan...@kth.se Subject: Re: [gem5-users] Error when compiling gem5 My C++ is not that good, but move to a newer g++, 6.4 builds gem5 200281b08ca21f0d2678e23063f088960d3c0819 fine. On Wed, Aug 29, 2018 at 9:40 AM Yuan Yao <yuan...@kth.se <mailto:yuan...@kth.se> > wrote: Hi All, I encounter the following error when compiling gem5. scons: done reading SConscript files. scons: Building targets ... [ CXX] ALPHA/sim/main.cc -> .do In file included from ext/pybind11/include/pybind11/pytypes.h:12:0, from ext/pybind11/include/pybind11/cast.h:13, from ext/pybind11/include/pybind11/attr.h:13, from ext/pybind11/include/pybind11/pybind11.h:43, from build/ALPHA/sim/init.hh:46, from build/ALPHA/sim/main.cc:33: ext/pybind11/include/pybind11/detail/common.h:785:32: error: expected ';' at end of member declaration operator std::vector<T> &&() && { return std::move(v); } ^ ext/pybind11/include/pybind11/detail/common.h:785:37: error: expected unqualified-id before '{' token operator std::vector<T> &&() && { return std::move(v); } <and many more> Can anyone kindly give me a hint? I am using python-2.7.2, gcc-4.8.0, and scons-2.1.0, without system root privilege. I guess this error has something to do with the c++11 support, since the error is related to pybind11. Best, Yuan Mr. Yuan Yao PhD Student ESY, ICT KTH Royal Institute of Technology <mailto:yuan...@kth.se> yuan...@kth.se _______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users