我正在尝试在 Alpine Linux 上编译Box86 ,这是一个使用musl libc 实现而不是glibc的 Linux 发行版。在完成 46% 时,编译停止并出现以下错误:
/home/newbyte/box86/src/emu/x86syscall.c:124:11: error: '__NR_gettimeofday' undeclared here (not in a function); did you mean 'gettimeofday'?
124 | { 78, __NR_gettimeofday, 2 },
| ^~~~~~~~~~~~~~~~~
| gettimeofday
/home/newbyte/box86/src/emu/x86syscall.c:210:12: error: '__NR_clock_gettime' undeclared here (not in a function); did you mean 'clock_gettime'?
210 | { 265, __NR_clock_gettime, 2 },
| ^~~~~~~~~~~~~~~~~~
| clock_gettime
/home/newbyte/box86/src/emu/x86syscall.c:211:12: error: '__NR_clock_getres' undeclared here (not in a function); did you mean 'clock_getres'?
211 | { 266, __NR_clock_getres, 2 },
| ^~~~~~~~~~~~~~~~~
| clock_getres
自然,我的第一直觉是查找这些名称并弄清楚它们的用途,以便找到合适的替代品,但我运气不佳,这导致我的问题是:这些以 - 为__NR_
前缀的符号是什么,以及他们在做什么?