build faied with this error: mkdir -p $WORK/b001/exe/ cd . /usr/lib/go/pkg/tool/linux_amd64/link -o $WORK/b001/exe/a.out -importcfg $WORK/b001/importcfg.link -buildmode=exe -buildid=KMi15qsQoQc4bt4aTmn6/R14BYAjz5MB7gCvCai42/QWLot6QhnXN3v9oaJQ4b/KMi15qsQoQc4bt4aTmn6 -extld=clang $WORK/b001/_pkg_.a # github.com/caddyserver/caddy/v2/cmd/caddy /usr/lib/go/pkg/tool/linux_amd64/link: running clang failed: signal: aborted (core dumped) ccache: Util.cpp:716: std::string Util::get_relative_path(nonstd::sv_lite::string_view, nonstd::sv_lite::string_view): failed assertion: Util::is_absolute_path(dir) Reproducible: Always Steps to Reproduce: 1.FEATURES=ccache emerge www-servers/caddy => failed 2.FEATURES=-ccache emerge www-servers/caddy => ok
Created attachment 668645 [details] build.log
I don't think this issue is isolated to www-servers/caddy. I'm hitting the same error trying to compile app-emulation/runc. (And the same suggested fix of temporarily disabling the ccache feature works perfectly to resolve the issue.) I'm guessing some kind of interaction between go and ccache?
I think it's a ccache bug: https://github.com/ccache/ccache/issues/860
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e1ed9330e1ac2cbf65e01bad5b97910daf0397d commit 8e1ed9330e1ac2cbf65e01bad5b97910daf0397d Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2021-06-18 10:12:52 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2021-06-18 10:15:06 +0000 dev-util/ccache: backport PWD=. handling Reported-by: 12101111 Closes: https://bugs.gentoo.org/751355 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> dev-util/ccache/ccache-4.3-r2.ebuild | 90 ++++++++++++++++++++++++++++++ dev-util/ccache/files/ccache-4.3-PWD.patch | 85 ++++++++++++++++++++++++++++ 2 files changed, 175 insertions(+)