kenzok8 / small

ssr passwall homeprxoy 依赖
Apache License 2.0
1.02k stars 797 forks source link

云编译hysteria失败 #82

Closed allok1985 closed 6 months ago

allok1985 commented 1 year ago

小白 不知道哪些信息有用 ubuntu-latest x64

make[3] -C package/boot/grub2 compile make[3] -C package/libs/elfutils compile make[3] -C package/libs/libselinux compile make[3] -C feeds/luci/libs/luci-lib-ip compile make[3] -C feeds/luci/libs/luci-lib-jsonc compile make[3] -C feeds/kenzok8small/hysteria compile ERROR: package/feeds/kenzok8small/hysteria failed to build. make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on make: *** [/workdir/openwrt/include/toplevel.mk:231: world] Error 1 make[2]: Entering directory '/workdir/openwrt/scripts/config' make[2]: 'conf' is up to date. make[2]: Leaving directory '/workdir/openwrt/scripts/config' make[1] world make[2] package/cleanup make[2] target/compile make[3] -C target/linux compile make[2] buildinfo

/workdir/openwrt/staging_dir/host/bin/grub-mkimage -d /workdir/openwrt/build_dir/target-x86_64_musl/linux-x86_64/grub-pc/grub-2.06/grub-core -p /boot/grub -O i386-pc -c ./files/grub-early.cfg -o /workdir/openwrt/staging_dir/target-x86_64_musl/image/grub2/eltorito.img at_keyboard biosdisk boot chain configfile iso9660 linux ls part_msdos reboot search serial test vga make[3]: Entering directory '/workdir/openwrt/feeds/kenzok8small/ipt2socks' mkdir -p /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/stamp SHELL= flock /workdir/openwrt/tmp/.root-copy.flock -c 'cp -fpR /workdir/openwrt/build_dir/target-x86_64_musl/dns2socks-2.1/.pkgdir/dns2socks/. /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/' touch /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/stamp/.dns2socks_installed echo "dns2socks" >> /workdir/openwrt/staging_dir/target-x86_64_musl/pkginfo/dns2socks.default.install make[3]: Leaving directory '/workdir/openwrt/feeds/kenzok8small/dns2socks' time: package/feeds/kenzok8small/dns2socks/compile#0.16#0.02#0.87 make[3]: Entering directory '/workdir/openwrt/feeds/kenzok8small/lua-neturl' mkdir -p /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/stamp SHELL= flock /workdir/openwrt/tmp/.root-copy.flock -c 'cp -fpR /workdir/openwrt/build_dir/target-x86_64_musl/dns2tcp-1.1.0/.pkgdir/dns2tcp/. /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/' touch /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/stamp/.dns2tcp_installed /workdir/openwrt/staging_dir/host/bin/grub-mkimage -d /workdir/openwrt/build_dir/target-x86_64_musl/linux-x86_64/grub-pc/grub-2.06/grub-core -p /boot/grub -O i386-pc -c ./files/grub-early.cfg -o /workdir/openwrt/staging_dir/target-x86_64_musl/image/grub2/legacy-core.img biosdisk boot chain configfile ext2 linux ls part_msdos reboot search serial vga echo "dns2tcp" >> /workdir/openwrt/staging_dir/target-x86_64_musl/pkginfo/dns2tcp.default.install make[3]: Leaving directory '/workdir/openwrt/feeds/kenzok8small/dns2tcp' time: package/feeds/kenzok8small/dns2tcp/compile#0.17#0.02#1.01 make[3]: Entering directory '/workdir/openwrt/feeds/kenzok8small/tcping' touch /workdir/openwrt/build_dir/target-x86_64_musl/linux-x86_64/grub-pc/grub-2.06/.pkgdir/grub2.installed mkdir -p /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/stamp SHELL= flock /workdir/openwrt/tmp/.root-copy.flock -c 'cp -fpR /workdir/openwrt/build_dir/target-x86_64_musl/linux-x86_64/grub-pc/grub-2.06/.pkgdir/grub2/. /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/' touch /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/stamp/.grub2_installed echo "grub2" >> /workdir/openwrt/staging_dir/target-x86_64_musl/pkginfo/grub2.pc.install make[3]: Leaving directory '/workdir/openwrt/package/boot/grub2' time: package/boot/grub2/pc/compile#1.54#0.18#6.83 rm -f /workdir/openwrt/build_dir/target-x86_64_musl/hysteria-2.0.0/.built touch /workdir/openwrt/build_dir/target-x86_64_musl/hysteria-2.0.0/.built_check CONFIG_GOLANG_MOD_CACHE_WORLD_READABLE="" GO_BUILD_CACHE_DIR="/workdir/openwrt/tmp/go-build" GO_MOD_CACHE_DIR="/workdir/openwrt/dl/go-mod-cache" GO_MOD_ARGS="-modcacherw" GO_PKG="github.com/apernet/hysteria" GO_INSTALL_EXTRA="" GO_INSTALL_ALL="" GO_SOURCE_ONLY="" GO_BUILD_PKG="github.com/apernet/hysteria/app/cmd" GO_EXCLUDES="" GO_GO_GENERATE="" GO_INSTALL_BIN_PATH="/usr/bin" BUILD_DIR="/workdir/openwrt/build_dir/target-x86_64_musl/hysteria-2.0.0" GO_BUILD_DIR="/workdir/openwrt/build_dir/target-x86_64_musl/hysteria-2.0.0/.go_work/build" GO_BUILD_BIN_DIR="/workdir/openwrt/build_dir/target-x86_64_musl/hysteria-2.0.0/.go_work/build/bin" GO_BUILD_DEPENDS_PATH="/usr/share/gocode" GO_BUILD_DEPENDS_SRC="/workdir/openwrt/staging_dir/target-x86_64_musl/usr/share/gocode/src" GOOS="linux" GOARCH="amd64" GO386="" GOAMD64="v1" GOARM="" GOMIPS="" GOMIPS64="" GOPPC64="" CGO_ENABLED=1 CC="x86_64-openwrt-linux-musl-gcc" CXX="x86_64-openwrt-linux-musl-g++" CGO_CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/workdir/openwrt/build_dir/target-x86_64_musl/hysteria-2.0.0=hysteria-2.0.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_CPPFLAGS="-I/workdir/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/usr/include -I/workdir/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/include/fortify -I/workdir/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/include" CGO_CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/workdir/openwrt/build_dir/target-x86_64_musl/hysteria-2.0.0=hysteria-2.0.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_LDFLAGS="-L/workdir/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/usr/lib -L/workdir/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/lib -znow -zrelro" GOPATH="/workdir/openwrt/build_dir/target-x86_64_musl/hysteria-2.0.0/.go_work/build" GOCACHE="/workdir/openwrt/tmp/go-build" GOMODCACHE="/workdir/openwrt/dl/go-mod-cache" GOENV=off /usr/bin/env bash /workdir/openwrt/feeds/packages/lang/golang//golang-build.sh build -v -buildvcs=false -trimpath -ldflags "all=-buildid '1693650518' -linkmode external -extldflags '-L/workdir/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/usr/lib -L/workdir/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/lib -Wl,-z,now -Wl,-z,relro'" -ldflags " -X main.appVersion=2.0.0 -buildid '1693650518' -linkmode external -extldflags '-L/workdir/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/usr/lib -L/workdir/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/lib -Wl,-z,now -Wl,-z,relro'"
Finding targets make[3]: Entering directory '/workdir/openwrt/package/boot/grub2' no required module provides package github.com/apernet/hysteria/app/cmd: go.mod file not found in current directory or any parent directory; see 'go help modules'

