Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939561 - dev-util/ccache: emerge with FEATURES="-ccache"
Summary: dev-util/ccache: emerge with FEATURES="-ccache"
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-13 05:21 UTC by Matthias Schwarzott
Modified: 2024-09-17 22:00 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Schwarzott gentoo-dev 2024-09-13 05:21:16 UTC
Emerge dev-util/ccache should use FEATURES="-ccache"

---
I found this when being hit today by the dev-cpp/cpp-httplib-0.17.3-r1 update:
# ccache gcc --version
ccache: symbol lookup error: ccache: undefined symbol: _ZN7httplib6Client19set_default_headersESt18unordered_multimapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_NS_6detail16case_ignore_hashENS8_17case_ignore_equalESaISt4pairIKS7_S7_EEE

See also https://bugs.gentoo.org/938011#c3

emerge was completely broken. Neither emerge portage nor emerge ccache did work.
e.g. emerge portage just showed
meson.build:1:0: ERROR: Unknown compiler(s): [['x86_64-pc-linux-gnu-gcc']]

---

FEATURES="-ccache" emerge ccache
did fix it.
I wonder if emerge ccache could be compiled without using ccache as compiler wrapper.

I remember other breakage of ccache where that could have fixed it even without user intervention.
Comment 1 Holger Hoffstätte 2024-09-14 08:23:37 UTC
Fiddling with FEATURES in the ebuild is forbidden/not possible, but the linked PR contains a workaround that we collectively came up with on IRC.
This can serve as inspiration for a "filter-ccache" function in toolchain.
Comment 2 Matthias Schwarzott gentoo-dev 2024-09-14 13:07:29 UTC
I would have hoped for
RESTRICT="ccache"
but that seems to not exist. :-(
Comment 3 Mike Gilbert gentoo-dev 2024-09-14 20:12:03 UTC
I don't quite see why we should treat ccache specially here. Surely any toolchain component could potentially break in a similar fashion?
Comment 4 Matthias Schwarzott gentoo-dev 2024-09-15 10:53:01 UTC
I once had an issue where ccache worked in general but still had some strange issues.
That could only be worked around by compiling ccache with FEATURES="-ccache"
But I never found out what the real issue was.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-17 22:00:46 UTC
I don't think it makes sense to remove the PR link. The discussion remains there even if merging it isn't going to resolve this (which might well be a WONTFIX).