Busybox编译错误

错误1:

 CC      applets/applets.o
In file included from include/libbb.h:13,
                 from include/busybox.h:8,
                 from applets/applets.c:9:
include/platform.h:164:11: fatal error: byteswap.h: No such file or directory
 # include 
           ^~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:197: recipe for target 'applets/applets.o' failed
make[1]: *** [applets/applets.o] Error 1
Makefile:373: recipe for target 'applets_dir' failed
make: *** [applets_dir] Error 2

原因是编译的工具链中的lib库中没有这个文件,要么make menuconfig 中指定lib库位置,要么换一个编译器

解决方式:

更换带有libc的编译器

你可能感兴趣的:(Busybox编译错误)