Giter Club home page Giter Club logo

build-actions's Introduction


🆘各种教程


github actions编译教程

Amlogic、Rockchip系列固件打包设置教程

在线更新固件插件说明



🆙更新说明(2024年1月14号)

2024年1月14号

修复私库不能启动编译和同步更新上游仓库问题,要注意的是如果你把仓库设置成私库,在线更新固件功能是不可以使用的,因为私库是检测不到的,就没办法下载您在私库releases的固件


2023年9月2号

增加<释放Ubuntu磁盘空间>解决最近因为服务器空间不足而编译失败的问题


2023年6月16号

修复个别源码不能编译N1固件的问题

有些源码的【armvirt】文件夹已经改成了【armsr】,机型文件也跟着改变的,查看源码文件夹在对应源码分支的[target/linux]里面查看,要么有【armvirt】,要么就是【armsr】

以前的机型文件一般为:

CONFIG_TARGET_armvirt=y
CONFIG_TARGET_armvirt_64=y
CONFIG_TARGET_armvirt_64_Default=y

现在的机型文件有些改为:

CONFIG_TARGET_armvirt=y
CONFIG_TARGET_armvirt_64=y
CONFIG_TARGET_armvirt_64_DEVICE_generic=y

如果源码文件为【armsr】的,机型文件一般为:

CONFIG_TARGET_armsr=y
CONFIG_TARGET_armsr_armv8=y
CONFIG_TARGET_armsr_armv8_DEVICE_generic=y

以上机型文件仅供参考,自己在对应源码SSH连接多看吧

2023年6月11号

1、修改了清理Actions空间操作记录的时间设置方式,以前是按天来计算的,现在是按分钟计算

2、修改了清理发布固件的操作方式,还是按保留个数计算,默认会自动保留【在线更新的云端】和【Amlogic/Rockchip系列打包的rootfs.tar.gz格式固件】,不被清理的,要清理就手动删除一下(6月11号11点,发现BUG,此清理方式,获取数据的时候,只能获取到前面的30个,如果你仓库的发布超过30个,就不能获取到后面的了,再加上如果你保留的个数超过30个的话,那就一直不会清理任何发布,建议超过30个的,现在保留特定需要的,其他都清理完了,然后在以后的使用当中别让发布个数超过30个就能正常使用了)

4、因为要搭配清理发布操作使用,在线更新的云端名称有改变,重新编译的才能使用,以前编译的检测不到了

5、增加了自动删除,因筛选CPU转换服务器而停止的工作流程


2023年6月3号

1、每次编译都自动检测一次上游仓库版本,上游有更新的话自动同步上游,同步分小版本和大版本,小版本不会改变您现有机型文件夹,不会改变【diy、files、patches、seed】等文件夹,大版本是直接把上游仓库整个覆盖您现的仓库,不管大小版本更新都会保留备份的,在根目录会多一个【backups】文件夹,里面就是您没更新之前的仓库所有文件,不想要此文件夹的时候直接删除就可以了

2、运行至【检测文件和对比上游版本】此步骤出错,就展开看看是不是同步了上游仓库,还是您仓库缺少了什么文件而停止了

3、diy-part.sh有修改,以前的个别控制都有改过,别拿以前的直接覆盖使用,重新设置一次吧

4、取消了不使用我仓库插件包的选择了,现在必定使用我仓库的插件包,因为我这个仓库是带本地编译的,有这个选择在,要多写很多东西,烦,直接取消

5、现在github删除文件夹都可以直接删除了,所以我以前的删除文件夹操作也取消了,只保留了建立机型文件夹的操作

6、我仓库能编译的源码,对方上游增加或者删除分支,您都可以根据上游自己改变分支号的,比如天灵的源码最近增加了【openwrt-23.05】,您仓库没有的,您可以自己添加上就可以了,或者对方上游删除了什么分支,你编译的时候,拉取源码就会出错,你对应的自己删除该分支号就行了,理论是可以支持所有分支,但是也要该分支可以正常编译才可以的,比如说有些分支太久没更新的,基本的依赖都没改过来,肯定不能编译的,还有些源码增加LUCI编译就出错的

