I am having the following error in gem5. This happens in ARM only. With X86 I see some syscalls being ignored but none causing a fatal error.
tomas@ubuntu:~/gem5
uclibc is the answer for compiling for gem5. It doesn't use a bunch of syscalls that glibc uses and that gem5 doesn't have implemented. So using crosstool-ng and arm-unknown-linux-uclibcgnueabi solved the issue.
update: x86, arm and aarch64 C hello world is working on Ubuntu 18.04 pre-packaged toolchain, see: How to compile and run an executable in gem5 syscall emulation mode with se.py?
"FATAL: kernel too old" has been previously asked at: How to solve "FATAL: kernel too old" when running gem5 in syscall emulation SE mode?
As explained in that page, that message comes from a glibc sanity check, and ct-ng
is the sanest approach to overcome it.
As for the unimplemented syscalls, I don't know why x86 ignores them and arm blows up, but it should be easy to grep that up in the source if you give the x86 syscall ignored message.
But the blow up behavior does seem sensible: how can you expect your program to work properly when it tries to run an unimplemented syscall?
Most syscalls are unimplemented in both archs as can be seen at:
So, I only see two sensible solutions: