aditya pendyala
2018-09-26 19:27:26 UTC
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
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