core-plans
core-plans copied to clipboard
[img] Fails to build with invalid pseudo-version
The latest core/img fails to build with the following error go: github.com/containerd/[email protected]: invalid pseudo-version: version before v1.3.0 would have negative patch number
Builder itself shows that core/img has been failing to build since July:

The most recent build error is go: github.com/containerd/[email protected]: invalid pseudo-version: version before v1.3.0 would have negative patch number
:
...
...
img: Setting build environment
mkdir: created directory '/hab/cache/src/img-0.5.4'
img: Setting PREFIX=/hab/pkgs/core/img/0.5.4/20191204094003
img: Setting LD_RUN_PATH=/hab/pkgs/core/git/2.23.0/20190908235432/lib:/hab/pkgs/core/libseccomp/2.3.1/20190115184223/lib
img: Setting CFLAGS=-I/hab/pkgs/core/make/4.2.1/20190115013626/include -I/hab/pkgs/core/gcc/8.2.0/20190115004042/include -I/hab/pkgs/core/libseccomp/2.3.1/20190115184223/include
img: Setting CXXFLAGS=-I/hab/pkgs/core/make/4.2.1/20190115013626/include -I/hab/pkgs/core/gcc/8.2.0/20190115004042/include -I/hab/pkgs/core/libseccomp/2.3.1/20190115184223/include
img: Setting CPPFLAGS=-I/hab/pkgs/core/make/4.2.1/20190115013626/include -I/hab/pkgs/core/gcc/8.2.0/20190115004042/include -I/hab/pkgs/core/libseccomp/2.3.1/20190115184223/include
img: Setting LDFLAGS=-L/hab/pkgs/core/git/2.23.0/20190908235432/lib -L/hab/pkgs/core/gcc/8.2.0/20190115004042/lib -L/hab/pkgs/core/git/2.23.0/20190908235432/lib -L/hab/pkgs/core/libseccomp/2.3.1/20190115184223/lib
img: Setting PKG_CONFIG_PATH=/hab/pkgs/core/libseccomp/2.3.1/20190115184223/lib/pkgconfig
img: Preparing to build
img: Building
git clone https://github.com/opencontainers/runc.git "/hab/pkgs/core/img/0.5.4/20191204094003/cross/src/github.com/opencontainers/runc"
Cloning into '/hab/pkgs/core/img/0.5.4/20191204094003/cross/src/github.com/opencontainers/runc'...
remote: Enumerating objects: 20315, done.
remote: Total 20315 (delta 0), reused 0 (delta 0), pack-reused 20315
Receiving objects: 100% (20315/20315), 7.98 MiB | 3.58 MiB/s, done.
Resolving deltas: 100% (13127/13127), done.
( cd /hab/pkgs/core/img/0.5.4/20191204094003/cross/src/github.com/opencontainers/runc ; git checkout 7cb3cde1f49eae53fb8fff5012c0750a64eb928b )
Note: switching to '7cb3cde1f49eae53fb8fff5012c0750a64eb928b'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at 7cb3cde1 fix preserve-fds flag may cause runc hang
GOPATH=/hab/pkgs/core/img/0.5.4/20191204094003/cross make -C "/hab/pkgs/core/img/0.5.4/20191204094003/cross/src/github.com/opencontainers/runc" static BUILDTAGS="seccomp apparmor"
make[1]: Entering directory '/hab/pkgs/core/img/0.5.4/20191204094003/cross/src/github.com/opencontainers/runc'
CGO_ENABLED=1 go build -tags "seccomp apparmor netgo osusergo static_build" -installsuffix netgo -ldflags "-w -extldflags -static -X main.gitCommit="7cb3cde1f49eae53fb8fff5012c0750a64eb928b" -X main.version=1.0.0-rc6+dev " -o runc .
CGO_ENABLED=1 go build -tags "seccomp apparmor netgo osusergo static_build" -installsuffix netgo -ldflags "-w -extldflags -static -X main.gitCommit="7cb3cde1f49eae53fb8fff5012c0750a64eb928b" -X main.version=1.0.0-rc6+dev " -o contrib/cmd/recvtty/recvtty ./contrib/cmd/recvtty
make[1]: Leaving directory '/hab/pkgs/core/img/0.5.4/20191204094003/cross/src/github.com/opencontainers/runc'
mkdir -p /hab/pkgs/core/img/0.5.4/20191204094003/cross/bin
mv /hab/pkgs/core/img/0.5.4/20191204094003/cross/src/github.com/opencontainers/runc/runc /hab/pkgs/core/img/0.5.4/20191204094003/cross/bin/runc
go: github.com/containerd/[email protected]: invalid pseudo-version: version before v1.3.0 would have negative patch number
make: *** [Makefile:28: internal/binutils/runc.go] Error 1
img: Build time: 1m50s
img: Exiting on error
[4][default:/src:2]#