All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] CCACHE accross multiple buildroot projects
@ 2017-06-19 13:57 Heiko Thiery
  2017-06-20 16:04 ` Yann E. MORIN
  0 siblings, 1 reply; 4+ messages in thread
From: Heiko Thiery @ 2017-06-19 13:57 UTC (permalink / raw)
  To: buildroot

Hi,

is it allowed to use CCACHE accross several projects (all the same
architecture)?

--
Heiko

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] CCACHE accross multiple buildroot projects
  2017-06-19 13:57 [Buildroot] CCACHE accross multiple buildroot projects Heiko Thiery
@ 2017-06-20 16:04 ` Yann E. MORIN
  2017-06-20 17:21   ` Adrian Perez de Castro
  0 siblings, 1 reply; 4+ messages in thread
From: Yann E. MORIN @ 2017-06-20 16:04 UTC (permalink / raw)
  To: buildroot

Heiko, All,

On 2017-06-19 15:57 +0200, Heiko Thiery spake thusly:
> is it allowed to use CCACHE accross several projects (all the same
> architecture)?

Normally, ccache hashes a few things to ensure that it does not re-use
incompatible obkects. It should be safe.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] CCACHE accross multiple buildroot projects
  2017-06-20 16:04 ` Yann E. MORIN
@ 2017-06-20 17:21   ` Adrian Perez de Castro
  2017-06-20 17:37     ` Heiko Thiery
  0 siblings, 1 reply; 4+ messages in thread
From: Adrian Perez de Castro @ 2017-06-20 17:21 UTC (permalink / raw)
  To: buildroot

On Tue, 20 Jun 2017 18:04:12 +0200, "Yann E. MORIN" <yann.morin.1998@free.fr> wrote:
> Heiko, All,
> 
> On 2017-06-19 15:57 +0200, Heiko Thiery spake thusly:
> > is it allowed to use CCACHE accross several projects (all the same
> > architecture)?
> 
> Normally, ccache hashes a few things to ensure that it does not re-use
> incompatible obkects. It should be safe.

It is, I routinely find myself having 3-4 different Buildroot work trees, all
pointing ccache to the same directory in the file system. If you target the
same architecture in more than one work tree, builds can sometimes be faster
when the same versions of the same files are used by different work trees.

Cheers,

--
 Adri?n ?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170620/dd3f0a18/attachment.asc>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] CCACHE accross multiple buildroot projects
  2017-06-20 17:21   ` Adrian Perez de Castro
@ 2017-06-20 17:37     ` Heiko Thiery
  0 siblings, 0 replies; 4+ messages in thread
From: Heiko Thiery @ 2017-06-20 17:37 UTC (permalink / raw)
  To: buildroot

Meanwhile I figured out a stange issue. I have 4 different buildroot
projects with different workspaces but all of them use the same ccache
directory. These workspaces are cleaned in a scheduled interval. Then
it can happen that a new build will fail because of some pathes in
dependency files are pointing to files in other a cleaned workspace.

2017-06-20 19:21 GMT+02:00 Adrian Perez de Castro <aperez@igalia.com>:
> On Tue, 20 Jun 2017 18:04:12 +0200, "Yann E. MORIN" <yann.morin.1998@free.fr> wrote:
>> Heiko, All,
>>
>> On 2017-06-19 15:57 +0200, Heiko Thiery spake thusly:
>> > is it allowed to use CCACHE accross several projects (all the same
>> > architecture)?
>>
>> Normally, ccache hashes a few things to ensure that it does not re-use
>> incompatible obkects. It should be safe.
>
> It is, I routinely find myself having 3-4 different Buildroot work trees, all
> pointing ccache to the same directory in the file system. If you target the
> same architecture in more than one work tree, builds can sometimes be faster
> when the same versions of the same files are used by different work trees.
>
> Cheers,
>
> --
>  Adri?n ?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-06-20 17:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-19 13:57 [Buildroot] CCACHE accross multiple buildroot projects Heiko Thiery
2017-06-20 16:04 ` Yann E. MORIN
2017-06-20 17:21   ` Adrian Perez de Castro
2017-06-20 17:37     ` Heiko Thiery

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.