[Bug]: package/feeds/passwall_packages/xray-core failed to build.
justlovemaki opened this issue · 3 comments
描述您遇到的bug
#140 #141代码合并后,不能正常编译
复现此Bug的步骤
使用github的Actions编译lede-openwrt
自用脚本https://github.com/justlovemaki/OpenWRT-CI
您想要实现的目的
修复此问题
日志信息
2024-03-01T00:05:05.7966355Z make[3]: Entering directory '/home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/feeds/passwall_packages/xray-core'
2024-03-01T00:05:05.9404360Z rm -f /home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/build_dir/target-x86_64_musl/Xray-core-1.8.8/.built
2024-03-01T00:05:05.9434297Z touch /home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/build_dir/target-x86_64_musl/Xray-core-1.8.8/.built_check
2024-03-01T00:05:05.9477999Z CONFIG_GOLANG_MOD_CACHE_WORLD_READABLE="" GO_BUILD_CACHE_DIR="/home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/tmp/go-build" GO_MOD_CACHE_DIR="/home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/dl/go-mod-cache" GO_MOD_ARGS="-modcacherw" GO_PKG="github.com/xtls/xray-core" GO_INSTALL_EXTRA="" GO_INSTALL_ALL="" GO_SOURCE_ONLY="" GO_BUILD_PKG="github.com/xtls/xray-core/main" GO_EXCLUDES="" GO_GO_GENERATE="" GO_INSTALL_BIN_PATH="/usr/bin" BUILD_DIR="/home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/build_dir/target-x86_64_musl/Xray-core-1.8.8" GO_BUILD_DIR="/home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/build_dir/target-x86_64_musl/Xray-core-1.8.8/.go_work/build" GO_BUILD_BIN_DIR="/home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/build_dir/target-x86_64_musl/Xray-core-1.8.8/.go_work/build/bin" GO_BUILD_DEPENDS_PATH="/usr/share/gocode" GO_BUILD_DEPENDS_SRC="/home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/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=/home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/build_dir/target-x86_64_musl/Xray-core-1.8.8=Xray-core-1.8.8 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_CPPFLAGS="-I/home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/usr/include -I/home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/include/fortify -I/home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/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=/home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/build_dir/target-x86_64_musl/Xray-core-1.8.8=Xray-core-1.8.8 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_LDFLAGS="-L/home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/usr/lib -L/home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/lib -znow -zrelro" GOPATH="/home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/build_dir/target-x86_64_musl/Xray-core-1.8.8/.go_work/build" GOCACHE="/home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/tmp/go-build" GOMODCACHE="/home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/dl/go-mod-cache" GOENV=off GOTOOLCHAIN=local /usr/bin/env bash /home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/feeds/packages/lang/golang//golang-build.sh build -v -buildvcs=false -trimpath -ldflags "all=-buildid '1709215206' -linkmode external -extldflags '-L/home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/usr/lib -L/home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/lib -Wl,-z,now -Wl,-z,relro'" -ldflags " -X github.com/xtls/xray-core/core.build=OpenWrt -X github.com/xtls/xray-core/core.version=1.8.8 -buildid '1709215206' -linkmode external -extldflags '-L/home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/usr/lib -L/home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/lib -Wl,-z,now -Wl,-z,relro'"
2024-03-01T00:05:05.9515799Z Finding targets
2024-03-01T00:05:05.9558977Z go: ../../go.mod requires go >= 1.22 (running go 1.21.5; GOTOOLCHAIN=local)
2024-03-01T00:05:05.9567012Z
2024-03-01T00:05:05.9567353Z Building targets
2024-03-01T00:05:05.9614804Z go: ../../go.mod requires go >= 1.22 (running go 1.21.5; GOTOOLCHAIN=local)
2024-03-01T00:05:05.9620759Z
2024-03-01T00:05:06.1175495Z make[3]: *** [Makefile:91: /home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/build_dir/target-x86_64_musl/Xray-core-1.8.8/.built] Error 1
2024-03-01T00:05:06.1176761Z make[3]: Leaving directory '/home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/feeds/passwall_packages/xray-core'
2024-03-01T00:05:06.1179450Z time: package/feeds/passwall_packages/xray-core/compile#0.17#0.17#0.32
2024-03-01T00:05:06.1187833Z ERROR: package/feeds/passwall_packages/xray-core failed to build.
2024-03-01T00:05:06.1191719Z make[2]: *** [package/Makefile:116: package/feeds/passwall_packages/xray-core/compile] Error 1
2024-03-01T00:05:06.1197036Z make[2]: Leaving directory '/home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt'
2024-03-01T00:05:06.1202994Z make[1]: *** [package/Makefile:110: /home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
2024-03-01T00:05:06.1206810Z make[1]: Leaving directory '/home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt'
2024-03-01T00:05:06.1215125Z make: *** [/home/runner/work/OpenWRT-CI/OpenWRT-CI/owrt/include/toplevel.mk:231: world] Error 2
2024-03-01T00:05:06.1234797Z ##[error]Process completed with exit code 2.
2024-03-01T00:05:06.1339271Z Post job cleanup.
2024-03-01T00:05:06.2150958Z [command]/usr/bin/git version
2024-03-01T00:05:06.2192726Z git version 2.43.2
2024-03-01T00:05:06.2238233Z Temporarily overriding HOME='/home/runner/work/_temp/c8ebddc7-f8bd-40c6-a361-cccdd14a9e46' before making global git config changes
2024-03-01T00:05:06.2239993Z Adding repository directory to the temporary git global config as a safe directory
2024-03-01T00:05:06.2244875Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/OpenWRT-CI/OpenWRT-CI
2024-03-01T00:05:06.2293708Z [command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
2024-03-01T00:05:06.2326334Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-03-01T00:05:06.2594128Z [command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
2024-03-01T00:05:06.2616301Z http.https://github.com/.extraheader
2024-03-01T00:05:06.2628001Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2024-03-01T00:05:06.2663018Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-03-01T00:05:06.3170439Z Cleaning up orphan processes
截图
No response
系统相关信息
github的Actions
其他信息
No response
同样的问题,需要golang版本最低1.22.
go: ../../go.mod requires go >= 1.22 (running go 1.21.7; GOTOOLCHAIN=local)
Building targets
go: ../../go.mod requires go >= 1.22 (running go 1.21.7; GOTOOLCHAIN=local)
make[3]: *** [Makefile:44: /home/sjkhsl/openwrt-23.05/build_dir/target-x86_64_musl/v2ray-plugin-5.14.1/.built] Error 1
make[3]: Leaving directory '/home/sjkhsl/openwrt-23.05/package/chajianbao/openwrt-passwall-packages/v2ray-plugin'
time: package/chajianbao/openwrt-passwall-packages/v2ray-plugin/compile#0.11#0.12#0.22
ERROR: package/chajianbao/openwrt-passwall-packages/v2ray-plugin failed to build.
make[2]: *** [package/Makefile:129: package/chajianbao/openwrt-passwall-packages/v2ray-plugin/compile] Error 1
make[2]: Leaving directory '/home/sjkhsl/openwrt-23.05'
make[1]: *** [package/Makefile:123: /home/sjkhsl/openwrt-23.05/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/sjkhsl/openwrt-23.05'
make: *** [/home/sjkhsl/openwrt-23.05/include/toplevel.mk:232: world] Error 2
go >= 1.22 (running go 1.21.7; GOTOOLCHAIN=local
请升级op的go版本