Compilation error encountered on the master branch

Open
#970 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
docker, go, shell

Research direction

The report names the Makefile targets sysbox-static, sysbox-fs-static, and test-img, with failures involving sysbox-runc and the vendored cri-o build. Re-run the provided make command, inspect the Go-version mismatch and the capnproto error, and trace the relevant Makefile rules. Done means the master branch build completes successfully.

Written by the indexing model from the issue text.

Description

command:

make IMAGE_BASE_DISTRO=ubuntu IMAGE_BASE_RELEASE=jammy sysbox-static

error:

docker run --privileged --rm --runtime=runc --hostname sysbox-build --name sysbox-build -e SYS_ARCH=amd64 -e TARGET_ARCH=amd64 -v /root/sysbox:/root/nestybox/sysbox -v /pkg/mod:/go/pkg/mod -v /root/.gitconfig:/root/.gitconfig -v /lib/modules/6.6.98-38.oc9.x86_64:/lib/modules/6.6.98-38.oc9.x86_64:ro -v /usr/src/linux-headers-6.6.98-38.oc9.x86_64:/usr/src/linux-headers-6.6.98-38.oc9.x86_64:ro sysbox-test-amd64 /bin/bash -c "export HOST_UID=0 && \
        export HOST_GID=0 && buildContainerInit sysbox-static-local"
go: updates to go.mod needed; to update it:
        go mod tidy
make -C sysboxFsGrpc/sysboxFsProtobuf
make[2]: 'sysboxFsProtobuf.pb.go' is up to date.
make -C sysboxMgrGrpc/sysboxMgrProtobuf
make[2]: 'sysboxMgrProtobuf.pb.go' is up to date.
CGO_ENABLED=1  go build -buildvcs=false -trimpath  -tags "seccomp apparmor idmapped_mnt netgo osusergo" -ldflags "-extldflags -static -X 'main.edition=Community Edition (CE)' -X main.version=0.6.7 -X main.commitId=1e3b5a225595d091923dd9e9e574a29885feaf9e -X 'main.builtAt=Sat Oct 25 20:16:44 UTC 2025' -X 'main.builtBy='" -o build/amd64/sysbox-runc .
CGO_ENABLED=1  go build -buildvcs=false -trimpath  -tags "seccomp apparmor idmapped_mnt netgo osusergo" -ldflags "-extldflags -static -X 'main.edition=Community Edition (CE)' -X main.version=0.6.7 -X main.commitId=1e3b5a225595d091923dd9e9e574a29885feaf9e -X 'main.builtAt=Sat Oct 25 20:16:44 UTC 2025' -X 'main.builtBy='" -o contrib/cmd/recvtty/recvtty ./contrib/cmd/recvtty
CGO_ENABLED=1  go build -buildvcs=false -trimpath -tags "netgo osusergo" \
        -installsuffix netgo -ldflags "-extldflags -static -X 'main.edition=Community Edition (CE)' -X main.version=0.6.7 -X main.commitId=61a9daff36c6acbde8e2146337cb76c57e4a66ad -X 'main.builtAt=Sat Oct 25 20:17:33 UTC 2025' -X 'main.builtBy='" \
        -o build/amd64/sysbox-fs ./cmd/sysbox-fs
go: module ../sysbox-runc requires go >= 1.23.0 (running go 1.22.6)
make[1]: *** [Makefile:71: build/amd64/sysbox-fs-static] Error 1
make: *** [Makefile:241: sysbox-fs-static] Error 2
make: *** [Makefile:210: sysbox-static] Error 2

go version change 1.23.0

Unpacking libgpgme-dev (1.18.0-4.1ubuntu4) ...
Setting up libgpg-error-dev (1.47-3build2.1) ...
Setting up libassuan-dev (2.5.6-1build1) ...
Setting up libgpgme11t64:amd64 (1.18.0-4.1ubuntu4) ...
Setting up libgpgme-dev (1.18.0-4.1ubuntu4) ...
Processing triggers for libc-bin (2.39-0ubuntu8.6) ...
Cloning into '/tmp/crio-build/cri-o'...
Updating files: 100% (9766/9766), done.
branch 'v1.28-sysbox' set up to track 'origin/v1.28-sysbox'.
Switched to a new branch 'v1.28-sysbox'
go build  -trimpath  -ldflags '-s -w -X [github.com/cri-o/cri-o/internal/version.buildDate='2025-10-25T20:36:32Z](https://github.com/cri-o/cri-o/internal/version.buildDate='2025-10-25T20:36:32Z)' ' -tags "containers_image_ostree_stub  exclude_graphdriver_btrfs btrfs_noversion exclude_graphdriver_devicemapper libdm_no_deferred_remove  seccomp  " -o bin/crio [github.com/cri-o/cri-o/cmd/crio](https://github.com/cri-o/cri-o/cmd/crio)
# [capnproto.org/go/capnp/v3](https://capnproto.org/go/capnp/v3)
vendor/[capnproto.org/go/capnp/v3/list.go:1094:10](https://capnproto.org/go/capnp/v3/list.go:1094:10): invalid composite literal type T
make: *** [Makefile:186: bin/crio] Error 1
The command '/bin/sh -c apt-get update && apt-get install -y --no-install-recommends libgpgme-dev libgpg-error-dev libassuan-dev     && mkdir -p /tmp/crio-build     && git clone https://github.com/nestybox/cri-o.git /tmp/crio-build/cri-o     && git -C /tmp/crio-build/cri-o checkout -b ${crio_version}-sysbox origin/${crio_version}-sysbox     && export CGO_LDFLAGS="-lgpgme -lgpg-error -lassuan" && cd /tmp/crio-build/cri-o && make binaries     && mv /usr/bin/crio /usr/bin/crio.orig     && cp /tmp/crio-build/cri-o/bin/crio-static /usr/bin/crio     && rm -rf /tmp/crio-build' returned a non-zero code: 2
make: *** [Makefile:467: test-img] Error 2
Dominant language
Shell
Stars
3.9k
Forks
230
Avg merge
7h 48m
Merged PRs (30d)
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.

More from nestybox/sysbox

All issues in nestybox/sysbox

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.