官方 openwrt ,加入了 helloworld 也就是 lean 的 ssr 插件,结果一直报下面的错误。看起来是本机的 go 版本有点低,但是我本地已经安装了 go 的 1.21.6 版本,不明白为什么还会报这个错误。
下面是 Log 日志:
GOPATH="/workdir/openwrt/build_dir/target-aarch64_generic_musl/xray-plugin-1.8.7/.go_work/build" GOCACHE="/workdir/openwrt/tmp/go-build" GOMODCACHE="/workdir/openwrt/dl/go-mod-cache" GOENV=off GOTOOLCHAIN=local /usr/bin/env bash /workdir/openwrt/feeds/packages/lang/golang//
golang-build.sh build -v -buildvcs=false -trimpath -ldflags "all=-buildid '1707070697' -linkmode external -extldflags '-L/workdir/openwrt/staging_dir/toolchain-aarch64_generic_gcc-12.3.0_musl/usr/lib -L/workdir/openwrt/staging_dir/toolchain-aarch64_generic_gcc-12.3.0_musl/lib -Wl,-z,now -Wl,-z,relro'"
2024-02-05T13:06:15.4942472Z Finding targets
2024-02-05T13:06:15.5023067Z go: ../../go.mod requires go >= 1.21.5 (running go 1.21.3; GOTOOLCHAIN=local)
2024-02-05T13:06:15.5028670Z
2024-02-05T13:06:15.5029146Z Building targets
2024-02-05T13:06:15.5068424Z go: ../../go.mod requires go >= 1.21.5 (running go 1.21.3; GOTOOLCHAIN=local)
2024-02-05T13:06:15.5073766Z
2024-02-05T13:06:15.5700535Z make[3]: *** [Makefile:42: /workdir/openwrt/build_dir/target-aarch64_generic_musl/xray-plugin-1.8.7/.built] Error 1
2024-02-05T13:06:15.5701487Z make[3]: Leaving directory '/workdir/openwrt/feeds/helloworld/xray-plugin'
2024-02-05T13:06:15.5705818Z time: package/feeds/helloworld/xray-plugin/compile#0.18#0.12#0.29
2024-02-05T13:06:15.5714400Z ERROR: package/feeds/helloworld/xray-plugin failed to build.
2024-02-05T13:06:15.5718302Z make[2]: *** [package/Makefile:128: package/feeds/helloworld/xray-plugin/compile] Error 1
2024-02-05T13:06:15.5723319Z make[2]: Leaving directory '/workdir/openwrt'
2024-02-05T13:06:15.5728919Z make[1]: *** [package/Makefile:122: /workdir/openwrt/staging_dir/target-aarch64_generic_musl/stamp/.package_compile] Error 2
2024-02-05T13:06:15.5733035Z make[1]: Leaving directory '/workdir/openwrt'
2024-02-05T13:06:15.5740052Z make: *** [/workdir/openwrt/include/
toplevel.mk:232: world] Error 2
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
https://www.v2ex.com/t/1014504
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.