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 V2编译卡死 #2853

Closed
tcsr200722 opened this issue Jan 24, 2020 · 0 comments
Closed

X86 V2编译卡死 #2853

tcsr200722 opened this issue Jan 24, 2020 · 0 comments

Comments

@tcsr200722
Copy link

ovo/lede/staging_dir/target-x86_64_musl/root-x86/'
touch /home/lenovo/lede/staging_dir/target-x86_64_musl/root-x86/stamp/.trojan_installed
echo "trojan" >> /home/lenovo/lede/staging_dir/target-x86_64_musl/pkginfo/trojan.default.install
make[3]: Leaving directory '/home/lenovo/lede/package/lean/trojan'
time: package/lean/trojan/compile#0.14#0.05#0.23
make[3]: Entering directory '/home/lenovo/lede/package/lean/v2ray'
rm -f /home/lenovo/lede/build_dir/target-x86_64_musl/v2ray-core-4.22.1/.built
touch /home/lenovo/lede/build_dir/target-x86_64_musl/v2ray-core-4.22.1/.built_check
( cd /home/lenovo/lede/build_dir/target-x86_64_musl/v2ray-core-4.22.1/.go_work/build ; export GOPATH=/home/lenovo/lede/build_dir/target-x86_64_musl/v2ray-core-4.22.1/.go_work/build GOCACHE=/home/lenovo/lede/build_dir/target-x86_64_musl/v2ray-core-4.22.1/.go_work/cache GOTMPDIR=/home/lenovo/lede/build_dir/target-x86_64_musl/v2ray-core-4.22.1/.go_work/tmp GOROOT_FINAL=/usr/lib/go-1.13 CC=x86_64-openwrt-linux-musl-gcc CXX=x86_64-openwrt-linux-musl-g++ GOOS=linux GOARCH=amd64 GO386=387 GOARM= GOMIPS= GOMIPS64= CGO_ENABLED=1 CGO_CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/lenovo/lede/build_dir/target-x86_64_musl/v2ray-core-4.22.1:v2ray-core-4.22.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_CPPFLAGS="-I/home/lenovo/lede/staging_dir/target-x86_64_musl/usr/include -I/home/lenovo/lede/staging_dir/target-x86_64_musl/include -I/home/lenovo/lede/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/usr/include -I/home/lenovo/lede/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/include/fortify -I/home/lenovo/lede/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/include" CGO_CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/lenovo/lede/build_dir/target-x86_64_musl/v2ray-core-4.22.1:v2ray-core-4.22.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" ; echo "Finding targets" ; targets=$(go list v2ray.com/core/main) ; for pattern in ; do targets=$(echo "$targets" | grep -v "$pattern") ; done ; echo ; if [ "" = 1 ]; then echo "Calling go generate" ; go generate -v $targets ; echo ; fi ; if [ "" != 1 ]; then echo "Building targets" ; case amd64 in arm) installsuffix="v" ;; mips|mipsle) installsuffix="" ;; mips64|mips64le) installsuffix="" ;; esac ; ldflags="-linkmode external -extldflags '-L/home/lenovo/lede/staging_dir/target-x86_64_musl/usr/lib -L/home/lenovo/lede/staging_dir/target-x86_64_musl/lib -L/home/lenovo/lede/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/usr/lib -L/home/lenovo/lede/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/lib -Wl,-z,now -Wl,-z,relro'" ; pkg_gcflags="" ; pkg_ldflags="-s -w" ; for def in v2ray.com/core.version=4.22.1 v2ray.com/core.build=R5 v2ray.com/core.codename=OpenWrt; do pkg_ldflags="$pkg_ldflags -X $def" ; done ; go install ${installsuffix:+-installsuffix $installsuffix} -trimpath -ldflags "all=$ldflags" -v ${pkg_gcflags:+-gcflags "$pkg_gcflags"} ${pkg_ldflags:+-ldflags "$pkg_ldflags $ldflags"} $targets ; retval=$? ; echo ; if [ "$retval" -eq 0 ] && [ -z "$(find /home/lenovo/lede/build_dir/target-x86_64_musl/v2ray-core-4.22.1/.go_work/build/bin -maxdepth 0 -type d ! -empty 2>/dev/null)" ]; then echo "No binaries were generated, consider adding GO_PKG_SOURCE_ONLY:=1 to Makefile" ; echo ; fi ; echo "Cleaning module download cache (golang/go#27455)" ; go clean -modcache ; echo ; fi ; exit $retval ; )
Finding targets
go: downloading github.com/golang/protobuf v1.3.2
go: downloading golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
go: extracting github.com/golang/protobuf v1.3.2
go: extracting golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
go: downloading go.starlark.net v0.0.0-20190919145610-979af19b165c
go: downloading golang.org/x/net v0.0.0-20190311183353-d8887717615a
go: downloading google.golang.org/grpc v1.24.0
go: extracting go.starlark.net v0.0.0-20190919145610-979af19b165c
go: downloading golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
go: extracting golang.org/x/net v0.0.0-20190311183353-d8887717615a
go: extracting google.golang.org/grpc v1.24.0
go: downloading github.com/gorilla/websocket v1.4.1
go: extracting golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
go: extracting github.com/gorilla/websocket v1.4.1
go: downloading google.golang.org/genproto v0.0.0-20180831171423-11092d34479b
go: downloading golang.org/x/text v0.3.0
go: downloading github.com/refraction-networking/utls v0.0.0-20190909200633-43c36d3c1f57
go: extracting google.golang.org/genproto v0.0.0-20180831171423-11092d34479b
go: extracting github.com/refraction-networking/utls v0.0.0-20190909200633-43c36d3c1f57
go: extracting golang.org/x/text v0.3.0
go: finding github.com/golang/protobuf v1.3.2
go: finding google.golang.org/grpc v1.24.0
go: finding golang.org/x/net v0.0.0-20190311183353-d8887717615a
go: finding golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
go: finding go.starlark.net v0.0.0-20190919145610-979af19b165c
go: finding google.golang.org/genproto v0.0.0-20180831171423-11092d34479b
go: finding github.com/refraction-networking/utls v0.0.0-20190909200633-43c36d3c1f57
go: finding golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
go: finding golang.org/x/text v0.3.0
go: finding github.com/gorilla/websocket v1.4.1

Building targets

Cleaning module download cache (golang/go#27455)

mv -f /home/lenovo/lede/build_dir/target-x86_64_musl/v2ray-core-4.22.1/.go_work/build/bin/main /home/lenovo/lede/build_dir/target-x86_64_musl/v2ray-core-4.22.1/.go_work/build/bin/v2ray
upx --lzma --best /home/lenovo/lede/build_dir/target-x86_64_musl/v2ray-core-4.22.1/.go_work/build/bin/v2ray
Ultimate Packer for eXecutables
Copyright (C) 1996 - 2013
UPX 3.91 Markus Oberhumer, Laszlo Molnar & John Reiser Sep 30th 2013

    File size         Ratio      Format      Name

v2ray 4/8 [***************************************************.] 28.5% | Makefile:303: recipe for target '/home/lenovo/lede/build_dir/target-x86_64_musl/v2ray-core-4.22.1/.built' failed
make[3]: *** [/home/lenovo/lede/build_dir/target-x86_64_musl/v2ray-core-4.22.1/.built] Segmentation fault
make[3]: Leaving directory '/home/lenovo/lede/package/lean/v2ray'
time: package/lean/v2ray/compile#20.57#2.47#51.62
package/Makefile:107: recipe for target 'package/lean/v2ray/compile' failed
make[2]: *** [package/lean/v2ray/compile] Error 2
make[2]: Leaving directory '/home/lenovo/lede'
package/Makefile:103: recipe for target '/home/lenovo/lede/staging_dir/target-x86_64_musl/stamp/.package_compile' failed
make[1]: *** [/home/lenovo/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/lenovo/lede'
/home/lenovo/lede/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2

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

2 participants