coolsnowwolf / lede

Lean's LEDE source
Other
29.83k stars 19.53k forks source link

编译k2路由器固件时出错,请教大神如何解决,谢谢! #8833

Open boeu1688 opened 2 years ago

boeu1688 commented 2 years ago

反馈bug/问题模板,提建议请删除

1.关于你要提交的问题

Q:是否搜索了issue (使用 "x" 选择)

2. 详细叙述

(1) 具体问题

A:Makefile 'package/feeds/telephony/yate/Makefile' has a build dependency on 'fakeuname/host', which does not exist

(2) 路由器型号和固件版本

A:路由器是k2,固件版本是PSG1208

(3) 详细日志

A: sed -i "s/Installed-Time: ./Installed-Time: 1644066526/" /home/openwrt/lede/build_dir/target-mipsel_24kc_musl/root-ramips/usr/lib/opkg/status rm -rf /home/openwrt/lede/build_dir/target-mipsel_24kc_musl/root-ramips/boot /home/openwrt/lede/build_dir/target-mipsel_24kc_musl/root-ramips/tmp/ /home/openwrt/lede/build_dir/target-mipsel_24kc_musl/root-ramips/usr/lib/opkg/info/.postinst /home/openwrt/lede/build_dir/target-mipsel_24kc_musl/root-ramips/usr/lib/opkg/lists/ /home/openwrt/lede/build_dir/target-mipsel_24kc_musl/root-ramips/var/lock/.lock find /home/openwrt/lede/build_dir/target-mipsel_24kc_musl/root-ramips/ -mindepth 1 -execdir touch -hcd "@1644066526" "{}" + find: The relative path 'Files/WindowsApps/CanonicalGroupLimited.Ubuntu18.04onWindows_1804.2020.824.0_x64__79rhkp1fndgsc' is included in the PATH environment variable, which is insecure in combination with the -execdir action of find. Please remove that entry from $PATH package/Makefile:66: recipe for target 'package/install' failed make[2]: [package/install] Error 1 make[2]: Leaving directory '/home/openwrt/lede' package/Makefile:111: recipe for target '/home/openwrt/lede/staging_dir/target-mipsel_24kc_musl/stamp/.package_install' failed make[1]: [/home/openwrt/lede/staging_dir/target-mipsel_24kc_musl/stamp/.package_install] Error 2 make[1]: Leaving directory '/home/openwrt/lede' /home/openwrt/lede/include/toplevel.mk:228: recipe for target 'world' failed make: *** [world] Error 2

slipdaly commented 2 years ago

