All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ceph: disable ccache
@ 2019-02-14  3:36 Dengke Du
  2019-02-14 14:08 ` Bruce Ashfield
  0 siblings, 1 reply; 2+ messages in thread
From: Dengke Du @ 2019-02-14  3:36 UTC (permalink / raw
  To: meta-virtualization

When enable ccache for ceph, error occurs:
-----------------------------------------------------
    ccache: invalid option -- 'E'
    ...
    Unable to determine C++ standard library, got .
-----------------------------------------------------
This is because variable "CXX_STDLIB" was null in CMakeLists.txt line: 637,
The "CXX_STDLIB" come from:
-----------------------------------------------------
    execute_process(
      COMMAND ./librarytest.sh ${CMAKE_CXX_COMPILER} ${CMAKE_CXX_FLAGS}
      WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
      OUTPUT_VARIABLE CXX_STDLIB
      )
-----------------------------------------------------
The script librarytest.sh in ceph accept argument: compile and flags, but when
enable ccache, the compile replace by ccache, so that script failed.

So we disable ccache for ceph now.

Signed-off-by: Dengke Du <dengke.du@windriver.com>
---
 recipes-extended/ceph/ceph_13.2.2.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-extended/ceph/ceph_13.2.2.bb b/recipes-extended/ceph/ceph_13.2.2.bb
index 08021cf..0cba08a 100644
--- a/recipes-extended/ceph/ceph_13.2.2.bb
+++ b/recipes-extended/ceph/ceph_13.2.2.bb
@@ -101,3 +101,4 @@ PACKAGES += " \
 "
 INSANE_SKIP_${PN}-python += "ldflags"
 INSANE_SKIP_${PN} += "dev-so"
+CCACHE_DISABLE = "1"
-- 
2.7.4



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

* Re: [PATCH] ceph: disable ccache
  2019-02-14  3:36 [PATCH] ceph: disable ccache Dengke Du
@ 2019-02-14 14:08 ` Bruce Ashfield
  0 siblings, 0 replies; 2+ messages in thread
From: Bruce Ashfield @ 2019-02-14 14:08 UTC (permalink / raw
  To: Dengke Du; +Cc: meta-virtualization

merged.

Bruce

On Wed, Feb 13, 2019 at 10:18 PM Dengke Du <dengke.du@windriver.com> wrote:
>
> When enable ccache for ceph, error occurs:
> -----------------------------------------------------
>     ccache: invalid option -- 'E'
>     ...
>     Unable to determine C++ standard library, got .
> -----------------------------------------------------
> This is because variable "CXX_STDLIB" was null in CMakeLists.txt line: 637,
> The "CXX_STDLIB" come from:
> -----------------------------------------------------
>     execute_process(
>       COMMAND ./librarytest.sh ${CMAKE_CXX_COMPILER} ${CMAKE_CXX_FLAGS}
>       WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
>       OUTPUT_VARIABLE CXX_STDLIB
>       )
> -----------------------------------------------------
> The script librarytest.sh in ceph accept argument: compile and flags, but when
> enable ccache, the compile replace by ccache, so that script failed.
>
> So we disable ccache for ceph now.
>
> Signed-off-by: Dengke Du <dengke.du@windriver.com>
> ---
>  recipes-extended/ceph/ceph_13.2.2.bb | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/recipes-extended/ceph/ceph_13.2.2.bb b/recipes-extended/ceph/ceph_13.2.2.bb
> index 08021cf..0cba08a 100644
> --- a/recipes-extended/ceph/ceph_13.2.2.bb
> +++ b/recipes-extended/ceph/ceph_13.2.2.bb
> @@ -101,3 +101,4 @@ PACKAGES += " \
>  "
>  INSANE_SKIP_${PN}-python += "ldflags"
>  INSANE_SKIP_${PN} += "dev-so"
> +CCACHE_DISABLE = "1"
> --
> 2.7.4
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization



-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II


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

end of thread, other threads:[~2019-02-14 14:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-14  3:36 [PATCH] ceph: disable ccache Dengke Du
2019-02-14 14:08 ` Bruce Ashfield

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.