Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 5.4 内核或更高版本的 32 位 CPU 上引导 systemd 时,systemd 中止:
Assertion 'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at ../src/basic/time-util.c:55, function now(). Aborting.
为什么?
CONFIG_COMPAT_32BIT_TIME在构建 Linux 内核时启用。这样做将启用相关的系统调用。当系统调用不可用时,它将返回-ENOSYS触发断言。
CONFIG_COMPAT_32BIT_TIME
-ENOSYS
在 5.4 左右禁用变得更容易,现在可以通过allnoconfig.
allnoconfig