Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 751355 - dev-util/ccache-4.3-r1: failed assertion: Util::is_absolute_path(dir) on go-based packages
Summary: dev-util/ccache-4.3-r1: failed assertion: Util::is_absolute_path(dir) on go-b...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://github.com/ccache/ccache/issu...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-26 16:30 UTC by 12101111
Modified: 2021-06-18 10:15 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,583.64 KB, text/x-log)
2020-10-26 16:38 UTC, 12101111
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 12101111 2020-10-26 16:30:32 UTC
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
Comment 1 12101111 2020-10-26 16:38:47 UTC
Created attachment 668645 [details]
build.log
Comment 2 Reed Riley 2021-01-13 15:34:56 UTC
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?
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2021-06-13 11:09:48 UTC
I think it's a ccache bug: https://github.com/ccache/ccache/issues/860
Comment 4 Larry the Git Cow gentoo-dev 2021-06-18 10:15:12 UTC
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(+)