Re: use of ccache 4.14 can result in a defect in the FreeBSD kernel

From: Enji Cooper <yaneurabeya_at_gmail.com>
Date: Mon, 02 Nov 2026 14:38:39 UTC
> On Nov 2, 2026, at 05:50, void <void@f-m.fm> wrote:
> 
> On Sun, Nov 01, 2026 at 04:08:24PM +0100, Alexander Leidinger wrote:
> 
>> The workaround: use CCACHE_NODIRECT=1
> 
> Hi, where would this go?
> 
> 1. in /etc/src.conf ?
> 2. on the command line like
>   make -j24 buildworld CCACHE_NODIRECT=1 or
>   make -j24 buildworld -DCCACHE_NODIRECT=1
>      or something else?
> 
> my context is recent -current amd64

CCACHE_NODIRECT looks like an environment variable which you would need to give to whatever process starts ccache (does make spawn it?). Alternatively, if you add “direct = false” to ccache.conf, it looks like it would disable that globally.

Ref: https://github.com/ccache/ccache/issues/935#issuecomment-923163980

Cheers,
-Enji