OpenWRT 编译报错

OpenWRT 编译报错。源码下载可以编译通过,在luci中自选应用后在编译就报错.什么原因?

1,错误记录:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

../../Makefile.inc:351: recipe for target 'src/gpsdclient.o' failed
make[5]: *** [src/gpsdclient.o] Error 1
make[5]: Leaving directory '/home/tl/openwrt_source_code/lede/build_dir/target-x86_64_musl/olsrd-0.9.7/lib/pud'
Makefile:241: recipe for target 'libs' failed
make[4]: *** [libs] Error 2
make[4]: Leaving directory '/home/tl/openwrt_source_code/lede/build_dir/target-x86_64_musl/olsrd-0.9.7'
Makefile:293: recipe for target '/home/tl/openwrt_source_code/lede/build_dir/target-x86_64_musl/olsrd-0.9.7/.built' failed
make[3]: *** [/home/tl/openwrt_source_code/lede/build_dir/target-x86_64_musl/olsrd-0.9.7/.built] Error 2
make[3]: Leaving directory '/home/tl/openwrt_source_code/lede/feeds/routing/olsrd'
time: package/feeds/routing/olsrd/compile#0.17#0.37#0.68
package/Makefile:111: recipe for target 'package/feeds/routing/olsrd/compile' failed
make[2]: *** [package/feeds/routing/olsrd/compile] Error 2
make[2]: Leaving directory '/home/tl/openwrt_source_code/lede'
package/Makefile:107: recipe for target '/home/tl/openwrt_source_code/lede/staging_dir/target-x86_64_musl/stamp/.package_compile' failed
make[1]: *** [/home/tl/openwrt_source_code/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/tl/openwrt_source_code/lede'
/home/tl/openwrt_source_code/lede/include/toplevel.mk:225: recipe for target 'world' failed
make: *** [world] Error 2

找到一种确定位置的方法.用make menuconfig的搜索包名.symbol后面是[=y]表示选中了.下面的location是位置.在luci里面选上luci-app-olsr,会自动勾选network里面的这几选项,取消选择还需要手动关闭这几个选项.

OpenWRT 编译报错

ubuntu20.04(文件系统为_ZFS_格式)

2,编译过程报错(下面两个):

1
2
configure: error: GNU gperf required, please install it.
configure: error: antlr3 wrapper required, please install it.

安装:

1
2
csjtl@ubuntu:~$ sudo apt install gperf
csjtl@ubuntu:~$ sudo apt install antlr3

3,软件冲突,make menuconfig,然后用‘/’查找相应软件的路径,取消选择.

4,luci界面不能访问。(代添加)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/usr/lib/lua/luci/model/cbi/passwall/api/v2ray.lua:6: module 'luci.model.ipkg' not found:
no field package.preload['luci.model.ipkg']
no file './luci/model/ipkg.lua'
no file '/usr/share/lua/luci/model/ipkg.lua'
no file '/usr/share/lua/luci/model/ipkg/init.lua'
no file '/usr/lib/lua/luci/model/ipkg.lua'
no file '/usr/lib/lua/luci/model/ipkg/init.lua'
no file './luci/model/ipkg.so'
no file '/usr/lib/lua/luci/model/ipkg.so'
no file '/usr/lib/lua/loadall.so'
no file './luci.so'
no file '/usr/lib/lua/luci.so'
no file '/usr/lib/lua/loadall.so'
stack traceback:
[C]: in function 'require'
/usr/lib/lua/luci/model/cbi/passwall/api/v2ray.lua:6: in main chunk
[C]: in function 'require'
/usr/lib/lua/luci/controller/passwall.lua:8: in main chunk
[C]: in function 'require'
/usr/lib/lua/luci/dispatcher.lua:1076: in function 'createindex'
/usr/lib/lua/luci/dispatcher.lua:1187: in function 'createtree'
/usr/lib/lua/luci/dispatcher.lua:694: in function 'menu_json'
/usr/lib/lua/luci/dispatcher.lua:795: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:478: in function </usr/lib/lua/luci/dispatcher.lua:477>

Saved working directory and index state WIP on master: 522f6b7eee ath79: add SUPPORTED_DEVICES based on ar71xx for some devices

5,git pull提示‘在合并之前,请提交更改或存储更改。’解决方法使用:git stash命令

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
csjtl@ubuntu:~/OpenWRT/openwrt$ git pull
Updating 522f6b7eee..3a79e3b185
error: Your local changes to the following files would be overwritten by merge:
package/base-files/files/bin/config_generate
Please commit your changes or stash them before you merge.
Aborting
csjtl@ubuntu:~/OpenWRT/openwrt$ git stash
Saved working directory and index state WIP on master: 522f6b7eee ath79: add SUPPORTED_DEVICES based on ar71xx for some devices
csjtl@ubuntu:~/OpenWRT/openwrt$ git pull
Updating 522f6b7eee..3a79e3b185
Fast-forward
include/kernel-version.mk 4 +-
include/prereq-build.mk 4 +-
package/base-files/files/bin/config_generate 2 +
package/firmware/wireless-regdb/Makefile 4 +-

https://blog.csdn.net/iefreer/article/details/7679631

6,

openwrt更多内容请点击:

https://tl8517.com/categories/OpenWrt/

此问题我在恩山无线论坛提问过:

https://www.right.com.cn/forum/thread-3121378-1-1.html