找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1221|回复: 5

[openwrt(x86)] openwrt编译问题,小白来请教

[复制链接]
发表于 2023-3-16 18:47 | 显示全部楼层 |阅读模式
本帖最后由 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关闭呢?

各位大神有没有遇见过这个问题,,,请赐教。。。。。。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
发表于 2023-3-16 19:17 | 显示全部楼层
你选的插件太多了,
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2023-3-16 20:56 | 显示全部楼层
为了编译成功,我把插件都取消了。。没有插件了。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-3-17 09:05 来自手机 | 显示全部楼层
还是站在路人肩膀吧,不要从0开始。建议用SDK编译你要的插件ipk,再用imagebuilder集成你的插件封包为固件
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-3-17 10:02 | 显示全部楼层
make -j1 v=s 执行完截图
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2023-3-18 21:03 | 显示全部楼层
有没有哪位大神能帮小弟一下,,,怎么解决这个问题啊。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-3-29 04:51

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表