|
本帖最后由 grissom 于 2023-3-18 20:45 编辑
小白初学编译,本地编译环境编译原版Openwrt,解决了几个问题后,被这个问题难倒了。。。
/openwrt/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/usr/include -I/home/uuser/openwrt/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include/fortify -I/home/uuser/openwrt/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/include " LDFLAGS="-L/home/uuser/openwrt/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/usr/lib -L/home/uuser/openwrt/staging_dir/toolchain-x86_64_gcc-11.2.0_musl/lib -znow -zrelro " ./configure --target=x86_64-openwrt-linux --host=x86_64-openwrt-linux --build=x86_64-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls ; fi; )
touch /home/uuser/openwrt/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug/.configured_68b329da9893e34099c7d8ad5cb9c940
rm -f /home/uuser/openwrt/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug/.built
touch /home/uuser/openwrt/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug/.built_check
make -C "/home/uuser/openwrt/build_dir/target-x86_64_musl/linux-x86_64/linux-6.1.19" KCFLAGS="-fmacro-prefix-map=/home/uuser/openwrt/build_dir/target-x86_64_musl=target-x86_64_musl -fno-caller-saves " HOSTCFLAGS="-O2 -I/home/uuser/openwrt/staging_dir/host/include -I/home/uuser/openwrt/staging_dir/hostpkg/include -I/home/uuser/openwrt/staging_dir/target-x86_64_musl/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="x86_64-openwrt-linux-musl-" ARCH="x86" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" KBUILD_BUILD_TIMESTAMP="Tue Jan 3 00:24:21 2023" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/home/uuser/openwrt/staging_dir/host/lib" KBUILD_HOSTLDLIBS="-L/home/uuser/openwrt/staging_dir/host/lib" CONFIG_SHELL="bash" V='' cmd_syscalls= KBUILD_EXTRA_SYMBOLS="" KERNELRELEASE=6.1.19 M="/home/uuser/openwrt/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug" EXTRA_CFLAGS=" -DCONFIG_BUTTON_HOTPLUG=1 " CONFIG_BUTTON_HOTPLUG=m modules
make[4]: Entering directory '/home/uuser/openwrt/build_dir/target-x86_64_musl/linux-x86_64/linux-6.1.19'
CC [M] /home/uuser/openwrt/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug/button-hotplug.o
/home/uuser/openwrt/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug/button-hotplug.c: In function 'button_hotplug_work':
/home/uuser/openwrt/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug/button-hotplug.c:177:9: error: implicit declaration of function 'broadcast_uevent' [-Werror=implicit-function-declaration]
177 | broadcast_uevent(event->skb, 0, 1, GFP_KERNEL);
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[5]: *** [scripts/Makefile.build:250: /home/uuser/openwrt/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug/button-hotplug.o] Error 1
make[4]: *** [Makefile:2012: /home/uuser/openwrt/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug] Error 2
make[4]: Leaving directory '/home/uuser/openwrt/build_dir/target-x86_64_musl/linux-x86_64/linux-6.1.19'
make[3]: *** [Makefile:53: /home/uuser/openwrt/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug/.built] Error 2
make[3]: Leaving directory '/home/uuser/openwrt/package/kernel/button-hotplug'
time: package/kernel/button-hotplug/compile#1.11#0.37#1.46
ERROR: package/kernel/button-hotplug failed to build.
make[2]: *** [package/Makefile:116: package/kernel/button-hotplug/compile] Error 1
make[2]: Leaving directory '/home/uuser/openwrt'
make[1]: *** [package/Makefile:110: /home/uuser/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/uuser/openwrt'
make: *** [/home/uuser/openwrt/include/toplevel.mk:230:world] 错误 2
Makefile文件里面就1行
看了lean大的仓库里相关文件,是一样的内容。
可是本地编译怎么会报错呢。。。怎么能将这个ERROR关闭呢?
各位大神有没有遇见过这个问题,,,请赐教。。。。。。
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|