All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Robert Yang" <liezhi.yang@windriver.com>
To: Richard Purdie <richard.purdie@linuxfoundation.org>,
	openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH 2/3] buildtools-tarball: Add nativesdk-ccache
Date: Thu, 7 Jan 2021 18:59:00 +0800	[thread overview]
Message-ID: <8eb45b12-acb2-ce3e-c821-3c381c1107f7@windriver.com> (raw)
In-Reply-To: <3966f6f4c6c748f36c73bfccaaa36fdea6b34e63.camel@linuxfoundation.org>

Hi RP,

On 1/7/21 6:40 PM, Richard Purdie wrote:
> On Thu, 2021-01-07 at 10:44 +0800, Robert Yang wrote:
>> Hi RP,
>>
>> On 1/6/21 9:56 PM, Richard Purdie wrote:
>>> On Wed, 2021-01-06 at 04:09 -0800, Robert Yang wrote:
>>>> Add it to buildtools-tarball so that there will be a unify version of ccache,
>>>> which can help avoid various compile errors.
>>>>
>>>> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
>>>> ---
>>>>    meta/recipes-core/meta/buildtools-tarball.bb | 1 +
>>>>    1 file changed, 1 insertion(+)
>>>>
>>>> diff --git a/meta/recipes-core/meta/buildtools-tarball.bb b/meta/recipes-core/meta/buildtools-tarball.bb
>>>> index 9da81d55235..2ffdd7c7253 100644
>>>> --- a/meta/recipes-core/meta/buildtools-tarball.bb
>>>> +++ b/meta/recipes-core/meta/buildtools-tarball.bb
>>>> @@ -29,6 +29,7 @@ TOOLCHAIN_HOST_TASK ?= "\
>>>>        nativesdk-rpcsvc-proto \
>>>>        nativesdk-patch \
>>>>        nativesdk-mtools \
>>>> +    nativesdk-ccache \
>>>>        "
>>>
>>> My view is we should not start to ship ccache with buildtools by
>>> default. Its something that the user can install if they want/need it
>>
>>
>> The problem is that user installed ccache may not work with our recipes, for
>> example, we found the following recipes failed to build with ccache on different
>> hosts:
>>
>> cdrtools-native
>> fribidi
>> rocksdb
>>
>>
>> So have a fixed version of ccache can make sure the recipes work well, it also
>> helps us to reproduce the errors easily when user reported a bug.
> 
> I really do not want ccache in buildtools. If this is such a problem,
> we need to work out how to resolve the circular dependency issues so
> ccache-native can work again.

There are two problems to use cache-native now:
* ccache-native depends on cmake-native and zstd-native which makes it requires
   more time to build, so it might be a bottleneck for the build

* We need disable ccache-native for about 20 native recipes to resolve the 
circular dependency.

It seems that there isn't a good way to fix the problem, or we have to disable
ccache for native recipes, only make other recipes (cross, target and nativesdk)
use ccache-native.

Host's ccache isn't reliable from the history.

// Robert

> 
> Cheers,
> 
> Richard
> 
> 
> 

  reply	other threads:[~2021-01-07 11:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-06 12:09 [PATCH 0/3] ccache: Fixes for 4.1 Robert Yang
2021-01-06 12:09 ` [PATCH 1/3] ccache: Extend to nativesdk Robert Yang
2021-01-06 12:09 ` [PATCH 2/3] buildtools-tarball: Add nativesdk-ccache Robert Yang
2021-01-06 13:56   ` [OE-core] " Richard Purdie
2021-01-07  2:44     ` Robert Yang
2021-01-07 10:40       ` Richard Purdie
2021-01-07 10:59         ` Robert Yang [this message]
2021-01-07 16:12           ` Joshua Watt
2021-01-08  7:47             ` Mikko Rapeli
2021-01-08  8:23               ` Richard Purdie
2021-01-08 10:48             ` Robert Yang
2021-01-07 17:10           ` Richard Purdie
2021-01-08 10:48             ` Robert Yang
2021-01-06 12:09 ` [PATCH 3/3] ccache.bbclass: Set CCACHE_TEMPDIR Robert Yang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8eb45b12-acb2-ce3e-c821-3c381c1107f7@windriver.com \
    --to=liezhi.yang@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=richard.purdie@linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.