Building targets go: cannot find main module, but found .git/config in /workdir/openwrt to create a module there, run: cd ../../../../.. && go mod init

mkdir -p /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/stamp SHELL= flock /workdir/openwrt/tmp/.root-copy.flock -c 'cp -fpR /workdir/openwrt/build_dir/target-x86_64_musl/ipt2socks-1.1.3/.pkgdir/ipt2socks/. /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/' make[3]: [Makefile:56: /workdir/openwrt/build_dir/target-x86_64_musl/hysteria-2.0.0/.built] Error 1 make[3]: Leaving directory '/workdir/openwrt/feeds/kenzok8small/hysteria' time: package/feeds/kenzok8small/hysteria/compile#0.18#0.05#0.94 ERROR: package/feeds/kenzok8small/hysteria failed to build. make[2]: [package/Makefile:116: package/feeds/kenzok8small/hysteria/compile] Error 1 make[2]: Waiting for unfinished jobs.... mkdir -p /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/stamp SHELL= flock /workdir/openwrt/tmp/.root-copy.flock -c 'cp -fpR /workdir/openwrt/build_dir/target-x86_64_musl/luci-lib-ip/.pkgdir/luci-lib-ip/. /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/' touch /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/stamp/.ipt2socks_installed touch /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/stamp/.luci-lib-ip_installed echo "ipt2socks" >> /workdir/openwrt/staging_dir/target-x86_64_musl/pkginfo/ipt2socks.default.install make[3]: Leaving directory '/workdir/openwrt/feeds/kenzok8small/ipt2socks' time: package/feeds/kenzok8small/ipt2socks/compile#0.17#0.02#0.94 echo "luci-lib-ip" >> /workdir/openwrt/staging_dir/target-x86_64_musl/pkginfo/luci-lib-ip.default.install make[3]: Leaving directory '/workdir/openwrt/feeds/luci/libs/luci-lib-ip' time: package/feeds/luci/luci-lib-ip/compile#0.31#0.10#1.93 mkdir -p /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/stamp SHELL= flock /workdir/openwrt/tmp/.root-copy.flock -c 'cp -fpR /workdir/openwrt/build_dir/target-x86_64_musl/neturl-1.1-1/.pkgdir/lua-neturl/. /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/' touch /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/stamp/.lua-neturl_installed echo "lua-neturl" >> /workdir/openwrt/staging_dir/target-x86_64_musl/pkginfo/lua-neturl.default.install mkdir -p /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/stamp SHELL= flock /workdir/openwrt/tmp/.root-copy.flock -c 'cp -fpR /workdir/openwrt/build_dir/target-x86_64_musl/luci-lib-jsonc/.pkgdir/luci-lib-jsonc/. /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/' make[3]: Leaving directory '/workdir/openwrt/feeds/kenzok8small/lua-neturl' time: package/feeds/kenzok8small/lua-neturl/compile#0.16#0.02#0.87 touch /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/stamp/.luci-lib-jsonc_installed mkdir -p /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/stamp SHELL= flock /workdir/openwrt/tmp/.root-copy.flock -c 'cp -fpR /workdir/openwrt/build_dir/target-x86_64_musl/tcping//tcping-0.3/.pkgdir/tcping/. /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/' touch /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/stamp/.tcping_installed echo "luci-lib-jsonc" >> /workdir/openwrt/staging_dir/target-x86_64_musl/pkginfo/luci-lib-jsonc.default.install make[3]: Leaving directory '/workdir/openwrt/feeds/luci/libs/luci-lib-jsonc' time: package/feeds/luci/luci-lib-jsonc/compile#0.33#0.08#2.06 echo "tcping" >> /workdir/openwrt/staging_dir/target-x86_64_musl/pkginfo/tcping.default.install make[3]: Leaving directory '/workdir/openwrt/feeds/kenzok8small/tcping' time: package/feeds/kenzok8small/tcping/compile#0.15#0.04#0.75 make[2]: Leaving directory '/workdir/openwrt' mkdir -p /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/stamp SHELL= flock /workdir/openwrt/tmp/.root-copy.flock -c 'cp -fpR /workdir/openwrt/build_dir/target-x86_64_musl/linux-x86_64/grub-efi/grub-2.06/.pkgdir/grub2-efi/. /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/' touch /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/stamp/.grub2-efi_installed echo "grub2-efi" >> /workdir/openwrt/staging_dir/target-x86_64_musl/pkginfo/grub2.efi.install make[3]: Leaving directory '/workdir/openwrt/package/boot/grub2' time: package/boot/grub2/efi/compile#0.34#0.08#0.63 make[3]: Entering directory '/workdir/openwrt/package/boot/grub2' mkdir -p /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/stamp SHELL= flock /workdir/openwrt/tmp/.root-copy.flock -c 'cp -fpR /workdir/openwrt/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.06/.pkgdir/grub2-bios-setup/. /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/' touch /workdir/openwrt/staging_dir/target-x86_64_musl/root-x86/stamp/.grub2-bios-setup_installed echo "grub2-bios-setup" >> /workdir/openwrt/staging_dir/target-x86_64_musl/pkginfo/grub2.none.install make[3]: Leaving directory '/workdir/openwrt/package/boot/grub2' time: package/boot/grub2/none/compile#0.34#0.08#0.39 make[2]: Leaving directory '/workdir/openwrt' make[1]: [package/Makefile:110: /workdir/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/workdir/openwrt' make: *** [/workdir/openwrt/include/toplevel.mk:231: world] Error 2 Error: Process completed with exit code 2.

