在尝试构建内核时
我收到此错误
/usr/lib/gcc/x86_64-linux-gnu/7/include/stdint.h:9:26: error: no include path in which to search for stdint.h
# include_next <stdint.h>
当我看着 / usr / lib / gcc / x86_64-linux-gnu / 7 /
只有一个stdint.h,并且在include-fixed dir下有:limit.h和syslimit.h
答案 0 :(得分:0)
最后,
我通过添加到KBUILD_CFLAGS += $(call cc-option,-ffreestanding)
这限制了gcc使用标准stdint stdint-gcc.h