cri-o: "make" fails if go-md2man was not installed

HI,

I am following the instructions at https://github.com/cri-o/cri-o/blob/master/tutorials/setup.md

make fails with the error

ln -s "/home/ec2-user/cri-o" "/home/ec2-user/cri-o/_output/src/github.com/cri-o/cri-o"
touch "/home/ec2-user/cri-o/_output/.gopathok"
go build -ldflags '-s -w -X main.gitCommit="2b85d5f5d8aedc99031a49c7e5f164ab7f5b5960" -X main.buildInfo=1556608425' -tags "containers_image_ostree_stub       seccomp selinux" -o bin/crio github.com/cri-o/cri-o/cmd/crio
go build -ldflags '-s -w -X main.gitCommit="2b85d5f5d8aedc99031a49c7e5f164ab7f5b5960" -X main.buildInfo=1556608425' -tags "containers_image_ostree_stub       seccomp selinux" -o bin/crio-config github.com/cri-o/cri-o/cmd/crio-config
( cd conmon && /home/ec2-user/cri-o/bin/crio-config )
make -C conmon
make[1]: Entering directory `/home/ec2-user/cri-o/conmon'
cc -std=c99 -Os -Wall -Wextra -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -DVERSION=\"1.14.0-dev\" -DGIT_COMMIT=\""2b85d5f5d8aedc99031a49c7e5f164ab7f5b5960"\"   -D USE_JOURNALD=0   -c -o ctr_logging.o ctr_logging.c
cc -std=c99 -Os -Wall -Wextra -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -DVERSION=\"1.14.0-dev\" -DGIT_COMMIT=\""2b85d5f5d8aedc99031a49c7e5f164ab7f5b5960"\"   -D USE_JOURNALD=0   -c -o conmon.o conmon.c
cc -std=c99 -Os -Wall -Wextra -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -DVERSION=\"1.14.0-dev\" -DGIT_COMMIT=\""2b85d5f5d8aedc99031a49c7e5f164ab7f5b5960"\"   -D USE_JOURNALD=0   -c -o cmsg.o cmsg.c
cc -std=c99 -Os -Wall -Wextra -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -DVERSION=\"1.14.0-dev\" -DGIT_COMMIT=\""2b85d5f5d8aedc99031a49c7e5f164ab7f5b5960"\"   -D USE_JOURNALD=0   -c -o utils.o utils.c
cc -o ../bin/conmon config.h ctr_logging.o conmon.o cmsg.o utils.o -std=c99 -Os -Wall -Wextra -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -DVERSION=\"1.14.0-dev\" -DGIT_COMMIT=\""2b85d5f5d8aedc99031a49c7e5f164ab7f5b5960"\"   -D USE_JOURNALD=0 -lglib-2.0   -lsystemd  
make[1]: Leaving directory `/home/ec2-user/cri-o/conmon'
make -C pause
make[1]: Entering directory `/home/ec2-user/cri-o/pause'
cc -std=c99 -Os -Wall -Wextra -static   -c -o pause.o pause.c
cc -o ../bin/pause pause.o -std=c99 -Os -Wall -Wextra -static 
make[1]: Leaving directory `/home/ec2-user/cri-o/pause'
./bin/crio --config="" config --default > crio.conf
mkdir -p /home/ec2-user/cri-o/build/bin
go build github.com/cpuguy83/go-md2man/md2man: module requires Go 1.12
(/home/ec2-user/cri-o/build/bin/go-md2man -in docs/crio.conf.5.md -out docs/crio.conf.5.tmp && touch docs/crio.conf.5.tmp && mv docs/crio.conf.5.tmp docs/crio.conf.5) || \
	(/home/ec2-user/cri-o/build/bin/go-md2man -in docs/crio.conf.5.md -out docs/crio.conf.5.tmp && touch docs/crio.conf.5.tmp && mv docs/crio.conf.5.tmp docs/crio.conf.5)
/bin/sh: /home/ec2-user/cri-o/build/bin/go-md2man: No such file or directory
/bin/sh: line 1: /home/ec2-user/cri-o/build/bin/go-md2man: No such file or directory

I see there is an issue which was suppose to address this but I still hit the error.

go env

GOARCH="amd64"
GOBIN=""
GOCACHE="/home/ec2-user/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/ec2-user/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/ec2-user/cri-o/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build142490278=/tmp/go-build -gno-record-gcc-switches"

go version go version go1.11.1 linux/amd64

Any idea what I can do ?

@jawnsy - Hope you dont mind me tagging you since I saw you were involved in this issue a year ago.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 19 (9 by maintainers)

Most upvoted comments

Thanks @saschagrunert

I will join the slack