Context:
I am currently in a course that revolves around using the gem5 simulator. Many of the students in the course including myself installed 22.04 instead of 20.04 which is referenced directly in the documentation.
Error:
In 22.04 an example piece of c code from the gem5 library is being recompiled from source. The build command used was gcc -O0 --ggd3 -std=c99 -static -o a.out hello.c
(Note this same build command works fine with 20.04). When a.out is ran in the gem5 simulation code this error is thrown build/X86/sim/syscall_desc.hh:206: fatal: Syscall 334 out of range
.
The big question:
What about compiling under 20.04 creates compatible c code with the gem5 simulator where 22.04 does not. I have tried using the same gcc version for both (gcc-9) and cant seem to figure this out.