ywt114 commented 1 year ago

hysteria更新到2.0.0出现问题,1.3.5没问题

ted-zheng commented 1 year ago

我的也一样,hysteria、brook、v2ray-plugin编译无法通过 no required module provides package github.com/apernet/hysteria/app/cmd: go.mod file not found in current directory or any parent directory; see 'go help modules'

Building targets go: cannot find main module, but found .git/config in /home/udb/openwrt to create a module there, run: cd ../../../../.. && go mod init

make[3]: [Makefile:56: /home/udb/openwrt/build_dir/target-x86_64_musl/hysteria-2.0.0/.built] Error 1 make[3]: Leaving directory '/home/udb/openwrt/feeds/kenzo/hysteria' time: package/feeds/kenzo/hysteria/compile#0.16#0.10#0.24 ERROR: package/feeds/kenzo/hysteria failed to build. make[2]: [package/Makefile:120: package/feeds/kenzo/hysteria/compile] Error 1 make[2]: Leaving directory '/home/udb/openwrt' make[1]: [package/Makefile:114: /home/udb/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/home/udb/openwrt' make: [/home/udb/openwrt/include/toplevel.mk:232:world] 错误 2

Qoo-330ml commented 1 year ago

我也一样,我是本地编译,临时将makefile里面的hysteria版本降级了

