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.
This appears to have come back. USE="btrfs" for some reason though. Build succeeds with it disabled. USE="btrfs" doas ebuild /var/db/repos/gentoo/app-containers/containerd/containerd-1.7.23.ebuild clean compile * containerd-1.7.23.tar.gz BLAKE2B SHA512 size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking containerd-1.7.23.tar.gz to /var/tmp/portage/app-containers/containerd-1.7.23/work >>> Source unpacked in /var/tmp/portage/app-containers/containerd-1.7.23/work >>> Preparing source in /var/tmp/portage/app-containers/containerd-1.7.23/work/containerd-1.7.23 ... * SED: some expressions in the following did not cause any changes * sed -i -e "s/-s -w//" -e "s/-mod=readonly//" Makefile || die; * no-op: -e s/-mod=readonly// >>> Source prepared. >>> Configuring source in /var/tmp/portage/app-containers/containerd-1.7.23/work/containerd-1.7.23 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/app-containers/containerd-1.7.23/work/containerd-1.7.23 ... make -j12 -l18 'BUILDTAGS=no_devmapper seccomp' LDFLAGS= REVISION=57f17b0a6295a39009d861b89e3b3b87b005ca27 VERSION=v1.7.23 man -j1 + 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:298: man/containerd-config.toml.5] Error 1 shuffle=3407799582 * ERROR: app-containers/containerd-1.7.23::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=app-containers/containerd-1.7.23::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-containers/containerd-1.7.23::gentoo'`. * The complete build log is located at '/var/log/portage/build/app-containers/containerd-1.7.23:20241029-215121.log.gz'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/app-containers/containerd-1.7.23/temp/build.log.gz'. * The ebuild environment file is located at '/var/tmp/portage/app-containers/containerd-1.7.23/temp/environment'. * Working directory: '/var/tmp/portage/app-containers/containerd-1.7.23/work/containerd-1.7.23' * S: '/var/tmp/portage/app-containers/containerd-1.7.23/work/containerd-1.7.23'