本文主要是介绍Manjaro Linux 编译 busybox 报错,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Manjaro Linux 编译 busybox 报错
~/busybox-1.27.0 >>> vim Makefile
CROSS_COMPILE ?=arm-linux-gnueabi-
ARCH ?=arm
~/busybox-1.27.0 >>> make defconfig
~/busybox-1.27.0 >>> make menuconfig HOSTLD scripts/kconfig/mconfHOSTCC scripts/kconfig/lxdialog/checklist.oHOSTCC scripts/kconfig/lxdialog/inputbox.oHOSTCC scripts/kconfig/lxdialog/lxdialog.oHOSTCC scripts/kconfig/lxdialog/menubox.oHOSTCC scripts/kconfig/lxdialog/msgbox.oHOSTCC scripts/kconfig/lxdialog/textbox.oHOSTCC scripts/kconfig/lxdialog/util.oHOSTCC scripts/kconfig/lxdialog/yesno.oHOSTLD scripts/kconfig/lxdialog/lxdialog
scripts/kconfig/mconf Config.in
#
# using defaults found in .config
#*** End of configuration.
*** Execute 'make' to build the project or try 'make help'.
~/busybox-1.27.0 >>> make -j8 SPLIT include/autoconf.h -> include/config/*HOSTCC applets/usageHOSTCC applets/applet_tablesGEN include/usage_compressed.hGEN include/applet_tables.h include/NUM_APPLETS.hGEN include/applet_tables.h include/NUM_APPLETS.hHOSTCC applets/usage_podCC applets/applets.o
In file included from include/libbb.h:13,from include/busybox.h:8,from applets/applets.c:9:
include/platform.h:157:11: fatal error: byteswap.h: No such file or directory157 | # include <byteswap.h>| ^~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.build:198:applets/applets.o] 错误 1
make[1]: *** 正在等待未完成的任务....
make: *** [Makefile:372:applets_dir] 错误 2
make: *** 正在等待未完成的任务....GEN include/bbconfigopts.hGEN include/common_bufsiz.h
CROSS_COMPILE ?=arm-linux-gnueabihf-
ARCH ?=arm
CC util-linux/unshare.oCC util-linux/wall.oCC libbb/xregcomp.oAR libbb/lib.aAR util-linux/lib.aLINK busybox_unstripped
Static linking against glibc, can't use --gc-sections
Trying libraries: crypt mLibrary crypt is not needed, excluding itLibrary m is needed, can't exclude it (yet)
Final link with: m
这篇关于Manjaro Linux 编译 busybox 报错的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!