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

v2ray 4.18.0编译报错 #1177

Closed
kanshudj opened this issue Apr 16, 2019 · 2 comments
Closed

v2ray 4.18.0编译报错 #1177

kanshudj opened this issue Apr 16, 2019 · 2 comments

Comments

@kanshudj
Copy link

全局科学上网,更新软件包,换架构编译都不行。

Cleaning module download cache (golang/go#27455)
go: finding v2ray.com/core/.go_work/build latest
go: finding v2ray.com/core/.go_work latest
can't load package: package v2ray.com/core/.go_work/build: unknown import path "v2ray.com/core/.go_work/build": cannot find module providing package v2ray.com/core/.go_work/build

mv -f /home/xujian/lede/build_dir/target-aarch64_generic_musl/v2ray-core-4.18.0/.go_work/build/bin/linux_arm64/main /home/xujian/lede/build_dir/target-aarch64_generic_musl/v2ray-core-4.18.0/.go_work/build/bin/linux_arm64/v2ray
chmod +x /home/xujian/lede/build_dir/target-aarch64_generic_musl/v2ray-core-4.18.0/.go_work/build/bin/linux_arm64/v2ray && upx --ultra-brute /home/xujian/lede/build_dir/target-aarch64_generic_musl/v2ray-core-4.18.0/.go_work/build/bin/linux_arm64/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

upx: /home/xujian/lede/build_dir/target-aarch64_generic_musl/v2ray-core-4.18.0/.go_work/build/bin/linux_arm64/v2ray: UnknownExecutableFormatException

Packed 0 files.
Makefile:160: recipe for target '/home/xujian/lede/build_dir/target-aarch64_generic_musl/v2ray-core-4.18.0/.built' failed
make[3]: *** [/home/xujian/lede/build_dir/target-aarch64_generic_musl/v2ray-core-4.18.0/.built] Error 1
make[3]: Leaving directory '/home/xujian/lede/package/lean/v2ray'
time: package/lean/v2ray/compile#11.11#6.75#55.03
package/Makefile:107: recipe for target 'package/lean/v2ray/compile' failed
make[2]: *** [package/lean/v2ray/compile] Error 2
make[2]: Leaving directory '/home/xujian/lede'
package/Makefile:103: recipe for target '/home/xujian/lede/staging_dir/target-aarch64_generic_musl/stamp/.package_compile' failed
make[1]: *** [/home/xujian/lede/staging_dir/target-aarch64_generic_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/xujian/lede'
/home/xujian/lede/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2

@coolsnowwolf
Copy link
Owner

upx 版本太低,不支持 arm64 导致的

@coolsnowwolf
Copy link
Owner

UPX 不兼容 64bit elf,已禁用 upx 压缩

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