Skip to contentSkip to conversation

ceph: disable ccache

PATCH In review Dengke Du 2 participants 2 messages Feb 14, 2019

lore
Share & tools
lore

Dengke Du

author
#0 lore raw

PATCH 1/1 ceph: disable ccache

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.

---
 recipes-extended/ceph/ceph_13.2.2.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-extended/ceph/ceph_13.2.2.bb +1 -0
index 08021cf..0cba08a 100644
@@ -101,3 +101,4 @@ PACKAGES += " \
 "
 INSANE_SKIP_${PN}-python += "ldflags"
 INSANE_SKIP_${PN} += "dev-so"
+CCACHE_DISABLE = "1"
Signature · 1 line
2.7.4
#1 lore raw

merged.

Bruce

Quoted 43 lines · Dengke Du

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.

---
 recipes-extended/ceph/ceph_13.2.2.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-extended/ceph/ceph_13.2.2.bb +1 -1
index 08021cf..0cba08a 100644
@@ -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
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

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