-linkmode requires external (cgo) linking, but cgo is not enabled #12219
Unanswered
xiaowen-king1
asked this question in
Q&A / 快速问答
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
编译的时候报错,报错如下,那个大佬帮我看看,感谢
Building targets
go: downloading github.com/cloudflare/circl v1.3.7
go: downloading github.com/sagernet/cloudflare-tls v0.0.0-20231208171750-a4483c1b7cd1
go: downloading github.com/sagernet/quic-go v0.40.1
go: downloading github.com/sagernet/sing-quic v0.1.8
go: downloading github.com/sagernet/utls v1.5.4
go: downloading github.com/insomniacslk/dhcp v0.0.0-20231206064809-8c70d406f6d2
go: downloading github.com/go-chi/cors v1.2.1
go: downloading github.com/go-chi/render v1.0.3
go: downloading github.com/sagernet/wireguard-go v0.0.0-20231215174105-89dec3b2f3e8
go: downloading github.com/u-root/uio v0.0.0-20230220225925-ffce2a382923
go: downloading github.com/klauspost/compress v1.17.4
go: downloading golang.org/x/exp v0.0.0-20240119083558-1b970713d09a
go: downloading github.com/ajg/form v1.5.1
go: downloading github.com/pierrec/lz4/v4 v4.1.14
-linkmode requires external (cgo) linking, but cgo is not enabled
make[3]: *** [Makefile:153: /home/king/lede/build_dir/target-x86_64_musl/sing-box-1.8.5/.built] Error 1
make[3]: Leaving directory '/home/king/lede/feeds/haibo/openwrt-passwall/sing-box'
time: package/feeds/haibo/sing-box/compile#2.76#1.45#17.32
ERROR: package/feeds/haibo/sing-box failed to build.
make[2]: *** [package/Makefile:116: package/feeds/haibo/sing-box/compile] Error 1
make[2]: Leaving directory '/home/king/lede'
make[1]: *** [package/Makefile:110: /home/king/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/king/lede'
make: *** [/home/king/lede/include/toplevel.mk:231:world] 错误 2
Beta Was this translation helpful? Give feedback.
All reactions