7、修复了,以前在diy-part.sh设置修改我收集的插件包里面的插件名称,修改不了的情况,现在应该随便改了,只要您写的名称准确

8、那些上传网盘之类的,因为此功能的作者没更新仓库源码,基本都失效了,懒的折腾了,我仓库都删除了那些功能了,有懂搞的可以去上传功能的仓库修改修改来用


2023年5月13号

1、重新整理了所有源码的插件包,因技术有限,gl-ax1800源码增加不了docker,还有个别源码不能编译ssrplus和passwall的NaiveProxy,个别源码的vssr和istore可以编译成功,但是不能用,还有没有其他插件也存在此问题,等你们测试了

2、gl-ax1800源码的固件不能直接进行转换成Xwrt的固件,安装的时候会出错,然后卡死了,如果你用的是gl-ax1800源码编译的固件要注意,想用Xwrt的固件的固件,就先随便把gl-ax1800源码编译的固件安装成其他任意作者的固件再安装Xwrt的固件

3、把所有源码的主题插件都整理了一遍,因为有些主题太老了,支持不了好多现在新的插件,那些新插件名称在主题错位的还没啥,反正还能看到,能设置,很多主题直接是不显示该插件的存在,或者好多主题名字不一样,其实都是大同小异的主题,所以我那些主题干掉了。(18.06LUCI的主题比较好用的有 luci-theme-argon,luci-theme-design,luci-theme-opentopd,luci-theme-kucat,19.07之后的主题基本没几个可以选了,感谢这些主题作者的辛苦付出)

4、不管源码里面有没有luci-theme-argon,我都替换成jerrykuku大佬的luci-theme-argon主题了

5、自定义设置里面的(export Enable_IPV6_function="0")、(export Enable_IPV4_function="0")和(export Create_Ipv6_Lan="0")只能三选一的开启,如果你都同时开启的话,只会选择启用(export Enable_IPV6_function="1")

6、每次安装固件完毕,就是跑完码后,该运行的运行,该咋滴咋滴,全部搞定后就会进行重启,跑完码后,如果你使用页面后台进入固件是可以的,但是进入后因为相隔几十秒后(全部东西运行完毕大概是20-30秒,东西多的话时间要增加一点点)会进行重启,所以有些人进入后,修改了东西,没保存设置,因为才几十秒,很快就过去了,来不及按保存,然后造成你以为你设置了东西,但是过一会发现又没设置的情况,因为你没按保存,固件就重启了,应该要等重启后再来慢慢设置,如果请大家发现这个问题的时候莫慌


2023年4月22号

1、把autobuild仓库合拼到了这里了,以前拉autobuild仓库的应该都不可以用了,请重新拉取这个仓库吧,以前老的build-actions仓库也要重新拉取新的build-actions仓库使用(请不要继续拉取autobuild仓库使用,这个是我个人使用仓库)

2、编译教程全修改一遍了,看教程还不能启动编译的话,我只能说多看几次吧

3、增加了编译源码的选择,同作者源码的源码分支之间可以自由切换编译(每个作者源码的可支持选择什么分支,在settings.ini文件有写明)

4、晶晨系列固件不限制一个源码,理论上可以编译出rootfs.tar.gz包的,应该都可以打包使用,比较常用的有(天灵的openwrt-21.02分支、大雕的master分支、官方的master分支),固件编译跟打包分2次进行,这样免除了打包空间不足,或者编译+打包时间不足的问题,已经编译出了的rootfs.tar.gz可以使用手动启动打包程序,进行多次打包操作。(更新了amlogic和rockchip固件打包设置教程)

5、luci-app-oscam插件,云编译,编译不成功,云编译的时候切莫选择此插件,本地编译倒是可以编译成功。

