yaya131 / AX6-AX3600_Almighty-Edition_Config

此版本是全能版本,也是自定义版本,包含无NSS的AX6和AX3600的编译配置,涵盖机型:AX6-5.15-AX3600-5.15-AX9000-5.15,想要榨干路由器性能和内存的朋友可以尝试刷入。支持已刷WEB升级的openwrt固件,刷入方式:首选恢复出厂设置,然后再系统升级不保留配置刷入。全能版每天都会拉取最新源码更新
MIT License
267 stars 286 forks source link

全能版编译失败的可能原因 #44

Open Louis0168 opened 1 year ago

Louis0168 commented 1 year ago

编译过程中报错地方的info在6072行开始出现,后续为

SHELL=flock /workdir/openwrt/tmp/.upx-2022-01-15.tar.gz.flock -c ' /workdir/openwrt/scripts/dl_github_archive.py --dl-dir="/workdir/openwrt/dl" --url="https://github.com/upx/upx.git" --version="a46b63817a9c6ad5af7cf519332e859f11558592" --subdir="upx-2022-01-15-a46b6381" --source="upx-2022-01-15.tar.gz" --hash="x" || ( echo "Checking out files from the git repository..."; mkdir -p /workdir/openwrt/tmp/dl && cd /workdir/openwrt/tmp/dl && rm -rf upx-2022-01-15-a46b6381 && [ \! -d upx-2022-01-15-a46b6381 ] && git clone https://github.com/upx/upx.git upx-2022-01-15-a46b6381 && (cd upx-2022-01-15-a46b6381 && git checkout a46b63817a9c6ad5af7cf519332e859f11558592 && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=cd upx-2022-01-15-a46b6381 && git log -1 --format='\''@%ct'\''` && rm -rf upx-2022-01-15-a46b6381/.git && tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c upx-2022-01-15-a46b6381 | gzip -nc > /workdir/openwrt/tmp/dl/upx-2022-01-15.tar.gz && mv /workdir/openwrt/tmp/dl/upx-2022-01-15.tar.gz /workdir/openwrt/dl/ && rm -rf upx-2022-01-15-a46b6381; ); '

upx-2022-01-15.tar.gz: Download from https://github.com/upx/upx.git failed

upx-2022-01-15.tar.gz:` Requires sha256sum for verification

Checking out files from the git repository...

Cloning` into 'upx-2022-01-15-a46b6381'...

fatal: reference is not a tree: a46b63817a9c6ad5af7cf519332e859f11558592

make[3]: *** [Makefile:67: /workdir/openwrt/dl/upx-2022-01-15.tar.gz] Error 128

make[3]: Leaving directory '/workdir/openwrt/package/lean/upx'

time: package/lean/upx/host-compile#5.60#0.64#4.66

ERROR: package/lean/upx [host] failed to build.

make[2]: Leaving directory '/workdir/openwrt'

make[2]: *** [package/Makefile:114: package/lean/upx/host/compile] Error 1

make[1]: *** [package/Makefile:110: /workdir/openwrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2

make[1]: Leaving directory '/workdir/openwrt'

make: *** [/workdir/openwrt/include/toplevel.mk:230: world] Error 2

Error: Process completed with exit code 2.

因此这里是拉取upx出现了问题,在upx的仓库里对应2022-01-15的commit哈希值为1050de5171f70fd4ba113016e4db994e898c7be3,因此我猜测有可能是对应的八位短commit hash与仓库不符。因此可否考虑在编译的代码中修改对应的hash值或考虑调整upx的版本使其可以成功编译出包。以及可以查看是否还有拉取的其他版本是否存在类似的可能问题