Hey Brandon,

Does this look like another place in syscall_emul where we need to have a
ifdef guard for linux?

It looks like this was recently committed by you.
https://gem5-review.googlesource.com/c/public/gem5/+/12112

Thanks,
Jason

On Wed, Sep 26, 2018 at 12:26 PM aditya pendyala <[email protected]>
wrote:

> Hi,
> I was trying to build gem5 in my mac, however, it terminates with an
> error message saying "syscall.h file not found". From what I have found out
> on internet, OS X doesn't the system functions therein. Even when I replace
> "syscall.h" with "sys/syscall.h", I get
>
> [VER TAGS]  -> X86/sim/tags.cc
>
>  [     CXX] X86/sim/syscall_emul.cc -> .o
>
> build/X86/sim/syscall_emul.cc:1168:27: error: use of undeclared identifier
>
>       'SYS_getdents'
>
>  auto status = syscall(SYS_getdents, sim_fd,
>         ^   buf_arg.bufferPtr(), count);
>
>
> I am using the source code available in github.
> Is there any solution for this in OS X? I will be very grateful to anyone
> who helps me out of this.
>
> Regards,
> Aditya
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to