Discussion:
[gem5-users] installation of gem5 on OS X
aditya pendyala
2018-09-26 19:27:26 UTC
Permalink
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
Jason Lowe-Power
2018-09-27 00:22:10 UTC
Permalink
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
Post by aditya pendyala
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
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
aditya pendyala
2018-09-27 13:20:29 UTC
Permalink
Thanks for your reply!!
What exact change should I make? I am inexperienced in these things.

Regards,
Aditya
Post by Jason Lowe-Power
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
Post by aditya pendyala
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
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Loading...