Re: freebsd-current compile with clang & ccache

From: Bryan Drewery <bdrewery_at_FreeBSD.org>
Date: Wed, 25 Nov 2015 11:37:11 -0800
On 11/25/2015 11:34 AM, Rainer Hurling wrote:
> Am 25.11.15 um 19:50 schrieb Bryan Drewery:
>> On 11/25/2015 10:09 AM, Juan Molina wrote:
>>>> On 11/24/2015 1:31 AM, M&S - Krasznai András wrote:
>>>>> /What can I do to eliminate the ccache error during installworld
>>>> apart from not using ccache? /
>>>> I would recommend not setting CC or CCACHE_PATH in make.conf and using
>>>> the new WITH_CCACHE_BUILD=yes option instead.
>>>>
>>>> -- 
>>>> Regards,
>>>> Bryan Drewery
>>>
>>> Hi.
>>>
>>> I’m seeing the same ccache errors and I do not have CC or CCACHE_PATH
>>> defined anywhere. Only WITH_CCACHE_BUILD and WITH_FAST_DEPEND in src.conf.
>>>
>>
>> WITH_FAST_DEPEND is not related.
>>
>> Are you building and installing as a different user? Using a different
>> MAKEOBJDIRPREFIX in build and install?
>>
>> Do you have CCACHE_PATH in your environment?
>>
>> Run 'make ccache-print-options|grep path'. It should have no value.
>>
> 
> Is there any possibility to redirect the .ccache directory, something
> like CCACHE_PATH for userland?
> 
> I am asking, because in my attempts to build base with WITH_CCACHE_BUILD
> and WITH_FAST_DEPEND enabled, it breaks with error message 'file system
> full'. My root partition has only 1GB and ccache itself seems to need
> more than 800MB in /root/.ccache.
> 

You want to modify CCACHE_DIR. You can do this in make.conf or the
environment.

I tend to just symlink /root/.ccache to somewhere else though and let
the default work via the symlink.

Also see 'man src.conf' (WITH_CCACHE_BUILD section) and 'man ccache'.

-- 
Regards,
Bryan Drewery


Received on Wed Nov 25 2015 - 18:37:15 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:01 UTC