Open kailashg26 opened 3 years ago
You need to have a look at the compilation error closely, there should be something above the lines you gave that explains the problem better. Try to do something more similar to other nearby lines above.
Hello cirosantilli, This is my compilation error. scons: Building targets ... [VER TAGS] -> X86/sim/tags.cc [ CXX] X86/arch/x86/linux/syscall_tbl64.cc -> .o build/X86/arch/x86/linux/syscall_tbl64.cc:370:25: error: 'getrandomFunc' was not declared in this scope 370 | { 318, "getrandom", getrandomFunc}, | ^ |
}; | ^ |
---|---|---|---|---|
scons: [build/X86/arch/x86/linux/syscall_tbl64.o] Error 1 scons: building terminated because of errors. Summary of Warnings *** Warning: Deprecated namespaces are not supported by this compiler. Please make sure to check the mailing list for deprecation announcements. Warning: Couldn't find HDF5 C++ libraries. Disabling HDF5 support.
I'm not sure if the importing of getrandom function is correct or if you can point me to any resources that can help in integrating the getrandom function to gem5, that would be a great help. Thanks.
I'm trying to execute a python algorithm (https://github.com/shariqiqbal2810/maddpg-pytorch) on gem5 in se mode in X86. But, at first I got an error syscall 318 out of range. So, I tried to import the get random function into the syscalltlb64 source code, like this:
{ 313, "finit_module" }, { 314, "sched_setattr" }, { 315, "sched_getattr" }, { 316, "renameat2" }, { 317, "seccomp" }, { 318, "getrandom"}, { 319, "memfd_create" }, { 320, "kexec_file_load" }, { 321, "bpf" },
I'm trying to execute a python algorithm (https://github.com/shariqiqbal2810/maddpg-pytorch) on gem5 in se mode in X86. But, at first I got an error syscall 318 out of range. So, I tried to import the get random function into the syscalltlb64 source code, like this:
{ 313, "finit_module" }, { 314, "sched_setattr" }, { 315, "sched_getattr" }, { 316, "renameat2" }, { 317, "seccomp" }, { 318, "getrandom"}, { 319, "memfd_create" }, { 320, "kexec_file_load" }, { 321, "bpf" },
Again, I got an error saying syscall 318 unimplemented. So, I just did:
{ 318, "getrandom", getrandomFunc},
Again, the problem continues as I got an error saying:
Can anyone help me how to solve this problem? Note: My linux kernel version is 5.4.0-88-generic and I'm using ubuntu 20.04 LTS. Thanks for the help