Closed ChaingTsung closed 12 months ago
会导致luci-app-passwall、luci-app-passwall2编译失败
...
-- [ /home/yoki/openwrt/staging_dir/host/share/cmake-3.27/Modules/FindBoost.cmake:2257 ] Searching for SYSTEM_LIBRARY_RELEASE: boost_system-gcc12-mt-1_83;boost_system-gcc12-mt;boost_system-gcc12-mt;boost_system-mt-1_83;boost_system-mt;boost_system-mt;boost_system-mt;boost_system
-- [ /home/yoki/openwrt/staging_dir/host/share/cmake-3.27/Modules/FindBoost.cmake:807 ] Boost_LIBRARY_DIR_RELEASE = "/home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/lib"
-- [ /home/yoki/openwrt/staging_dir/host/share/cmake-3.27/Modules/FindBoost.cmake:809 ] _boost_LIBRARY_SEARCH_DIRS_RELEASE = "/home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/lib;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH"
-- [ /home/yoki/openwrt/staging_dir/host/share/cmake-3.27/Modules/FindBoost.cmake:2312 ] Searching for SYSTEM_LIBRARY_DEBUG: boost_system-gcc12-mt-d-1_83;boost_system-gcc12-mt-d;boost_system-gcc12-mt-d;boost_system-mt-d-1_83;boost_system-mt-d;boost_system-mt-d;boost_system-mt;boost_system
-- [ /home/yoki/openwrt/staging_dir/host/share/cmake-3.27/Modules/FindBoost.cmake:807 ] Boost_LIBRARY_DIR_DEBUG = "/home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/lib"
-- [ /home/yoki/openwrt/staging_dir/host/share/cmake-3.27/Modules/FindBoost.cmake:809 ] _boost_LIBRARY_SEARCH_DIRS_DEBUG = "/home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/lib;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH"
-- [ /home/yoki/openwrt/staging_dir/host/share/cmake-3.27/Modules/FindBoost.cmake:2257 ] Searching for PROGRAM_OPTIONS_LIBRARY_RELEASE: boost_program_options-gcc12-mt-1_83;boost_program_options-gcc12-mt;boost_program_options-gcc12-mt;boost_program_options-mt-1_83;boost_program_options-mt;boost_program_options-mt;boost_program_options-mt;boost_program_options
-- [ /home/yoki/openwrt/staging_dir/host/share/cmake-3.27/Modules/FindBoost.cmake:807 ] Boost_LIBRARY_DIR_RELEASE = "/home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/lib"
-- [ /home/yoki/openwrt/staging_dir/host/share/cmake-3.27/Modules/FindBoost.cmake:809 ] _boost_LIBRARY_SEARCH_DIRS_RELEASE = "/home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/lib;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH"
-- [ /home/yoki/openwrt/staging_dir/host/share/cmake-3.27/Modules/FindBoost.cmake:2312 ] Searching for PROGRAM_OPTIONS_LIBRARY_DEBUG: boost_program_options-gcc12-mt-d-1_83;boost_program_options-gcc12-mt-d;boost_program_options-gcc12-mt-d;boost_program_options-mt-d-1_83;boost_program_options-mt-d;boost_program_options-mt-d;boost_program_options-mt;boost_program_options
-- [ /home/yoki/openwrt/staging_dir/host/share/cmake-3.27/Modules/FindBoost.cmake:807 ] Boost_LIBRARY_DIR_DEBUG = "/home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/lib"
-- [ /home/yoki/openwrt/staging_dir/host/share/cmake-3.27/Modules/FindBoost.cmake:809 ] _boost_LIBRARY_SEARCH_DIRS_DEBUG = "/home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/lib;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH"
-- Found Boost: /home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/include (found suitable version "1.83.0", minimum required is "1.66.0") found components: system program_options
-- Found OpenSSL: /home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/lib/libcrypto.so (found suitable version "3.0.10", minimum required is "1.1.0")
-- Configuring done (5.6s)
-- Generating done (0.0s)
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_ASM_COMPILER
CMAKE_ASM_COMPILER_LAUNCHER
CMAKE_EXPORT_NO_PACKAGE_REGISTRY
CMAKE_EXPORT_PACKAGE_REGISTRY
CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY
CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY
CMAKE_MODULE_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS
DL_LIBRARY
-- Build files have been written to: /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3
touch /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/.configured_68b329da9893e34099c7d8ad5cb9c940
rm -f /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/.built
touch /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/.built_check
MAKEFLAGS="" /home/yoki/openwrt/staging_dir/host/bin/ninja -j1 -C /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3
ninja: Entering directory `/home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3'
[25/25] Linking CXX executable trojan
lto-wrapper: warning: using serial compilation of 19 LTRANS jobs
lto-wrapper: note: see the '-flto' option documentation for more information
DESTDIR="/home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-install" MAKEFLAGS="" /home/yoki/openwrt/staging_dir/host/bin/ninja -j1 -C /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3 install
ninja: Entering directory `/home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3'
[0/1] Install the project...
-- Install configuration: "Release"
-- Installing: /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-install/usr/bin/trojan
-- Installing: /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-install/etc/trojan/config.json
-- Installing: /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-install/usr/share/man/man1/trojan.1
-- Installing: /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-install/usr/share/doc/trojan
-- Installing: /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-install/usr/share/doc/trojan/authenticator.md
-- Installing: /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-install/usr/share/doc/trojan/README.md
-- Installing: /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-install/usr/share/doc/trojan/protocol.md
-- Installing: /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-install/usr/share/doc/trojan/overview.md
-- Installing: /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-install/usr/share/doc/trojan/usage.md
-- Installing: /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-install/usr/share/doc/trojan/build.md
-- Installing: /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-install/usr/share/doc/trojan/config.md
-- Installing: /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-install/usr/share/doc/trojan/examples
-- Installing: /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-install/usr/share/doc/trojan/examples/client.json-example
-- Installing: /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-install/usr/share/doc/trojan/examples/forward.json-example
-- Installing: /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-install/usr/share/doc/trojan/examples/nat.json-example
-- Installing: /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-install/usr/share/doc/trojan/examples/server.json-example
touch /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/.built
rm -rf /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/.pkgdir/trojan-plus.installed /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/.pkgdir/trojan-plus
mkdir -p /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/.pkgdir/trojan-plus
install -d -m0755 /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/.pkgdir/trojan-plus/usr/sbin
install -m0755 /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-install/usr/bin/trojan /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/.pkgdir/trojan-plus/usr/sbin/trojan-plus
touch /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/.pkgdir/trojan-plus.installed
mkdir -p /home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/stamp
SHELL= flock /home/yoki/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/.pkgdir/trojan-plus/. /home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/'
touch /home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/stamp/.trojan-plus_installed
mkdir -p /home/yoki/openwrt/bin/targets/mediatek/filogic/packages /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-aarch64_cortex-a53/trojan-plus/CONTROL /home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo
install -d -m0755 /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-aarch64_cortex-a53/trojan-plus/usr/sbin
install -m0755 /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-install/usr/bin/trojan /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-aarch64_cortex-a53/trojan-plus/usr/sbin/trojan-plus
find /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-aarch64_cortex-a53/trojan-plus -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/yoki/openwrt/staging_dir/host/bin/sstrip -z" STRIP_KMOD="/home/yoki/openwrt/scripts/strip-kmod.sh" PATCHELF="/home/yoki/openwrt/staging_dir/host/bin/patchelf" /home/yoki/openwrt/scripts/rstrip.sh /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-aarch64_cortex-a53/trojan-plus
rstrip.sh: /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-aarch64_cortex-a53/trojan-plus/usr/sbin/trojan-plus: executable
(cd /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-aarch64_cortex-a53/trojan-plus/CONTROL; ( echo "$CONTROL"; printf "Description: "; echo "$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; ) > control; chmod 644 control; ( 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 "default_postinst \$0 \$@"; ) > postinst; ( echo "#!/bin/sh"; echo "[ -s "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_prerm \$0 \$@"; ) > prerm; chmod 0755 postinst prerm; )
install -d -m0755 /home/yoki/openwrt/bin/packages/aarch64_cortex-a53/small
/home/yoki/openwrt/staging_dir/host/bin/fakeroot /home/yoki/openwrt/staging_dir/host/bin/bash /home/yoki/openwrt/scripts/ipkg-build -m "" /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-aarch64_cortex-a53/trojan-plus /home/yoki/openwrt/bin/packages/aarch64_cortex-a53/small
Packaged contents of /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/trojan-plus-10.0.3/ipkg-aarch64_cortex-a53/trojan-plus into /home/yoki/openwrt/bin/packages/aarch64_cortex-a53/small/trojan-plus_10.0.3-2_aarch64_cortex-a53.ipk
rm -rf /home/yoki/openwrt/tmp/stage-trojan-plus
mkdir -p /home/yoki/openwrt/tmp/stage-trojan-plus/host /home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/packages
find /home/yoki/openwrt/tmp/stage-trojan-plus -name '*.la' | xargs -r rm -f;
if [ -f /home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/packages/trojan-plus.list ]; then /home/yoki/openwrt/scripts/clean-package.sh "/home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/packages/trojan-plus.list" "/home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl"; fi
if [ -d /home/yoki/openwrt/tmp/stage-trojan-plus ]; then (cd /home/yoki/openwrt/tmp/stage-trojan-plus; find ./ > /home/yoki/openwrt/tmp/stage-trojan-plus.files); SHELL= flock /home/yoki/openwrt/tmp/.staging-dir.flock -c ' mv /home/yoki/openwrt/tmp/stage-trojan-plus.files /home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/packages/trojan-plus.list && cp -fpR /home/yoki/openwrt/tmp/stage-trojan-plus/* /home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/; '; fi
rm -rf /home/yoki/openwrt/tmp/stage-trojan-plus
touch /home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.trojan-plus_installed
make[2]: Leaving directory '/home/yoki/openwrt/feeds/small/trojan-plus'
time: package/feeds/small/trojan-plus/compile#135.77#8.18#153.17
make[2]: Entering directory '/home/yoki/openwrt/feeds/packages/net/xray-core'
echo "xray-core" >> /home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/xray-core.default.install
make[2]: Leaving directory '/home/yoki/openwrt/feeds/packages/net/xray-core'
time: package/feeds/packages/xray-core/compile#0.42#0.13#0.58
make[2]: Entering directory '/home/yoki/openwrt/feeds/small/xray-plugin'
touch /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/xray-plugin-1.8.4/.prepared_578dbadb93cfea6ee0f427a6ac927c13_6664517399ebbbc92a37c5bb081b5c53_check
. /home/yoki/openwrt/include/shell.sh; /home/yoki/openwrt/staging_dir/host/bin/libdeflate-gzip -dc /home/yoki/openwrt/dl/xray-plugin-1.8.4.tar.gz | tar -C /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/xray-plugin-1.8.4/.. -xf -
[ ! -d ./src/ ] || cp -fpR ./src/. /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/xray-plugin-1.8.4
Applying ./patches/00-fix-go1.21-build.patch using plaintext:
patching file go.mod
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 19.
2 out of 2 hunks FAILED -- saving rejects to file go.mod.rej
patching file go.sum
Hunk #1 FAILED at 20.
Hunk #2 FAILED at 29.
Hunk #3 FAILED at 48.
Hunk #4 FAILED at 87.
Hunk #5 FAILED at 98.
Hunk #6 FAILED at 142.
Hunk #7 FAILED at 153.
Hunk #8 FAILED at 195.
Hunk #9 FAILED at 216.
Hunk #10 FAILED at 258.
10 out of 10 hunks FAILED -- saving rejects to file go.sum.rej
Patch failed! Please fix ./patches/00-fix-go1.21-build.patch!
make[2]: *** [Makefile:50: /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/xray-plugin-1.8.4/.prepared_578dbadb93cfea6ee0f427a6ac927c13_6664517399ebbbc92a37c5bb081b5c53] Error 1
make[2]: Leaving directory '/home/yoki/openwrt/feeds/small/xray-plugin'
time: package/feeds/small/xray-plugin/compile#0.35#0.06#0.37
ERROR: package/feeds/small/xray-plugin failed to build.
make[1]: *** [package/Makefile:120: package/feeds/small/xray-plugin/compile] Error 1
make[1]: Leaving directory '/home/yoki/openwrt'
make: *** [/home/yoki/openwrt/include/toplevel.mk:232:package/feeds/small/luci-app-passwall/compile] 错误 2
应该是你的问题了,本来这个补丁是支持go1.21编译而已,我的releases编译也没报错
应该是你的问题了,本来这个补丁是支持 go1.21 编译而已,我的 releases 编译也没报错
但是在openwrt官方源码,分支main的情况下就是出现这个错误啊。单独编译也是这个问题
应该是你的问题了,本来这个补丁是支持 go1.21 编译的,我的版本也编译不了
不是哦,不是我一个这样
我这两天也编译不了,先后xray-plugin、brook、hysteria报错,等大神修复吧
日志如下