openwrt / openwrt/packages

Can not build sing-box

Open
#26,199 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

release/23.05 stale
Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Building targets
go: downloading github.com/sagernet/quic-go v0.49.0-beta.1
go: downloading github.com/go-chi/render v1.0.3
go: downloading github.com/sagernet/sing-quic v0.4.0
go: downloading github.com/sagernet/cors v1.2.1
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/wireguard-go v0.0.1-beta.5
go: downloading github.com/sagernet/reality v0.0.0-20230406110435-ee17307e7691
go: downloading github.com/sagernet/utls v1.6.7
go: downloading github.com/ajg/form v1.5.1
go: downloading github.com/klauspost/compress v1.17.4
go: downloading github.com/andybalholm/brotli v1.0.6
go: downloading github.com/quic-go/qpack v0.4.0
../../../../../dl/go-mod-cache/github.com/sagernet/utls@v1.6.7/u_handshake_client.go:15:2: no required module provides package github.com/klauspost/compress/zstd; to add it:
	go get github.com/klauspost/compress/zstd

make[2]: *** [Makefile:140: /home/wenisok/openwrt/build_dir/target-x86_64_musl/sing-box-1.11.3/.built] Error 1
make[2]: Leaving directory '/home/wenisok/openwrt/feeds/packages/net/sing-box'
time: package/feeds/packages/sing-box/compile#13.72#5.81#12.19
    ERROR: package/feeds/packages/sing-box failed to build.
make[1]: *** [package/Makefile:129: package/feeds/packages/sing-box/compile] Error 1
make[1]: Leaving directory '/home/wenisok/openwrt'
make: *** [/home/wenisok/openwrt/include/toplevel.mk:233: package/feeds/packages/sing-box/compile] Error 2

package branch: openwrt-23.05,
sing-box version: 1.11.3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the openwrt-23.05 package build for sing-box 1.11.3, then inspect the sing-box Makefile at line 140 and the missing github.com/klauspost/compress/zstd dependency. Done means the sing-box package compiles successfully on the reported target without the missing-module error.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.