From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Cc: Zhenfeng.Zhao@windriver.com
Subject: Re: [PATCH 1/1] autogen-native 5.12: fix ccache issue
Date: Thu, 21 Jun 2012 11:49:53 +0100 [thread overview]
Message-ID: <1340275793.1640.88.camel@ted> (raw)
In-Reply-To: <43117c408ee5a090f94b1a9638f9056d87be9077.1340272953.git.liezhi.yang@windriver.com>
On Thu, 2012-06-21 at 18:04 +0800, Robert Yang wrote:
> The autogen-native built error on FC17:
>
> ccache: failed to create /dev/null/.ccache
>
> This is because the gcc of FC17 is a symlink to ccache, so the ccache
> will always be used regardless to the user's setting, ccache uses
> $HOME/.ccache as the CCACHE_DIR if it has not been set, and autogen set
> HOME=/dev/null.
>
> Assign CCACHE_DIR the default value to preven it uses $HOME/.ccache
> would fix the error.
>
> [YOCTO #2554]
>
> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
> ---
> .../autogen/autogen-native_5.12.bb | 20 ++++++++++++++++++++
> 1 files changed, 20 insertions(+), 0 deletions(-)
>
> diff --git a/meta/recipes-devtools/autogen/autogen-native_5.12.bb b/meta/recipes-devtools/autogen/autogen-native_5.12.bb
> index eb3721d..e80d555 100644
> --- a/meta/recipes-devtools/autogen/autogen-native_5.12.bb
> +++ b/meta/recipes-devtools/autogen/autogen-native_5.12.bb
> @@ -28,6 +28,26 @@ inherit autotools native
> export GUILE_LOAD_PATH = "${STAGING_DATADIR_NATIVE}/guile/2.0"
> export GUILE_LOAD_COMPILED_PATH = "${STAGING_LIBDIR_NATIVE}/guile/2.0/ccache"
>
> +#
> +# The do_compile_prepend is used for fixing a build error on FC17, the
> +# gcc of FC17 is a symlink to ccache, if we don't set the CCACHE_DIR,
> +# there would be an error:
> +#
> +# ccache: failed to create /dev/null/.ccache
> +#
> +# This is because ccache uses $HOME/.ccache as the CCACHE_DIR if it has
> +# not been set, and autogen set HOME=/dev/null.
> +#
> +# Assign CCACHE_DIR the default value so that it would not use
> +# $HOME/.ccache would fix the error.
> +#
> +do_compile_prepend() {
> + if [ "${CCACHE_DIR}" = "" ]; then
> + export CCACHE_DISABLE=true
> + export CCACHE_DIR=$HOME
> + fi
> +}
> +
> do_install_append () {
> create_wrapper ${D}/${bindir}/autogen \
> GUILE_LOAD_PATH=${STAGING_DATADIR_NATIVE}/guile/2.0 \
Could we just set CCACHE_DISABLE ?
In fact could we just set that globally?
I'm afraid I don't like fixing this on a per recipe basis...
Cheers,
Richard
next prev parent reply other threads:[~2012-06-21 11:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-21 10:04 [PATCH 0/1] autogen-native 5.12: fix ccache issue Robert Yang
2012-06-21 10:04 ` [PATCH 1/1] " Robert Yang
2012-06-21 10:49 ` Richard Purdie [this message]
2012-06-23 2:49 ` 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=1340275793.1640.88.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--cc=Zhenfeng.Zhao@windriver.com \
--cc=openembedded-core@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox