官方 openwrt 编译报错,求老哥帮助。

查看 64|回复 3
作者:poporange   
官方 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

2024-02-05, OpenWrt, workdir

ysc3839   
packages 不是最新的?我看了下 git 仓库,已经是 1.21.5 了
https://github.com/openwrt/packages/blob/master/lang/golang/golang/Makefile
V2wxham   
Helloword ,建议去除。用 passwall 。云编译不是更轻松?
poporange
OP
  
@ysc3839 是的,老哥,我拉取的 openwrt 的 23.05 的单独分支,这个分支的关于 golang 版本有点低,我把它替换成了 master 下新的 package 的 golang 了,现在在重新编译。感谢回答。
您需要登录后才可以回帖 登录 | 立即注册

返回顶部