Closed ChaingTsung closed 1 year ago
... dial.go dnsclient.go dnsserver.go dohclient.go dohserver.go echoclient.go echoserver.go error.go exchanger.go go.mod go.sum init.go limits/limits.go limits/limits_not.go link.go list.go log.go nat.go nonce.go pac.go packetclient.go packetconn.go packetserver.go packetserverconn.go plugins/block/block.go plugins/dialwithdns/dialwithdns.go plugins/dialwithip/dialwithip.go plugins/dialwithnic/dialwithnic.go plugins/logger/logger.go plugins/pprof/pprof.go plugins/prometheus/prometheus.go plugins/socks5dial/dial.go plugins/thedns/thedns.go plugins/tproxy/tproxy_linux.go plugins/tproxy/tproxy_notlinux.go quic.go quicclient.go quicserver.go relay.go relayoverbrook.go resolve.go server.go simplepacketclient.go simplepacketserver.go simplepacketserverconn.go simplestreamclient.go simplestreamserver.go socks5.go socks5test.go socks5tohttp.go streamclient.go streamserver.go test_test.go tproxy/tcp_linux.go tproxy/udp_linux.go tproxy_linux.go tproxy_notlinux.go util.go waitreaderr.go websocket.go wsclient.go wsserver.go Symlinking directories from /home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/share/gocode/src into /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/brook-20230606/.go_work/build/src .../gitlab.com .../github.com/docker .../github.com/containerd .../github.com/cloudreve .../github.com/opencontainers .../github.com/maxmind .../github.com/alist-org .../github.com/mikefarah .../github.com/awilliams .../github.com/rclone .../github.com/xtaci .../github.com/xtls .../github.com/filebrowser .../github.com/go-delve .../github.com/fatedier .../github.com/nextdns touch /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/brook-20230606/.configured_68b329da9893e34099c7d8ad5cb9c940 rm -f /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/brook-20230606/.built touch /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/brook-20230606/.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/txthinking/brook" GO_INSTALL_EXTRA="" GO_INSTALL_ALL="" GO_SOURCE_ONLY="" GO_BUILD_PKG="github.com/txthinking/brook/cli/brook" GO_EXCLUDES="" GO_GO_GENERATE="" GO_INSTALL_BIN_PATH="/usr/bin" BUILD_DIR="/home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/brook-20230606" GO_BUILD_DIR="/home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/brook-20230606/.go_work/build" GO_BUILD_BIN_DIR="/home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/brook-20230606/.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/brook-20230606=brook-20230606 -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/brook-20230606=brook-20230606 -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/brook-20230606/.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 '1693369107' -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 go: downloading github.com/phuslu/iploc v1.0.20230606 Building targets github.com/phuslu/iploc 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[2]: *** [Makefile:47: /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/brook-20230606/.built] Error 1 make[2]: Leaving directory '/home/yoki/openwrt/feeds/small/brook' time: package/feeds/small/brook/compile#7.26#5.70#27.91 ERROR: package/feeds/small/brook failed to build. make[1]: *** [package/Makefile:120: package/feeds/small/brook/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
brook如果是passwall插件,不用编译,luci里自己更新下就好了
编译平台 ubuntu20.04, kernel 5.19
目标平台 Banana pi r3
源码 Openwrt offical code with branch main
受影响的插件 luci-app-passwall、luci-app-passwall2
日志如下