Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

360T7 immrotalwrt 无法成功编译 #998

Open
liyiranlab opened this issue Nov 14, 2024 · 0 comments
Open

360T7 immrotalwrt 无法成功编译 #998

liyiranlab opened this issue Nov 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@liyiranlab
Copy link

问题描述

360T7 immrotalwrt 无法成功编译

重现步骤

immrotalwrt主线,360t7无法编译成功

版本

r32419-83ad25fcaf

运行平台

immrotalwrt

日志

kdir -p /home/ran/360T7/immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/stamp
SHELL= flock /home/ran/360T7/immortalwrt/tmp/.root-copy.flock -c 'cp -fpR /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/mt76-2024.10.11.1ecca0e77/.pkgdir/kmod-mt7981-firmware/. /home/ran/360T7/immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/'
touch /home/ran/360T7/immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/stamp/.kmod-mt7981-firmware_installed
echo "kmod-mt7981-firmware" >> /home/ran/360T7/immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/mt76.default.install
make[3]: Leaving directory '/home/ran/360T7/immortalwrt/package/kernel/mt76'
time: package/kernel/mt76/compile#1.32#1.80#5.51
make[3]: Entering directory '/home/ran/360T7/immortalwrt/package/libs/nettle'
mkdir -p /home/ran/360T7/immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/stamp
echo '8' | cmp -s - /home/ran/360T7/immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/libnettle.version || { echo '8' > /home/ran/360T7/immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/libnettle.version; }
SHELL= flock /home/ran/360T7/immortalwrt/tmp/.root-copy.flock -c 'cp -fpR /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/nettle-3.9.1/.pkgdir/libnettle/. /home/ran/360T7/immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/'
touch /home/ran/360T7/immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/stamp/.libnettle_installed
echo "libnettle" >> /home/ran/360T7/immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/nettle.default.install
make[3]: Leaving directory '/home/ran/360T7/immortalwrt/package/libs/nettle'
time: package/libs/nettle/compile#0.15#0.25#0.84
make[3]: Entering directory '/home/ran/360T7/immortalwrt/package/libs/uclient'
mkdir -p /home/ran/360T7/immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/stamp
echo '20201210' | cmp -s - /home/ran/360T7/immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/libuclient.version || { echo '20201210' > /home/ran/360T7/immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/libuclient.version; }
SHELL= flock /home/ran/360T7/immortalwrt/tmp/.root-copy.flock -c 'cp -fpR /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/uclient-2024.10.22
88ae8f20/.pkgdir/libuclient/. /home/ran/360T7/immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/'
touch /home/ran/360T7/immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/stamp/.libuclient_installed
echo "libuclient" >> /home/ran/360T7/immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/uclient.default.install
mkdir -p /home/ran/360T7/immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/stamp
SHELL= flock /home/ran/360T7/immortalwrt/tmp/.root-copy.flock -c 'cp -fpR /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/uclient-2024.10.2288ae8f20/.pkgdir/uclient-fetch/. /home/ran/360T7/immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/'
touch /home/ran/360T7/immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/stamp/.uclient-fetch_installed
echo "uclient-fetch" >> /home/ran/360T7/immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/uclient.default.install
make[3]: Leaving directory '/home/ran/360T7/immortalwrt/package/libs/uclient'
time: package/libs/uclient/compile#0.12#0.23#0.49
make[3]: Entering directory '/home/ran/360T7/immortalwrt/package/luci-app-aliyundrive-webdav'
mkdir -p /home/ran/360T7/immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/stamp
SHELL= flock /home/ran/360T7/immortalwrt/tmp/.root-copy.flock -c 'cp -fpR /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/.pkgdir/luci-app-aliyundrive-webdav/. /home/ran/360T7/immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/'
touch /home/ran/360T7/immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/stamp/.luci-app-aliyundrive-webdav_installed
rm -rf /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn
mkdir -p /home/ran/360T7/immortalwrt/bin/targets/mediatek/filogic/packages /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn /home/ran/360T7/immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo
install -d -m0755 /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn/etc/uci-defaults
echo "uci set luci.languages.zh_cn='简体中文 (Chinese Simplified)'; uci commit luci" > /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn/etc/uci-defaults/luci-i18n-aliyundrive-webdav-zh-cn
install -d -m0755 /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn/usr/lib/lua/luci/i18n
po2lmo /home/ran/360T7/immortalwrt/package/luci-app-aliyundrive-webdav/po/zh_Hans/aliyundrive-webdav.po /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn/usr/lib/lua/luci/i18n/aliyundrive-webdav.zh-cn.lmo;
find /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn -name 'CVS' -o -name '.svn' -o -name '.#' -o -name '
'| xargs -r rm -rf
export CROSS="aarch64-openwrt-linux-musl-" NO_RENAME=1 ; NM="aarch64-openwrt-linux-musl-nm" STRIP="/home/ran/360T7/immortalwrt/staging_dir/host/bin/sstrip -z" STRIP_KMOD="/home/ran/360T7/immortalwrt/scripts/strip-kmod.sh" PATCHELF="/home/ran/360T7/immortalwrt/staging_dir/host/bin/patchelf" /home/ran/360T7/immortalwrt/scripts/rstrip.sh /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn
install -d -m0755 /home/ran/360T7/immortalwrt/bin/packages/aarch64_cortex-a53/base/tmp
mkdir -p /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/apk-all/luci-i18n-aliyundrive-webdav-zh-cn/
mkdir -p /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn/lib/apk/packages/
(cd /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/apk-all/luci-i18n-aliyundrive-webdav-zh-cn; )
( echo "#!/bin/sh"; echo "[ "${IPKG_NO_SCRIPT}" = "1" ] && exit 0"; echo "[ -s "${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". ${IPKG_INSTROOT}/lib/functions.sh"; echo 'export root="${IPKG_INSTROOT}"'; echo 'export pkgname="luci-i18n-aliyundrive-webdav-zh-cn"'; echo "add_group_and_user"; [ ! -f /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/apk-all/luci-i18n-aliyundrive-webdav-zh-cn/postinst-pkg ] || cat "/home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/apk-all/luci-i18n-aliyundrive-webdav-zh-cn/postinst-pkg"; echo "default_postinst"; ) > /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/apk-all/luci-i18n-aliyundrive-webdav-zh-cn/post-install;
( echo "#!/bin/sh"; echo "[ -s "${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". ${IPKG_INSTROOT}/lib/functions.sh"; echo 'export root="${IPKG_INSTROOT}"'; echo 'export pkgname="luci-i18n-aliyundrive-webdav-zh-cn"'; [ ! -f /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/apk-all/luci-i18n-aliyundrive-webdav-zh-cn/prerm-pkg ] || cat "/home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/apk-all/luci-i18n-aliyundrive-webdav-zh-cn/prerm-pkg"; echo "default_prerm"; ) > /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/apk-all/luci-i18n-aliyundrive-webdav-zh-cn/pre-deinstall;
if [ -n "" ]; then echo > /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn/lib/apk/packages/luci-i18n-aliyundrive-webdav-zh-cn.rusers; fi;
if [ -n "" ]; then echo > /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn/lib/apk/packages/luci-i18n-aliyundrive-webdav-zh-cn.alternatives; fi;
(cd /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn && find . -type f,l -printf "/%P\n" > /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn/lib/apk/packages/luci-i18n-aliyundrive-webdav-zh-cn.list)

Move conffiles to IDIR and build conffiles_static with csums

if [ -f /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/apk-all/luci-i18n-aliyundrive-webdav-zh-cn/conffiles ]; then mv -f /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/apk-all/luci-i18n-aliyundrive-webdav-zh-cn/conffiles /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn/lib/apk/packages/luci-i18n-aliyundrive-webdav-zh-cn.conffiles; for file in $(cat /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn/lib/apk/packages/luci-i18n-aliyundrive-webdav-zh-cn.conffiles); do [ -f /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn/$file ] || continue; csum=$(/home/ran/360T7/immortalwrt/staging_dir/host/bin/mkhash sha256 /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn/$file); echo $file $csum >> /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn/lib/apk/packages/luci-i18n-aliyundrive-webdav-zh-cn.conffiles_static; done; fi

Some package (base-files) manually append stuff to conffiles

Append stuff from it and delete the CONTROL directory since everything else should be migrated

if [ -f /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn/CONTROL/conffiles ]; then echo $(IDIR_luci-i18n-aliyundrive-webdav-zh-cn)/CONTROL/conffiles >> /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn/lib/apk/packages/luci-i18n-aliyundrive-webdav-zh-cn.conffiles; for file in $(cat /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn/CONTROL/conffiles); do [ -f /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn/$file ] || continue; csum=$(/home/ran/360T7/immortalwrt/staging_dir/host/bin/mkhash sha256 /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn/$file); echo $file $csum >> /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn/lib/apk/packages/luci-i18n-aliyundrive-webdav-zh-cn.conffiles_static; done; rm -rf /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn/CONTROL/conffiles; fi
if [ -z "$(ls -A /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn/CONTROL 2>/dev/null)" ]; then rm -rf /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn/CONTROL; else echo "CONTROL directory /home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn/CONTROL is not empty! This is not right and should be checked!" >&2; exit 1; fi
/home/ran/360T7/immortalwrt/staging_dir/host/bin/fakeroot /home/ran/360T7/immortalwrt/staging_dir/host/bin/apk mkpkg --info "name:luci-i18n-aliyundrive-webdav-zh-cn" --info "version:2.3.3-1" --info "description:Translation for luci-app-aliyundrive-webdav - 简体中文 (Chinese Simplified)" --info "arch:all" --info "license:MIT" --info "origin:feeds/base/luci-app-aliyundrive-webdav" --info "url:" --info "maintainer:messense [email protected]" --info "provides:" --script "post-install:/home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/apk-all/luci-i18n-aliyundrive-webdav-zh-cn/post-install" --script "pre-deinstall:/home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/apk-all/luci-i18n-aliyundrive-webdav-zh-cn/pre-deinstall" --info "depends:libc luci-app-aliyundrive-webdav" --files "/home/ran/360T7/immortalwrt/build_dir/target-aarch64_cortex-a53_musl/luci-app-aliyundrive-webdav/ipkg-all/luci-i18n-aliyundrive-webdav-zh-cn" --output "/home/ran/360T7/immortalwrt/bin/packages/aarch64_cortex-a53/base/luci-i18n-aliyundrive-webdav-zh-cn-2.3.3-1.apk" --sign "/home/ran/360T7/immortalwrt/private-key.pem"
ERROR: info field 'version' has invalid value: package version is invalid
ERROR: failed to create package: /home/ran/360T7/immortalwrt/bin/packages/aarch64_cortex-a53/base/luci-i18n-aliyundrive-webdav-zh-cn-2.3.3-1.apk: package version is invalid
make[3]: *** [/home/ran/360T7/immortalwrt/feeds/luci/luci.mk:378: /home/ran/360T7/immortalwrt/bin/packages/aarch64_cortex-a53/base/luci-i18n-aliyundrive-webdav-zh-cn-2.3.3-1.apk] Error 99
make[3]: Leaving directory '/home/ran/360T7/immortalwrt/package/luci-app-aliyundrive-webdav'
time: package/luci-app-aliyundrive-webdav/compile#0.89#0.40#1.96
ERROR: package/luci-app-aliyundrive-webdav failed to build.
make[2]: *** [package/Makefile:184: package/luci-app-aliyundrive-webdav/compile] Error 1
make[2]: Leaving directory '/home/ran/360T7/immortalwrt'
make[1]: *** [package/Makefile:178: /home/ran/360T7/immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/ran/360T7/immortalwrt'
make: *** [/home/ran/360T7/immortalwrt/include/toplevel.mk:248: world] Error 2

@liyiranlab liyiranlab added the bug Something isn't working label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant