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

hysteria 编译报错 #1505

Closed
onlyJinx opened this issue Jul 11, 2024 · 6 comments
Closed

hysteria 编译报错 #1505

onlyJinx opened this issue Jul 11, 2024 · 6 comments

Comments

@onlyJinx
Copy link

用的官方23.05的源码。git clone -b openwrt-23.05 https://git.openwrt.org/openwrt/openwrt.git
之前以为是golang的问题,然后用这个版本的替换也是同样的报错https://github.com/sbwml/packages_lang_golang
重新拉一次源码来编译也是一样的,请问这个是什么原因啊

make[3]: Leaving directory '/home/ruo/openwrt/package/system/ca-certificates'
time: package/system/ca-certificates/compile#0.07#0.05#0.12
make[3]: Entering directory '/home/ruo/openwrt/feeds/helloworld/hysteria'
rm -f /home/ruo/openwrt/build_dir/target-x86_64_musl/hysteria-app-v2.5.0/.built
touch /home/ruo/openwrt/build_dir/target-x86_64_musl/hysteria-app-v2.5.0/.built_check
CONFIG_GOLANG_MOD_CACHE_WORLD_READABLE="" GO_BUILD_CACHE_DIR="/home/ruo/openwrt/tmp/go-build" GO_MOD_CACHE_DIR="/home/ruo/openwrt/dl/go-mod-cache" GO_MOD_ARGS="-modcacherw" GO_PKG="github.com/apernet/hysteria" GO_INSTALL_EXTRA="" GO_INSTALL_ALL="" GO_SOURCE_ONLY="" GO_BUILD_PKG="github.com/apernet/hysteria/app" GO_EXCLUDES="" GO_GO_GENERATE="" GO_INSTALL_BIN_PATH="/usr/bin" BUILD_DIR="/home/ruo/openwrt/build_dir/target-x86_64_musl/hysteria-app-v2.5.0" GO_BUILD_DIR="/home/ruo/openwrt/build_dir/target-x86_64_musl/hysteria-app-v2.5.0/.go_work/build" GO_BUILD_BIN_DIR="/home/ruo/openwrt/build_dir/target-x86_64_musl/hysteria-app-v2.5.0/.go_work/build/bin" GO_BUILD_DEPENDS_PATH="/usr/share/gocode" GO_BUILD_DEPENDS_SRC="/home/ruo/openwrt/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/ruo/openwrt/build_dir/target-x86_64_musl/hysteria-app-v2.5.0=hysteria-app-v2.5.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_CPPFLAGS="-I/home/ruo/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/include -I/home/ruo/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include/fortify -I/home/ruo/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include" CGO_CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/ruo/openwrt/build_dir/target-x86_64_musl/hysteria-app-v2.5.0=hysteria-app-v2.5.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_LDFLAGS="-L/home/ruo/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/ruo/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -znow -zrelro" GOPATH="/home/ruo/openwrt/build_dir/target-x86_64_musl/hysteria-app-v2.5.0/.go_work/build" GOCACHE="/home/ruo/openwrt/tmp/go-build" GOMODCACHE="/home/ruo/openwrt/dl/go-mod-cache" GOENV=off GOTOOLCHAIN=local /usr/bin/env bash /home/ruo/openwrt/feeds/packages/lang/golang//golang-build.sh build -v -buildvcs=false -trimpath -ldflags "all=-buildid '1720650216' -linkmode external -extldflags '-L/home/ruo/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/ruo/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -Wl,-z,now -Wl,-z,relro'"        -ldflags " -X github.com/apernet/hysteria/app/cmd.appVersion=v2.5.0 -X github.com/apernet/hysteria/app/cmd.appType=release -X github.com/apernet/hysteria/app/cmd.appPlatform=linux -X github.com/apernet/hysteria/app/cmd.appArch=amd64 -buildid '1720650216' -linkmode external -extldflags '-L/home/ruo/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/ruo/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -Wl,-z,now -Wl,-z,relro'"
Finding targets
no required module provides package github.com/apernet/hysteria/app; to add it:
        go get github.com/apernet/hysteria/app

Building targets
no Go files in /home/ruo/openwrt/build_dir/target-x86_64_musl/hysteria-app-v2.5.0/.go_work/build

make[3]: *** [Makefile:62: /home/ruo/openwrt/build_dir/target-x86_64_musl/hysteria-app-v2.5.0/.built] Error 1
make[3]: Leaving directory '/home/ruo/openwrt/feeds/helloworld/hysteria'
time: package/feeds/helloworld/hysteria/compile#0.13#0.09#0.19
    ERROR: package/feeds/helloworld/hysteria failed to build.
make[2]: *** [package/Makefile:129: package/feeds/helloworld/hysteria/compile] Error 1
make[2]: Leaving directory '/home/ruo/openwrt'
make[1]: *** [package/Makefile:123: /home/ruo/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/ruo/openwrt'
make: *** [/home/ruo/openwrt/include/toplevel.mk:232: world] Error 2
@suizhenmin
Copy link

同样问题

@zxlhhyccc
Copy link
Contributor

zxlhhyccc commented Jul 11, 2024

加v2
image

@onlyJinx
Copy link
Author

@zxlhhyccc 谢谢

@suizhenmin
Copy link

@zxlhhyccc谢谢

比较小白,能麻烦说下修改哪个问价么

@onlyJinx
Copy link
Author

@zxlhhyccc谢谢

比较小白,能麻烦说下修改哪个问价么

你下载的源码目录的 package/helloworld/hysteria/Makefile

@suizhenmin
Copy link

@zxlhhyccc谢谢

比较小白,能麻烦说下修改哪个问价什么

你下载的源码目录的 package/helloworld/hysteria/Makefile

谢谢,问题解决了

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

3 participants