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 (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-12 13:18 UTC by Marcin Kowalski
Modified: 2021-05-25 23:31 UTC (History)
3 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.