HI Tariq,

You can fix it and submit a patch to gerrit :). Likely, you just need
#include <functional> at the top of addr_range_map.hh.

See https://gem5.googlesource.com/public/gem5/+/master/CONTRIBUTING.md for
more details.

Cheers,
Jason

On Tue, Jun 19, 2018 at 10:44 AM Tariq Azmy <tariqslaye...@gmail.com> wrote:

> Hi,
>
> I got a fresh new gem5 from google repo (
> https://gem5.googlesource.com/public/gem5) and built the X86 with scons.
> But there's an error from xbar:
>
> In file included from build/X86/mem/xbar.hh:57:0,
>                  from build/X86/mem/noncoherent_xbar.hh:54,
>                  from build/X86/mem/noncoherent_xbar.cc:50:
> build/X86/base/addr_range_map.hh:221:35: error: 'std::function' has not
> been declared
>      find(const AddrRange &r, std::function<bool(const AddrRange)> cond)
> const
>                                    ^~~~~~~~
> build/X86/base/addr_range_map.hh:221:43: error: expected ',' or '...'
> before '<' token
>      find(const AddrRange &r, std::function<bool(const AddrRange)> cond)
> const
>                                            ^
> scons: *** [build/X86/mem/noncoherent_xbar.o] Error 1
> scons: building terminated because of errors.
>
> Hope it can get fixed.
>
> Thanks
> _______________________________________________
> 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

Reply via email to