Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x86在线编译一直过不了到底是啥问题 #1579

Open
zhrui0517 opened this issue Nov 1, 2024 · 6 comments
Open

x86在线编译一直过不了到底是啥问题 #1579

zhrui0517 opened this issue Nov 1, 2024 · 6 comments

Comments

@zhrui0517
Copy link

No description provided.

@Jason6111
Copy link
Contributor

啥日志都没有…开心就好

@725216
Copy link

725216 commented Nov 3, 2024

我现在也编译不了

GO_BUILD_DEPENDS_PATH="/usr/share/gocode" GO_BUILD_DEPENDS_SRC="/workdir/openwrt/staging_dir/target-mipsel_24kc_musl/usr/share/gocode/src" GOOS="linux" GOARCH="mipsle" GO386="" GOAMD64="" GOARM="" GOMIPS="softfloat" GOMIPS64="" GOPPC64="" CGO_ENABLED=1 CC="mipsel-openwrt-linux-musl-gcc" CXX="mipsel-openwrt-linux-musl-g++" CGO_CFLAGS="-Os -pipe -mno-branch-likely -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -fmacro-prefix-map=/workdir/openwrt/build_dir/target-mipsel_24kc_musl/Xray-core-1.8.1=Xray-core-1.8.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_CPPFLAGS="-I/workdir/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/usr/include -I/workdir/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/include/fortify -I/workdir/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/include" CGO_CXXFLAGS="-Os -pipe -mno-branch-likely -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -fmacro-prefix-map=/workdir/openwrt/build_dir/target-mipsel_24kc_musl/Xray-core-1.8.1=Xray-core-1.8.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_LDFLAGS="-L/workdir/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/usr/lib -L/workdir/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/lib -znow -zrelro" GOPATH="/workdir/openwrt/build_dir/target-mipsel_24kc_musl/Xray-core-1.8.1/.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 '1706355620' -linkmode external -extldflags '-L/workdir/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/usr/lib -L/workdir/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/lib -Wl,-z,now -Wl,-z,relro'" -installsuffix "softfloat" -ldflags "-s -w -X github.com/xtls/xray-core/core.build=OpenWrt -X github.com/xtls/xray-core/core.version=1.8.1 -buildid '1706355620' -linkmode external -extldflags '-L/workdir/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/usr/lib -L/workdir/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/lib -Wl,-z,now -Wl,-z,relro'"
1820
Finding targets
1821

1822
Building targets
1823
package github.com/xtls/xray-core/main
1824
imports github.com/xtls/xray-core/main/distro/all
1825
imports github.com/xtls/xray-core/main/commands/all
1826
imports github.com/xtls/xray-core/infra/conf
1827
imports github.com/xtls/xray-core/proxy/wireguard
1828
imports gvisor.dev/gvisor/pkg/bufferv2
1829
imports gvisor.dev/gvisor/pkg/atomicbitops
1830
imports gvisor.dev/gvisor/pkg/state
1831
imports gvisor.dev/gvisor/pkg/state/wire
1832
imports gvisor.dev/gvisor/pkg/gohacks: build constraints exclude all Go files in /workdir/openwrt/dl/go-mod-cache/gvisor.dev/[email protected]/pkg/gohacks
1833

1834
make[3]: *** [Makefile:52: /workdir/openwrt/build_dir/target-mipsel_24kc_musl/Xray-core-1.8.1/.built] Error 1
1835
make[3]: Leaving directory '/workdir/openwrt/feeds/packages/net/xray-core'
1836
time: package/feeds/packages/xray-core/compile#0.42#0.25#0.36
1837
ERROR: package/feeds/packages/xray-core failed to build.
1838
make[2]: *** [package/Makefile:116: package/feeds/packages/xray-core/compile] Error 1
1839
make[2]: Leaving directory '/workdir/openwrt'
1840
make[1]: *** [package/Makefile:110: /workdir/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
1841
make[1]: Leaving directory '/workdir/openwrt'
1842
make: *** [/workdir/openwrt/include/toplevel.mk:230: world] Error 2
1843
Error: Process completed with exit code 2.

@zxlhhyccc
Copy link
Collaborator

zxlhhyccc commented Nov 4, 2024

@725216 你的go版本问题,请更新你的go版本 。。。,还有,Xray版本是1.8.1,这是什么时候的版本?老古董了,go依赖早就不知道更新到什么时候了。。。

@725216
Copy link

725216 commented Nov 5, 2024

@725216 你的go版本问题,请更新你的go版本 。。。,还有,Xray版本是1.8.1,这是什么时候的版本?老古董了,go依赖早就不知道更新到什么时候了。。。
新的版本也不行,就是因为用新的编译不过才用源码自带的,go更新到1.23也不行,都试过了,应该是openwrt源码太老了,用的是https://github.com/padavanonly/immortalwrt,好奇怎么就的也不行了?所以现在固件不能重新编译了,编译就没了这玩意,幸亏以前同时编译了sdk

@725216
Copy link

725216 commented Nov 5, 2024

1

@725216 你的go版本问题,请更新你的go版本 。。。,还有,Xray版本是1.8.1,这是什么时候的版本?老古董了,go依赖早就不知道更新到什么时候了。。。

我换过go版本1.23试过,是編译alist时换的。编译中出错了,然后源码默认设置,只选了科学,换不换go都不行,贴的错误只是用默认状态编译的,以前行,现在不行

@725216
Copy link

725216 commented Nov 6, 2024

知道时怎么回事了,是源码里自带的除了有ssr-plus还有xray-core和xray-plugin,删了就行了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants