From the build output : /usr/lib/go/pkg/tool/linux_amd64/link -o $WORK/b001/exe/a.out -importcfg $WORK/b001/importcfg.link -installsuffix shared -buildmode=pie -buildid=gwdKhdFTJsoFna7KGmkr/IxMmsp_X6RBHJhD00VpW/1UI8nKBYQznY8ANYxdsI/gwdKhdFTJsoFna7KGmkr -X github.com/containerd/containerd/version.Version=1.4.3 -X github.com/containerd/containerd/version.Revision=ea765ab -X github.com/containerd/containerd/version.Package=github.com/containerd/containerd -extld=x86_64-pc-linux-gnu-gcc $WORK/b001/_pkg_.a /usr/lib/go/pkg/tool/linux_amd64/buildid -w $WORK/b001/exe/a.out # internal mkdir -p bin/ mv $WORK/b001/exe/a.out bin/containerd rm -r $WORK/b001/ + man/containerd-config.toml.5 go-md2man -in "docs/man/containerd-config.toml.5.md" -out "man/containerd-config.toml.5" open man/containerd-config.toml.5: no such file or directory make: *** [Makefile:224: man/containerd-config.toml.5] Error 1 * ERROR: app-emulation/containerd-1.4.3-r1::gentoo failed (compile phase): * emake failed * Reproducible: Always
Please attach full build.log and emerge --info when reporting build errors. That aside, this looked familiar and indeed I did answer this before: https://forums.gentoo.org/viewtopic-t-1123411.html I was never able to reproduce but it looked like a race condition, can you try MAKEOPTS=-j1?
Created attachment 682582 [details] build.log and emerge --info.txt.xz Managed to reproduce, seems having -lX in MAKEOPTS "helps" make it fail. So I'll just attach my own logs for completeness.
Yes the -j1 helps here.
the same issue with app-emulation/containerd-1.4.4 package
ping
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4675bc1a2c77f36edd2c58e5076923382625e0a8 commit 4675bc1a2c77f36edd2c58e5076923382625e0a8 Author: Georgy Yakovlev <gyakovlev@gentoo.org> AuthorDate: 2021-05-25 23:26:51 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2021-05-25 23:27:14 +0000 app-emulation/containerd: work around makefile race condition Closes: https://bugs.gentoo.org/765100 Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> app-emulation/containerd/containerd-1.3.7.ebuild | 3 ++- app-emulation/containerd/containerd-1.3.9.ebuild | 3 ++- app-emulation/containerd/containerd-1.4.4.ebuild | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-)
workaround should not slow the build itself down, as I applied -j1 only for man target.