maomaoinchina commented 1 year ago

SHELL= flock /home/parallels/lede/tmp/.hysteria-2.0.0.tar.gz.flock -c ' /home/parallels/lede/scripts/download.pl "/home/parallels/lede/dl" "hysteria-2.0.0.tar.gz" "06f86cf466cbe08e7aaea68914263780ed4474cd73df9a591676779535d330d5" "" "https://codeload.github.com/apernet/hysteria/tar.gz/v2.0.0?" '

ChaingTsung commented 1 year ago

别问,问就是你的问题 #80 #78

kenzok8 commented 1 year ago

hysteria版本编译是有问题,可以先考虑回退下版本

上游hysteria的releases地址变了,所以编译过程中会下载出错

kenzok8 commented 1 year ago

别问,问就是你的问题 #80 #78

https://github.com/kenzok8/small/releases/tag/v3.1.13_x86_64 https://github.com/kenzok8/openwrt_Build/actions 你自己去看吧

kenzok8 commented 1 year ago

别问,问就是你的问题 #80 #78

80 是go121.go:5:13: cannot use,go121.go" 的第 5 行第 13 列

78 可能就是PKG_BUILD_FLAGS:=no-mips16引起的,有时自己找找,不要什么都觉得是我的错

19575277

我本地刚刚编译也过的