6、大雕源码,有些机型编译增加mac80211驱动的时候会编译错误的,如果出现这个情况,自己带上日志找源码作者处理

7、我编译仓库里,增加大雕源码【gl-ax1800】分支选择,不是他 https://github.com/coolsnowwolf/lede 源码的分支,是他另外一个仓库 https://github.com/coolsnowwolf/openwrt-gl-ax1800 的源码,看他意思是专门给gl-ax1800路由器准备的,我看了下,也测试了一下,其实就是一个4.14内核的源码,有需要这个内核的朋友,也可以使用这个分支编译


✴️本地编译


本地Ubuntu一键编译OpenWrt固件

本地一键提取.config然后在云编译脚本使用



鸣谢!

感谢以下各位大佬(排名无分先后)

coolsnowwolf Lienol immortalwrt openwrt x-wrt P3TERX Hyy2001X dhxh ophub nicholas-opensource hx210 hyird World Peace klever1988 actions svenstaro jerrykuku

build-actions's People

Contributors

281677160 avatar github-actions[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

build-actions's Issues

云编译一直没成功,最近资源被封的厉害,本地编译的几个注意点,像我这样的编译新手可能会踩的坑,供参考

  1. 建议用国外云服务器编译,本地就没尝试了,网络肯定是个大坑,有梯子也没用,网络不稳定就要老命;
  2. 编译对硬盘有要求就不说了,本库大佬的脚本有提示,但是对内存也有要求,最好大一点,可用内存至少 1GB 以上,不够的话就加 swapfile 虚拟内存吧,增加的步骤网上一查就有,编译到某个步骤不动,然后报错很多都是这个原因;
  3. cmake 最好自己提前编译好,当然 $ apt install cmake 也行,但是我编译了一个和大佬库里一模一样的版本,随便搜一下都是 cmake 编译教程,目前是 3.21.3,可能不一样也行,我是以防万一,太多次编译没成功,不想再尝试了;
  4. $ make menuconfig 对终端显示大小竟然有要求,这个有点坑,你把 ssh 终端拉大一点就好了,起码 19*81 大小,否则会出现打不开 menu 自动跳过 config 步骤这样奇怪的问题,你人走开的话可能根本发现不了,更奇怪的是,如果窗口不够大,有时候进去 menu 了,但是竟然无法回车进入 Target System 选目标芯片,下面的选项可以进入,这种问题也太奇怪了,一般人根本想不到是哪里出问题了。。。
  5. 你用 ssh 登陆远程服务器编译的话,你得一直连着 ssh,否则网络问题断开后编译就中断了(国外服务器容易出现 ssh 间歇性断开的问题),你可以下载大佬的 git.io/pile.sh 脚本后改一下,把其中 make -j$(nproc) V=s 2>&1 |tee build.log 改为 nohup sh -c 'make -j$(nproc) V=s 2>&1 >build.log & echo $! > compile.pid' > nohup_sh.out 这样你断开 ssh 也会一直编译了,如果你在 ssh 断网前还想看到输出,并且想让后面的编译成功信息打印出来,可以在上面这句后面加一句 tail -n 100 --pid $(cat compile.pid) -s 5 -f build.log,每 5 秒钟看一下日志并跟随输出。
    希望大家少走弯路,编译愉快!

请教大佬一个问题

QQ截图20210818160733
本地编译,想把上面红圈处改回默认名字,如何操作?

改密码改回管理权
终端改回TTYD终端

感谢!

lienol源码编译错误

请老大查看以下,编译无法成功
make[2]: *** [package/Makefile:70: package/install] Error 255
make[1]: *** [package/Makefile:111: /Lienol_source/openwrt/staging_dir/target-x86_64_musl/stamp/.package_install] Error 2
make: *** [/Lienol_source/openwrt/include/toplevel.mk:230: world] Error 2

请教斐讯N1如何构建成完整的img文件

我用您的脚本编译N1的openwrt,得到两个文件openwrt-armvirt-64-Image和openwrt-armvirt-64-Image-initramfs,前者文件大小为8.73M,后者为356M(编译时去掉了一些包,所以比较小),都是没有后缀名的文件,不知道前者是不是boot分区引导文件,后者是openwrt的根分区文件,请教如何合成为一个完整的硬盘img文件,我之前编译x64版本都是得到一个完整的img文件,然后用写盘工具即可。

本地编译有两个问题请教大佬。另外,今天几次编译都失败了,提示没有bin这个文件夹。。。

1、最近几天,编译过两次,顺利结束后,发现OP_DIY目录下多了个.config,之前自定义文件不是config吗?不带点的。这两个现在到底是哪个在起作用啊?
2、每次都会自动把luci-app-argon-config这个编译进去,即使不选择这个插件,编译完成也有这个插件。全部清空缓存重新再来也不行。神奇!

谢谢!

请教一个小问题

现在想连接SSH进去配置固件就会停止编译,但停止编译后也会有一份配置文件,请问怎么能下载到这配置文件呢?

有个问题请老大帮忙解惑。。。

手头有个小米路由mini,想利用起来,但是不知道为啥一直编译不出来固件,就加了几个插件,按说体积不该超出啊。我看恩山上有人发布的mini固件,添加的有十几个插件都没事。

老大闲暇之时能不能测试一下看看能不能编译的出来。
用LEDE源码,然后加这几个插件:DDNSTO、TTYD、VSSR、Turbo ACC,如果空间还够,就再加上UPnP和KMS。

感谢感谢!

想添加自己修改后的主题,但是会和原本feed里面的主题重名,要怎么操作?

大佬想请教一下,如果想添加自己修改后的主题,但是会和原本feed里面的主题重名,要怎么操作?
把原来neobird里跳转ssr的链接和图标都改成openclash了。
https://github.com/eightsheep67/luci-theme-neobird.git

还有我还发现,我最新编译的这一次,我勾选了neobird和rosy主题,也编译进去了软件包里看得到,但是在固件系统主题选项里没有,我只好删了手动安装ipk,才显示出来。这个是我哪里设置错了吗?

哪个插件和luci-app-easymesh冲突?

编译到快结束时出现错误,日志节录如下:
2021-10-10T11:44:56.4698520Z Configuring python3-unittest.
2021-10-10T11:44:56.4699283Z Configuring python3-ctypes.
2021-10-10T11:44:56.4700043Z Configuring python3-readline.
2021-10-10T11:44:56.5469575Z Collected errors:
2021-10-10T11:44:56.5470427Z Configuring libgdbm.
2021-10-10T11:44:56.5473755Z * check_conflicts_for: The following packages conflict with wpad-openssl:
2021-10-10T11:44:56.5474709Z Configuring python3-gdbm.
2021-10-10T11:44:56.5475275Z * check_conflicts_for: hostapd *
2021-10-10T11:44:56.5476128Z * opkg_install_cmd: Cannot install package luci-app-easymesh.
2021-10-10T11:44:56.5477375Z * check_conflicts_for: The following packages conflict with wpad-openssl:
2021-10-10T11:44:56.5478079Z * check_conflicts_for: hostapd *
2021-10-10T11:44:56.5478909Z * opkg_install_cmd: Cannot install package wpad-openssl.
2021-10-10T11:44:56.5479648Z make[2]: *** [package/Makefile:70: package/install] Error 255
2021-10-10T11:44:56.5480638Z Configuring python3-sqlite3.
ssh进去配置make menuconfig发现wpad-openssl是必选的,不知道谁选了以后必须依赖它。取消luci-app-easymesh后编译通过,说明确实是这个luci-app-easymesh导致的冲突。

请教如何解?

大佬,想替换掉插件版本如何操作

想编译openclash dev分支的版本,我svn co了分支的luci-app-openclash,然后再make menuconfig中就出现两个openclash,必须同时勾选或者同时取消。
求大佬指教!

触发compile启动编译出错

在触发compile启动编译这步出错
Run cd $GITHUB_WORKSPACE
cp: cannot create regular file '.github/workflows/build-openwrt.yml': No such file or directory
rm 'build/Lede_source/.config'
rm '.github/workflows/build-openwrt.yml'
rm '.github/workflows/compile.yml'
rm '.github/workflows/synchronization.yml'
Error: Process completed with exit code 1.

脚本需要更新,报错luci-app-cupsd/Makefile&&luci-app-mosdns/Makefile

Collecting target info: doneWARNING: Makefile 'package/feeds/danshui/luci-app-cupsd/Makefile' has a dependency on 'luci-lib-ipkg', which does not exist WARNING: Makefile 'package/feeds/danshui/luci-app-mosdns/Makefile' has a dependency on 'mosdns_neo', which does not exist

目前只能这样 啦
sed -i 's/mosdns_neo/mosdns/g' ./package/feeds/danshui/luci-app-mosdns/Makefile
sudo rm -rf ./package/feeds/danshui/luci-app-cupsd
sudo rm -rf ./feeds/danshui/luci-app-cupsd

lienol源码编译luci-app-argon-config不可用

如题,lienol编译argon-config成功后不能使用。有没有可能是使用Lede 18.08LUCI。
...ib/lua/luci/model/cbi/argon-config/configuration.lua:3: 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'
...ib/lua/luci/model/cbi/argon-config/configuration.lua:3: in function 'func'
/usr/lib/lua/luci/cbi.lua:66: in function 'load'
/usr/lib/lua/luci/dispatcher.lua:1526: in function '_form'
/usr/lib/lua/luci/dispatcher.lua:1054: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:479: in function </usr/lib/lua/luci/dispatcher.lua:478>

'udp2raw-tunnel', which does not exist

老哥,这几次编译都失败了,我没有选择luci-app-udp2raw也会报如下的错误,不知道怎么解决。麻烦了。
WARNING: Makefile 'package/feeds/luci/luci-app-udp2raw/Makefile' has a dependency on 'udp2raw-tunnel', which does not exist

Oscam编译出问题

最近一周三次编译,均在Oscam上出问题而失败,从前不曾遇到过。日志如下:请问是哪里可能有问题?
ERROR: package/feeds/danshui/openwrt_oscam failed to build.
..................................................................................................................................................
void add_emu_reader(void);
^~~~~~~~~~~~~~
.c:52:7: warning: redundant redeclaration of 'stop_stream_server' [-Wredundant-decls]
void stop_stream_server(void);
^~~~~oscam~~~~~~~~~~~~~
oscam.c:47:7: note: previous declaration of 'stop_stream_server' was here
void stop_stream_server(void);
^~~~~~~~~~~~~~~~~~
oscam.c: In function 'write_versionfile':
oscam.c:388:34: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'time_t' {aka 'long long int'} [-Wformat=]
fprintf(fp, "Unix starttime: %ld\n", walltime);
~~^ ~~~~~~~~
%lld
.........................................................................................................................................................
...........................................................................................................................................................
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:446: Distribution/oscam.debug] Error 1
make[4]: *** [Makefile:418: all] Error 2
make[3]: *** [Makefile:156: /Lede_source/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oscam-r11704_c5b2e65/.built] Error 2
make[4]: Leaving directory '/Lede_source/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oscam-r11704_c5b2e65'
make[3]: Leaving directory '/Lede_source/openwrt/feeds/danshui/openwrt_oscam'
time: package/feeds/danshui/openwrt_oscam/compile#49.65#3.75#49.04
ERROR: package/feeds/danshui/openwrt_oscam failed to build.
make[2]: *** [package/Makefile:116: package/feeds/danshui/openwrt_oscam/compile] Error 1
make[2]: Leaving directory '/Lede_source/openwrt'
make[1]: *** [package/Makefile:110: /Lede_source/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/Lede_source/openwrt'
make: *** [/Lede_source/openwrt/include/toplevel.mk:230: world] Error 2
Error: Process completed with exit code 2.

编译完成后找不到固件

总耗时12分57秒就编译完成了,但是只有一个config、可以下载,找不到固件在哪里下载呢?

请教老大一个小米mini固件编译的问题

用的Lede_source源码,编译出来大概15m,刷新完固件,配置好上网环境,一切正常。但是只要一重启,所有配置就丢失了,这时查看软件包空闲空间,居然为0了,这到底是啥原因?

插件就添加了ttyd、ddnsto、VSSR和turboacc这四个。我看有些人发布的MINI固件添加十几个插件的都有,还有很多主题,也没这问题啊!

请教老大,这个是啥原因?有没有在添加上面几个插件的情况下减少固件体积的办法?

感谢!

有个疑惑?为什么 k2p 不管如何删减插件,固件大小总是超过 16MB?

我用的是 Lede源码。不管如何删减插件,只保留我必须的几个插件,都还是超过限制。我在其他仓库看到一个编译 k2p 的。他的插件比我选择的多,但是却只有 13MB。内核也是 5.4 。用的也是 Lede源码的 master 分支。是不是我哪里有问题呢?这是我的 config 文件:

CONFIG_TARGET_ramips=y
CONFIG_TARGET_ramips_mt7621=y
CONFIG_TARGET_ramips_mt7621_DEVICE_phicomm_k2p=y
CONFIG_PACKAGE_6in4=y
CONFIG_PACKAGE_6rd=y
CONFIG_PACKAGE_6to4=y
CONFIG_PACKAGE_adbyby=y
CONFIG_PACKAGE_dnsmasq_full_dhcpv6=y
CONFIG_PACKAGE_etherwake=y
CONFIG_PACKAGE_ip6tables=y
CONFIG_PACKAGE_ipv6helper=y
CONFIG_PACKAGE_kmod-ipt-nat6=y
CONFIG_PACKAGE_kmod-iptunnel=y
CONFIG_PACKAGE_kmod-iptunnel4=y
CONFIG_PACKAGE_kmod-nf-nat6=y
CONFIG_PACKAGE_kmod-sit=y
CONFIG_PACKAGE_libminiupnpc=y
CONFIG_PACKAGE_libnatpmp=y
CONFIG_PACKAGE_libstdcpp=y
# CONFIG_PACKAGE_luci-app-nlbwmon is not set
# CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_ShadowsocksR_Libev_Client is not set
CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_Xray=y
# CONFIG_PACKAGE_luci-app-ttyd is not set
# CONFIG_PACKAGE_luci-app-unblockmusic is not set
# CONFIG_PACKAGE_luci-app-vlmcsd is not set
# CONFIG_PACKAGE_luci-app-vsftpd is not set
CONFIG_PACKAGE_luci-app-watchcat=y
CONFIG_PACKAGE_luci-app-wolplus=y
CONFIG_PACKAGE_luci-app-zerotier=y
CONFIG_PACKAGE_luci-i18n-watchcat-zh-cn=y
CONFIG_PACKAGE_luci-i18n-wolplus-zh-cn=y
CONFIG_PACKAGE_luci-i18n-zerotier-zh-cn=y
CONFIG_PACKAGE_luci-proto-ipv6=y
CONFIG_PACKAGE_odhcp6c=y
CONFIG_PACKAGE_odhcp6c_ext_cer_id=0
CONFIG_PACKAGE_odhcpd-ipv6only=y
CONFIG_PACKAGE_odhcpd_ipv6only_ext_cer_id=0
CONFIG_PACKAGE_watchcat=y
CONFIG_PACKAGE_xray-core=y
CONFIG_PACKAGE_zerotier=y
CONFIG_PACKAGE_kmod-nf-conntrack-netlink=y
CONFIG_PACKAGE_libcap=y
# CONFIG_PACKAGE_libcap-bin is not set
CONFIG_PACKAGE_libwebsockets-full=y
CONFIG_PACKAGE_nlbwmon=y
CONFIG_PACKAGE_shadowsocksr-libev-ssr-local=y
CONFIG_PACKAGE_shadowsocksr-libev-ssr-redir=y
CONFIG_PACKAGE_ttyd=y
CONFIG_PACKAGE_vlmcsd=y
CONFIG_PACKAGE_vsftpd-alt=y
CONFIG_VSFTPD_USE_UCI_SCRIPTS=y

连续两天编译失败,麻烦请看一下是什么原因

make[3] -C target/linux compile
ERROR: target/linux failed to build.
make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
make: *** [/Lede_source/openwrt/include/toplevel.mk:230: world] Error 1
make[1]: Entering directory '/Lede_source/openwrt'
make[2]: Entering directory '/Lede_source/openwrt'
make[3]: Entering directory '/Lede_source/openwrt/target/linux'
make[4]: Entering directory '/Lede_source/openwrt/target/linux/ramips'
rm -f /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/localversion
/Lede_source/openwrt/scripts/kconfig.pl + /Lede_source/openwrt/target/linux/generic/config-5.4 /Lede_source/openwrt/target/linux/ramips/mt7621/config-5.4 > /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/.config.target
awk '/^(#[[:space:]]+)?CONFIG_KERNEL/{sub("CONFIG_KERNEL_","CONFIG_");print}' /Lede_source/openwrt/.config >> /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/.config.target
echo "# CONFIG_KALLSYMS_EXTRA_PASS is not set" >> /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/.config.target
echo "# CONFIG_KALLSYMS_ALL is not set" >> /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/.config.target
echo "CONFIG_KALLSYMS_UNCOMPRESSED=y" >> /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/.config.target
/Lede_source/openwrt/scripts/package-metadata.pl kconfig /Lede_source/openwrt/tmp/.packageinfo /Lede_source/openwrt/.config 5.4 > /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/.config.override
/Lede_source/openwrt/scripts/kconfig.pl 'm+' '+' /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/.config.target /dev/null /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/.config.override > /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/.config.set
mv /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/.config.set /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/.config.old
grep -v INITRAMFS /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/.config.old > /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/.config.set
echo 'CONFIG_INITRAMFS_SOURCE=""' >> /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/.config.set
echo '# CONFIG_INITRAMFS_FORCE is not set' >> /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/.config.set
rm -rf /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/modules
cmp -s /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/.config.set /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/.config.prev || { cp /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/.config.set /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/.config; cp /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/.config.set /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/.config.prev; }
export MAKEFLAGS= ; [ -d /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/user_headers ] || make -C /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187 KCFLAGS="-fmacro-prefix-map=/Lede_source/openwrt/build_dir/target-mipsel_24kc_musl=target-mipsel_24kc_musl" HOSTCFLAGS="-O2 -I/Lede_source/openwrt/staging_dir/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="mipsel-openwrt-linux-musl-" ARCH="mips" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" KBUILD_BUILD_TIMESTAMP="Wed Mar 30 10:22:37 2022" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/Lede_source/openwrt/staging_dir/host/lib" KBUILD_HOSTLDLIBS="-L/Lede_source/openwrt/staging_dir/host/lib" CONFIG_SHELL="bash" V='' cmd_syscalls= KERNELRELEASE=5.4.187 CC="mipsel-openwrt-linux-musl-gcc" INSTALL_HDR_PATH=/Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/user_headers headers_install
grep '=[ym]' /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/.config.set | LC_ALL=C sort | /Lede_source/openwrt/staging_dir/host/bin/mkhash md5 > /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/.vermagic
touch /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/.configured
rm -f /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/vmlinux /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/System.map
make -C /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187 KCFLAGS="-fmacro-prefix-map=/Lede_source/openwrt/build_dir/target-mipsel_24kc_musl=target-mipsel_24kc_musl" HOSTCFLAGS="-O2 -I/Lede_source/openwrt/staging_dir/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="mipsel-openwrt-linux-musl-" ARCH="mips" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" KBUILD_BUILD_TIMESTAMP="Wed Mar 30 10:22:37 2022" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/Lede_source/openwrt/staging_dir/host/lib" KBUILD_HOSTLDLIBS="-L/Lede_source/openwrt/staging_dir/host/lib" CONFIG_SHELL="bash" V='' cmd_syscalls= KERNELRELEASE=5.4.187 CC="mipsel-openwrt-linux-musl-gcc" olddefconfig
make[5]: Entering directory '/Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187'
scripts/kconfig/conf --olddefconfig Kconfig
net/sched/Kconfig:45: warning: menuconfig statement without prompt
net/Kconfig:478:warning: multi-line strings not supported

No change to .config

make[5]: Leaving directory '/Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187'
make -C /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187 KCFLAGS="-fmacro-prefix-map=/Lede_source/openwrt/build_dir/target-mipsel_24kc_musl=target-mipsel_24kc_musl" HOSTCFLAGS="-O2 -I/Lede_source/openwrt/staging_dir/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="mipsel-openwrt-linux-musl-" ARCH="mips" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" KBUILD_BUILD_TIMESTAMP="Wed Mar 30 10:22:37 2022" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/Lede_source/openwrt/staging_dir/host/lib" KBUILD_HOSTLDLIBS="-L/Lede_source/openwrt/staging_dir/host/lib" CONFIG_SHELL="bash" V='' cmd_syscalls= KERNELRELEASE=5.4.187 CC="mipsel-openwrt-linux-musl-gcc" vmlinux vmlinuz modules
make[5]: Entering directory '/Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187'
CALL scripts/checksyscalls.sh
CALL scripts/atomic/check-atomics.sh
CHK include/generated/compile.h
CC drivers/net/ethernet/ralink/mtk_eth_soc.o
drivers/net/ethernet/ralink/mtk_eth_soc.c: In function 'fe_init':
drivers/net/ethernet/ralink/mtk_eth_soc.c:1405:13: error: too few arguments to function 'of_get_mac_address'
mac_addr = of_get_mac_address(priv->dev->of_node);
^~~~~~~~~~~~~~~~~~
In file included from drivers/net/ethernet/ralink/mtk_eth_soc.c:26:
./include/linux/of_net.h:14:12: note: declared here
extern int of_get_mac_address(struct device_node *np, u8 *mac);
^~~~~~~~~~~~~~~~~~
make[9]: *** [scripts/Makefile.build:262: drivers/net/ethernet/ralink/mtk_eth_soc.o] Error 1
make[8]: *** [scripts/Makefile.build:497: drivers/net/ethernet/ralink] Error 2
make[7]: *** [scripts/Makefile.build:497: drivers/net/ethernet] Error 2
make[6]: *** [scripts/Makefile.build:497: drivers/net] Error 2
make[5]: Leaving directory '/Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187'
make[5]: *** [Makefile:1734: drivers] Error 2
make[4]: *** [Makefile:25: /Lede_source/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.187/.modules] Error 2
make[4]: Leaving directory '/Lede_source/openwrt/target/linux/ramips'
make[3]: Leaving directory '/Lede_source/openwrt/target/linux'
time: target/linux/compile#5.39#1.81#6.84
make[3]: *** [Makefile:11: compile] Error 2
ERROR: target/linux failed to build.
make[2]: *** [target/Makefile:25: target/linux/compile] Error 1
make[2]: Leaving directory '/Lede_source/openwrt'
make[1]: *** [target/Makefile:18: /Lede_source/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.target_compile] Error 2
make[1]: Leaving directory '/Lede_source/openwrt'
make: *** [/Lede_source/openwrt/include/toplevel.mk:230: world] Error 2
Error: Process completed with exit code 2.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.