helloworld
helloworld copied to clipboard
hysteria-app-v2.4.1编译出错
- mkdir -p /home/test/openwrt/staging_dir/target-x86_64_musl
- cd /home/test/openwrt/staging_dir/target-x86_64_musl
- mkdir -p bin lib stamp usr/include usr/lib package github.com/apernet/hysteria/app imports github.com/apernet/hysteria/app/cmd imports github.com/apernet/hysteria/app/internal/tun imports github.com/apernet/sing-tun imports github.com/sagernet/sing/common/buf imports github.com/sagernet/sing/common/atomic: build constraints exclude all Go files in /home/test/openwrt/dl/go-mod-cache/github.com/sagernet/[email protected]/common/atomic ../../../../../dl/go-mod-cache/github.com/sagernet/[email protected]/common/buf/buffer.go:10:2: no required module provides package github.com/sagernet/sing/common/debug; to add it: cd /home/test/openwrt/build_dir/target-x86_64_musl/hysteria-app-v2.4.1/app go get github.com/sagernet/sing/common/debug ../../../../../dl/go-mod-cache/github.com/apernet/[email protected]/monitor_linux.go:10:2: no required module provides package github.com/sagernet/sing/common/logger; to add it: cd /home/test/openwrt/build_dir/target-x86_64_musl/hysteria-app-v2.4.1/app go get github.com/sagernet/sing/common/logger ../../../../../dl/go-mod-cache/google.golang.org/[email protected]/internal/filedesc/editions.go:11:2: no required module provides package google.golang.org/protobuf/internal/editiondefaults; to add it: cd /home/test/openwrt/build_dir/target-x86_64_musl/hysteria-app-v2.4.1/extras go get google.golang.org/protobuf/internal/editiondefaults ../../../../../dl/go-mod-cache/github.com/spf13/[email protected]/iofs.go:14:2: no required module provides package github.com/spf13/afero/internal/common; to add it: cd /home/test/openwrt/build_dir/target-x86_64_musl/hysteria-app-v2.4.1/app go get github.com/spf13/afero/internal/common make[3]: *** [Makefile:62: /home/test/openwrt/build_dir/target-x86_64_musl/hysteria-app-v2.4.1/.built] Error 1 make[2]: *** [package/Makefile:129: package/feeds/helloworld/hysteria/compile] Error 1 make[1]: *** [package/Makefile:123: /home/test/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2 make: *** [/home/test/openwrt/include/toplevel.mk:232:world] 错误 2
想着会不会go版本低,从1.18升级到1.22.2还是没有解决问题。。。帮忙看看哪儿的问题吧。。。
检查科学上网环境
打开github.com和google、youtube什么的都没问题。。。
看起来网络好像没什么问题。。。
涛声依旧。。。
貌似是 hysteria 的代码库没了,可以尝试更换代码库地址,或者更新 https://github.com/kenzok8/small,亲测今天已解决。
- rm -rf ./tmp
- make clean
- 执行完以上两个命令,再执行: git pull ./scripts/feeds update -a ./scripts/feeds install -a
- 更新之后再次变异 make download -j8 make V=s -j1
祝好运