Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 765100 - app-emulation/containerd-1.4.3-r1 containerd-config.toml.5: no such file or directory (race condition)
Summary: app-emulation/containerd-1.4.3-r1 containerd-config.toml.5: no such file or d...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: parallel-make
  Show dependency tree
 
Reported: 2021-01-12 13:18 UTC by Marcin Kowalski
Modified: 2024-10-29 21:57 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log and emerge --info.txt.xz (build.log-emerge-info.txt.xz,115.93 KB, application/x-xz)
2021-01-12 20:23 UTC, Ionen Wolkens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Kowalski 2021-01-12 13:18:08 UTC
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
Comment 1 Ionen Wolkens gentoo-dev 2021-01-12 19:31:18 UTC
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?
Comment 2 Ionen Wolkens gentoo-dev 2021-01-12 20:23:35 UTC
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.
Comment 3 Marcin Kowalski 2021-01-13 11:04:24 UTC
Yes the -j1 helps here.
Comment 4 Jan Baklo 2021-05-10 04:17:55 UTC
the same issue with app-emulation/containerd-1.4.4 package
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-16 21:00:22 UTC
ping
Comment 6 Larry the Git Cow gentoo-dev 2021-05-25 23:27:21 UTC
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(-)
Comment 7 Georgy Yakovlev archtester gentoo-dev 2021-05-25 23:31:06 UTC
workaround should not slow the build itself down, as I applied -j1 only for man target.
Comment 8 Alfred Wingate 2024-10-29 21:57:15 UTC
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'