allok1985 commented 1 year ago

hysteria版本编译是有问题,可以先考虑回退下版本

上游hysteria的releases地址变了,所以编译过程中会下载出错

小白看教程编译的,主要是恩山各位大佬的版本更新不稳定 太复杂的搞不来,刚刚云编译还是报错

kenzok8 commented 1 year ago

2.0.0版本还没修复,先回退到老版本了

ywt114 commented 1 year ago

2.0.0版本还没修复,先回退到老版本了

回滚1.3.5后正常

ChaingTsung commented 1 year ago

2.0.0 版本尚未修复,先回退到老版本了

怎么回退

kenzok8 commented 1 year ago

2.0.0 版本尚未修复,先回退到老版本了

怎么回退

git pull && ./scripts/feeds update -a && ./scripts/feeds install -a

或者

./scripts/feeds clean ./scripts/feeds update -a ./scripts/feeds install -a

话说每次编译不是都要更新下拉取的代码吗?这个是基本操作啊

ChaingTsung commented 1 year ago

2.0.0 版本尚未修复,先回退到旧版本了

怎么退

git pull && ./scripts/feeds update -a && ./scripts/feeds install -a

或者

./scripts/feeds clean ./scripts/feeds update -a ./scripts/feeds install -a

每次编译不是都要更新下拉取的代码吗?这是基本操作啊

