freebsd-current compile with clang & ccache

Bryan Drewery bdrewery at FreeBSD.org
Wed Nov 25 19:37:15 UTC 2015


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20151125/f599e360/attachment.bin>


More information about the freebsd-current mailing list