lede icon indicating copy to clipboard operation
lede copied to clipboard

flex patch

Open pengdongmin opened this issue 5 years ago • 3 comments

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

1.关于你要提交的问题

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

  • [x] 没有类似的issue

2. 详细叙述

(1) 具体问题

A: flex patch 出错,编译了几次都是这个问题,不知道怎么解决 Patch failed! Please fix ./patches/200-build-AC_USE_SYSTEM_EXTENSIONS-in-configure.ac.patch! ERROR: tools/flex failed to build.

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

A: 环境:wsl ubuntu 20.04 LTS 小米路由器4c MT7628

(3) 详细日志

A: time: tools/libtool/compile#0.04#0.64#2.29 make[3]: Entering directory '/home/mzp/lede/tools/flex' . /home/mzp/lede/include/shell.sh; gzip -dc /home/mzp/lede/dl/flex-2.6.4.tar.gz | tar -C /home/mzp/lede/build_dir/host/flex-2.6.4/.. -xf - [ ! -d ./src/ ] || cp -fpR ./src/* /home/mzp/lede/build_dir/host/flex-2.6.4

Applying ./patches/100-disable-tests-docs.patch using plaintext: patching file Makefile.am

Applying ./patches/110-gcc720-segfault.patch using plaintext: (Stripping trailing CRs from patch; use --binary to disable.) patching file configure.ac (Stripping trailing CRs from patch; use --binary to disable.) patching file src/scan.l

Applying ./patches/200-build-AC_USE_SYSTEM_EXTENSIONS-in-configure.ac.patch using plaintext: patching file configure.ac Hunk #1 FAILED at 25. 1 out of 1 hunk FAILED -- saving rejects to file configure.ac.rej Patch failed! Please fix ./patches/200-build-AC_USE_SYSTEM_EXTENSIONS-in-configure.ac.patch! make[3]: *** [Makefile:40: /home/mzp/lede/build_dir/host/flex-2.6.4/.preparedd42aa426934e99399a0db84c3499850c_6664517399ebbbc92a37c5bb081b5c53] Error 1 make[3]: Leaving directory '/home/mzp/lede/tools/flex' time: tools/flex/compile#0.17#1.06#2.36 ERROR: tools/flex failed to build. make[2]: *** [tools/Makefile:159: tools/flex/compile] Error 1 make[2]: Leaving directory '/home/mzp/lede' make[1]: *** [tools/Makefile:155: /home/mzp/lede/staging_dir/host/stamp/.tools_compile_yyynyynnyyyynyyyyyynyynnyyynyyyyyyyyyyyyyyyyynynnyyyyyyyyyy] Error 2 make[1]: Leaving directory '/home/mzp/lede' make: *** [/home/mzp/lede/include/toplevel.mk:230: world] Error 2

pengdongmin avatar Oct 08 '21 08:10 pengdongmin

补丁打失败了,按补丁的内容修改了,在做补丁,然后替换原来那个就是了

WYC-2020 avatar Oct 08 '21 10:10 WYC-2020

补丁打失败了,按补丁的内容修改了,在做补丁,然后替换原来那个就是了

第一次接触这个,可以说一下怎么修改吗?谢谢了

pengdongmin avatar Oct 08 '21 11:10 pengdongmin

编译成功了

pengdongmin avatar Oct 09 '21 12:10 pengdongmin