``log touch /home/yoki/openwrt/build_dir/hostpkg/go-1.21.0/.built rm -rf "/home/yoki/openwrt/staging_dir/hostpkg/lib/go-cross/openwrt" rm -f "/home/yoki/openwrt/staging_dir/hostpkg/bin/go" rm -f "/home/yoki/openwrt/staging_dir/hostpkg/bin/gofmt" rm -rf "/home/yoki/openwrt/staging_dir/hostpkg/lib/go-cross" rm -rf "/home/yoki/openwrt/staging_dir/hostpkg/share/go-cross" install -d -m0755 "/home/yoki/openwrt/staging_dir/hostpkg/lib/go-cross" install -d -m0755 "/home/yoki/openwrt/staging_dir/hostpkg/share/go-cross" cp -fpR "/home/yoki/openwrt/build_dir/hostpkg/go-1.21.0/api" "/home/yoki/openwrt/staging_dir/hostpkg/share/go-cross/" ln -sf "../../share/go-cross/api" "/home/yoki/openwrt/staging_dir/hostpkg/lib/go-cross/" install -m0644 -p "/home/yoki/openwrt/build_dir/hostpkg/go-1.21.0/go.env" "/home/yoki/openwrt/staging_dir/hostpkg/lib/go-cross/" install -m0644 -p "/home/yoki/openwrt/build_dir/hostpkg/go-1.21.0/VERSION" "/home/yoki/openwrt/staging_dir/hostpkg/lib/go-cross/" for file in CONTRIBUTING.md LICENSE PATENTS README.md SECURITY.md; do if [ -f "/home/yoki/openwrt/build_dir/hostpkg/go-1.21.0/$file" ]; then install -m0644 -p "/home/yoki/openwrt/build_dir/hostpkg/go-1.21.0/$file" "/home/yoki/openwrt/staging_dir/hostpkg/share/go-cross/" ; fi ; done install -d -m0755 "/home/yoki/openwrt/staging_dir/hostpkg/lib/go-cross/bin" install -m0755 -p "/home/yoki/openwrt/build_dir/hostpkg/go-1.21.0/bin"/ "/home/yoki/openwrt/staging_dir/hostpkg/lib/go-cross/bin/" if [ -d "/home/yoki/openwrt/build_dir/hostpkg/go-1.21.0/pkg/linux_amd64" ]; then install -d -m0755 "/home/yoki/openwrt/staging_dir/hostpkg/lib/go-cross/pkg" ; cp -fpR "/home/yoki/openwrt/build_dir/hostpkg/go-1.21.0/pkg/linux_amd64" "/home/yoki/openwrt/staging_dir/hostpkg/lib/go-cross/pkg/" ; fi install -d -m0755 "/home/yoki/openwrt/staging_dir/hostpkg/lib/go-cross/pkg/tool/linux_amd64" install -m0755 -p "/home/yoki/openwrt/build_dir/hostpkg/go-1.21.0/pkg/tool/linux_amd64"/ "/home/yoki/openwrt/staging_dir/hostpkg/lib/go-cross/pkg/tool/linux_amd64/" install -d -m0755 "/home/yoki/openwrt/staging_dir/hostpkg/lib/go-cross" install -d -m0755 "/home/yoki/openwrt/staging_dir/hostpkg/share/go-cross" cp -fpR "/home/yoki/openwrt/build_dir/hostpkg/go-1.21.0/lib" "/home/yoki/openwrt/staging_dir/hostpkg/share/go-cross/" ln -sf "../../share/go-cross/lib" "/home/yoki/openwrt/staging_dir/hostpkg/lib/go-cross/" cp -fpR "/home/yoki/openwrt/build_dir/hostpkg/go-1.21.0/misc" "/home/yoki/openwrt/staging_dir/hostpkg/share/go-cross/" ln -sf "../../share/go-cross/misc" "/home/yoki/openwrt/staging_dir/hostpkg/lib/go-cross/" cp -fpR "/home/yoki/openwrt/build_dir/hostpkg/go-1.21.0/src" "/home/yoki/openwrt/staging_dir/hostpkg/share/go-cross/" ln -sf "../../share/go-cross/src" "/home/yoki/openwrt/staging_dir/hostpkg/lib/go-cross/" cp -fpR "/home/yoki/openwrt/build_dir/hostpkg/go-1.21.0/test" "/home/yoki/openwrt/staging_dir/hostpkg/share/go-cross/" ln -sf "../../share/go-cross/test" "/home/yoki/openwrt/staging_dir/hostpkg/lib/go-cross/" find "/home/yoki/openwrt/staging_dir/hostpkg/share/go-cross/src/" ! -type d -a ( -name ".bat" -o -name ".rc" ) -delete if [ -d "/home/yoki/openwrt/build_dir/hostpkg/go-1.21.0/pkg/include" ]; then install -d -m0755 "/home/yoki/openwrt/staging_dir/hostpkg/lib/go-cross/pkg" ; install -d -m0755 "/home/yoki/openwrt/staging_dir/hostpkg/share/go-cross/pkg" ; cp -fpR "/home/yoki/openwrt/build_dir/hostpkg/go-1.21.0/pkg/include" "/home/yoki/openwrt/staging_dir/hostpkg/share/go-cross/pkg/" ; ln -sf "../../../share/go-cross/pkg/include" "/home/yoki/openwrt/staging_dir/hostpkg/lib/go-cross/pkg/" ; fi install -d -m0755 "/home/yoki/openwrt/staging_dir/hostpkg/bin" ln -sf "../lib/go-cross/bin/go" "/home/yoki/openwrt/staging_dir/hostpkg/bin/go" ln -sf "../lib/go-cross/bin/gofmt" "/home/yoki/openwrt/staging_dir/hostpkg/bin/gofmt" rm -rf "/home/yoki/openwrt/staging_dir/hostpkg/lib/go-cross/pkg/linux_amd64" install -d -m0755 "/home/yoki/openwrt/staging_dir/hostpkg/lib/go-cross/openwrt" install -m0755 ./files/go-gcc-helper "/home/yoki/openwrt/staging_dir/hostpkg/lib/go-cross/openwrt/" ln -sf go-gcc-helper "/home/yoki/openwrt/staging_dir/hostpkg/lib/go-cross/openwrt/gcc" ln -sf go-gcc-helper "/home/yoki/openwrt/staging_dir/hostpkg/lib/go-cross/openwrt/g++" mkdir -p /home/yoki/openwrt/staging_dir/hostpkg/stamp touch /home/yoki/openwrt/build_dir/hostpkg/go-1.21.0/.built touch /home/yoki/openwrt/staging_dir/hostpkg/stamp/.golang_installed make[2]: Leaving directory '/home/yoki/openwrt/feeds/packages/lang/golang/golang' time: package/feeds/packages/golang/host-compile#494.13#96.07#211.34 make[2]: Entering directory '/home/yoki/openwrt/package/libs/toolchain' Makefile:735: WARNING: skipping libgomp -- package has no install section echo "libc" >> /home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/toolchain.default.install echo "libgcc" >> /home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/toolchain.default.install echo "libatomic" >> /home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/toolchain.default.install echo "libstdcpp" >> /home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/toolchain.default.install echo "libpthread" >> /home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/toolchain.default.install echo "librt" >> /home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/toolchain.default.install make[2]: Leaving directory '/home/yoki/openwrt/package/libs/toolchain' time: package/libs/toolchain/compile#0.22#0.05#0.29 make[2]: Entering directory '/home/yoki/openwrt/package/system/ca-certificates' echo "ca-bundle" >> /home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/ca-certificates.default.install echo "ca-certificates" >> /home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/ca-certificates.default.install make[2]: Leaving directory '/home/yoki/openwrt/package/system/ca-certificates' time: package/system/ca-certificates/compile#0.17#0.04#0.20 make[2]: Entering directory '/home/yoki/openwrt/package/small/hysteria' rm -f /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/hysteria-1.3.5/.built touch /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/hysteria-1.3.5/.built_check CONFIG_GOLANG_MOD_CACHE_WORLD_READABLE="" GO_BUILD_CACHE_DIR="/home/yoki/openwrt/tmp/go-build" GO_MOD_CACHE_DIR="/home/yoki/openwrt/dl/go-mod-cache" GO_MOD_ARGS="-modcacherw" GO_PKG="github.com/apernet/hysteria" GO_INSTALL_EXTRA="" GO_INSTALL_ALL="" GO_SOURCE_ONLY="" GO_BUILD_PKG="github.com/apernet/hysteria/app/cmd" GO_EXCLUDES="" GO_GO_GENERATE="" GO_INSTALL_BIN_PATH="/usr/bin" BUILD_DIR="/home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/hysteria-1.3.5" GO_BUILD_DIR="/home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/hysteria-1.3.5/.go_work/build" GO_BUILD_BIN_DIR="/home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/hysteria-1.3.5/.go_work/build/bin/linux_arm64" GO_BUILD_DEPENDS_PATH="/usr/share/gocode" GO_BUILD_DEPENDS_SRC="/home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/share/gocode/src" GOOS="linux" GOARCH="arm64" GO386="" GOAMD64="" GOARM="" GOMIPS="" GOMIPS64="" GOPPC64="" CGO_ENABLED=1 CC="aarch64-openwrt-linux-musl-gcc" CXX="aarch64-openwrt-linux-musl-g++" CGO_CFLAGS="-Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/hysteria-1.3.5=hysteria-1.3.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_CPPFLAGS="-I/home/yoki/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.3.0_musl/usr/include -I/home/yoki/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.3.0_musl/include/fortify -I/home/yoki/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.3.0_musl/include" CGO_CXXFLAGS="-Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/hysteria-1.3.5=hysteria-1.3.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_LDFLAGS="-L/home/yoki/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.3.0_musl/usr/lib -L/home/yoki/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.3.0_musl/lib -fuse-ld=bfd -znow -zrelro" GOPATH="/home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/hysteria-1.3.5/.go_work/build" GOCACHE="/home/yoki/openwrt/tmp/go-build" GOMODCACHE="/home/yoki/openwrt/dl/go-mod-cache" GOENV=off GOTOOLCHAIN=local /usr/bin/env bash /home/yoki/openwrt/feeds/packages/lang/golang//golang-build.sh build -v -buildvcs=false -trimpath -ldflags "all=-buildid '1693884091' -linkmode external -extldflags '-L/home/yoki/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.3.0_musl/usr/lib -L/home/yoki/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.3.0_musl/lib -fuse-ld=bfd -Wl,-z,now -Wl,-z,relro'" -ldflags " -X main.appVersion=1.3.5 -buildid '1693884091' -linkmode external -extldflags '-L/home/yoki/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.3.0_musl/usr/lib -L/home/yoki/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.3.0_musl/lib -fuse-ld=bfd -Wl,-z,now -Wl,-z,relro'"
Finding targets