我的也出问题了,估计被谁提的代码搞坏了 云编译日志:https://github.com/slipdaly/Build-OpenWrt-k1k2/runs/5062022961?check_suite_focus=true 2022-02-04T05:29:11.4998393Z 1750 entries written to /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/build_dir/target-mipsel_24kc_musl/ncurses-6.2/ipkg-install/usr/share/terminfo 2022-02-04T05:29:11.5005809Z ** built new /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/build_dir/target-mipsel_24kc_musl/ncurses-6.2/ipkg-install/usr/share/terminfo 2022-02-04T05:29:11.5049328Z ** sym-linked /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/build_dir/target-mipsel_24kc_musl/ncurses-6.2/ipkg-install/usr/lib/terminfo for compatibility 2022-02-04T05:29:11.5064797Z installing std 2022-02-04T05:29:11.5079987Z installing stdcrt 2022-02-04T05:29:11.5093612Z installing vt100 2022-02-04T05:29:11.5107540Z installing vt300 2022-02-04T05:29:11.5132599Z finished install.data 2022-02-04T05:29:11.5137579Z make[5]: Leaving directory '/home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/build_dir/target-mipsel_24kc_musl/ncurses-6.2/misc' 2022-02-04T05:29:11.5141327Z make[4]: Leaving directory '/home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/build_dir/target-mipsel_24kc_musl/ncurses-6.2' 2022-02-04T05:29:11.5142107Z touch /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/build_dir/target-mipsel_24kc_musl/ncurses-6.2/.built 2022-02-04T05:29:11.5172500Z rm -rf /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/tmp/stage-ncurses 2022-02-04T05:29:11.5194092Z mkdir -p /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/tmp/stage-ncurses/host /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/staging_dir/target-mipsel_24kc_musl/packages 2022-02-04T05:29:11.5227724Z cp -fpR /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/build_dir/target-mipsel_24kc_musl/ncurses-6.2/ipkg-install/* /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/tmp/stage-ncurses 2022-02-04T05:29:11.6344421Z for lib in ncurses panel menu form; do for so in /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/tmp/stage-ncurses/usr/lib/lib${lib}w.so*; do ln -s ${so##*/} ${so%w.so*}.so${so##*w.so}; done; done 2022-02-04T05:29:11.6458473Z ln -s . /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/tmp/stage-ncurses/usr/include/ncursesw 2022-02-04T05:29:11.6479982Z mipsel-openwrt-linux-musl-ar rc /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/tmp/stage-ncurses/usr/lib/libtinfo.a 2022-02-04T05:29:11.6506825Z install -d -m0755 /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/tmp/stage-ncurses/host/bin 2022-02-04T05:29:11.6532034Z cp -fpR /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/build_dir/target-mipsel_24kc_musl/ncurses-6.2/ipkg-install/usr/bin/ncursesw6-config /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/tmp/stage-ncurses/host/bin/ 2022-02-04T05:29:11.6563127Z /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/staging_dir/host/bin/sed -i -e 's,^\(prefix\|exec_prefix\)=.*,\1=/home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/staging_dir/target-mipsel_24kc_musl/usr,g' -e 's/$INCS //g' /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/tmp/stage-ncurses/host/bin/ncursesw6-config 2022-02-04T05:29:11.6587844Z ln -sf /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/staging_dir/target-mipsel_24kc_musl/host/bin/ncursesw6-config /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/tmp/stage-ncurses/usr/bin/ncursesw6-config 2022-02-04T05:29:11.6611754Z find /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/tmp/stage-ncurses -name '*.la' | xargs -r rm -f; 2022-02-04T05:29:11.6668989Z if [ -f /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/staging_dir/target-mipsel_24kc_musl/packages/ncurses.list ]; then /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/scripts/clean-package.sh "/home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/staging_dir/target-mipsel_24kc_musl/packages/ncurses.list" "/home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/staging_dir/target-mipsel_24kc_musl"; fi 2022-02-04T05:29:11.6685723Z if [ -d /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/tmp/stage-ncurses ]; then (cd /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/tmp/stage-ncurses; find ./ > /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/tmp/stage-ncurses.files); SHELL= flock /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/tmp/.staging-dir.flock -c ' mv /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/tmp/stage-ncurses.files /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/staging_dir/target-mipsel_24kc_musl/packages/ncurses.list && cp -fpR /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/tmp/stage-ncurses/* /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/staging_dir/target-mipsel_24kc_musl/; '; fi 2022-02-04T05:29:11.7913513Z rm -rf /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/tmp/stage-ncurses 2022-02-04T05:29:11.8281098Z touch /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.ncurses_installed 2022-02-04T05:29:11.8304577Z make[3]: Leaving directory '/home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/package/libs/ncurses' 2022-02-04T05:29:11.8313067Z time: package/libs/ncurses/compile#38.96#7.54#50.69 2022-02-04T05:29:11.8325742Z make[2]: Leaving directory '/home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt' 2022-02-04T05:29:11.8334803Z make[1]: *** [package/Makefile:110: /home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2 2022-02-04T05:29:11.8341297Z make[1]: Leaving directory '/home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt' 2022-02-04T05:29:11.8346360Z make: *** [/home/runner/work/Build-OpenWrt-k1k2/Build-OpenWrt-k1k2/openwrt/include/toplevel.mk:230: world] Error 2 2022-02-04T05:29:11.8423319Z ##[error]Process completed with exit code 2. 2022-02-04T05:29:11.8589594Z Post job cleanup. 2022-02-04T05:29:12.1317438Z [command]/usr/bin/git version

WYC-2020 commented 2 years ago

你这显然看起来是path问题呢,并且看你这个应该不是ubuntu编译把,应该是win10那个自带模拟器编译的吧,应该和代码没关系

boeu1688 commented 2 years ago

我用的是win10自带的Linux子系统,是不是必须要用虚拟机或者实体机安装Ubuntu系统才行?

WYC-2020 commented 2 years ago

@boeu1688 这就不清楚了我从来不用win10自带的子系统 我都是虚拟机安装ubuntu 来编译的,这个问题你只能等用这个子系统编译的人给你说了 ,我记得以前有一个子系统编译的问题也是这个path问题

boeu1688 commented 2 years ago

好勒,我去整个虚拟机安装Ubuntu再编译试试,有问题再来请教

xueJLcat commented 2 years ago

我使用了ubuntu20.04.3和azure云20.04.3编都出现同样报错 若已解决请问如何解决相同报错。 谢谢

WYC-2020 commented 2 years ago

有时间看下吧,因为我都是编译x86 其他的型号很少编译

xueJLcat commented 2 years ago

我编译的是树莓派4b的。同报这个错

xueJLcat commented 2 years ago

官方仓库编译成功。lean的报题主类似的错误

AdoShan commented 2 years ago

@boeu1688 这就不清楚了我从来不用win10自带的子系统 我都是虚拟机安装ubuntu 来编译的,这个问题你只能等用这个子系统编译的人给你说了 ,我记得以前有一个子系统编译的问题也是这个path问题

大佬,我这个错误能帮忙看看啥原因吗,每次都是卡在同一个地方。我使用Ubuntu20.04.3LST生成并上传了.config文件并编译,编译固件的第11923行开始报的错误 make: *** [/workdir/openwrt/include/toplevel.mk:230: world] Error 2 Error: Process completed with exit code 2.

anjue39 commented 2 years ago

@boeu1688 这就不清楚了我从来不用win10自带的子系统 我都是虚拟机安装ubuntu 来编译的,这个问题你只能等用这个子系统编译的人给你说了 ,我记得以前有一个子系统编译的问题也是这个path问题

大佬,我这个错误能帮忙看看啥原因吗,每次都是卡在同一个地方。我使用Ubuntu20.04.3LST生成并上传了.config文件并编译,编译固件的第11923行开始报的错误 make: *** [/workdir/openwrt/include/toplevel.mk:230: world] Error 2 Error: Process completed with exit code 2.

我也经常遇到这个问题