Building targets github.com/quic-go/quic-go/internal/qtls

github.com/quic-go/quic-go/internal/qtls

../../../../../dl/go-mod-cache/github.com/apernet/quic-go@v0.34.1-0.20230507231629-ec008b7e8473/internal/qtls/go121.go:5:13: cannot use "The version of quic-go you're using can't be built on Go 1.21 yet. For more details, please see https://github.com/quic-go/quic-go/wiki/quic-go-and-Go-versions." (untyped string constant "The version of quic-go you're using can't be built on Go 1.21 yet. F...) as int value in variable declaration

make[2]: [Makefile:56: /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/hysteria-1.3.5/.built] Error 1 make[2]: Leaving directory '/home/yoki/openwrt/package/small/hysteria' time: package/small/hysteria/compile#0.74#3.71#9.73 ERROR: package/small/hysteria failed to build. make[1]: [package/Makefile:120: package/small/hysteria/compile] Error 1 make[1]: Leaving directory '/home/yoki/openwrt' make: *** [/home/yoki/openwrt/include/toplevel.mk:232:package/small/hysteria/compile] 错误 2


还是一样啊
kenzok8 commented 1 year ago

make distclean #删除 重新来过

ted-zheng commented 1 year ago

Building targets

github.com/quic-go/quic-go/internal/qtls

github.com/quic-go/quic-go/internal/qtls

../../../../../dl/go-mod-cache/github.com/quic-go/quic-go@v0.32.0/internal/qtls/go121.go:5:13: cannot use "The version of quic-go you're using can't be built on Go 1.21 yet. For more details, please see https://github.com/quic-go/quic-go/wiki/quic-go-and-Go-versions." (untyped string constant "The version of quic-go you're using can't be built on Go 1.21 yet. F...) as int value in variable declaration

make[3]: [Makefile:47: /home/udb/openwrt/build_dir/target-x86_64_musl/brook-20230606/.built] Error 1 make[3]: Leaving directory '/home/udb/openwrt/feeds/kenzo/brook' time: package/feeds/kenzo/brook/compile#1.33#0.70#0.46 ERROR: package/feeds/kenzo/brook failed to build. make[2]: [package/Makefile:120: package/feeds/kenzo/brook/compile] Error 1 make[2]: Leaving directory '/home/udb/openwrt' make[1]: [package/Makefile:114: /home/udb/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/home/udb/openwrt' make: [/home/udb/openwrt/include/toplevel.mk:232:world] 错误 @2

make distclean #删除 重新来过

删除后问题依旧

kenzok8 commented 1 year ago

你上面错误是brook编译出问题,另外你编译调用了go 1.21

binge8 commented 1 year ago

luci-app-bypass, luci-app-passwall,luci-app-passwall2 ,luci-app-ssr-plus ,luci-app-vssr 应该是你个人的问题,我这几个插件全选刚编译通过,没问题