[meta-virtualization] [PATCH] docker: Disable CCACHE because golang will fail on some hosts

Jason Wessel jason.wessel at windriver.com
Mon Mar 30 07:42:40 PDT 2015


The following is the type of error you see when CCACHE is enabled.

| ---> Making bundle: dynbinary (in bundles/1.5.0-dev/dynbinary)
| go build runtime/cgo: no buildable Go source files in /opt/proj/tmp/sysroots/x86_64-linux/usr/lib/x86_64-wrs-linux/go/src/pkg/runtime/cgo
| WARNING: /opt/proj/tmp/work/core2-64-wrs-linux/docker/1.5.0+git2243e32cbbf1c9809c262a7376d34ca43a7a36dc-r0/temp/do_compile/run.do_compile.19967:1 exit 1 from
|   DOCKER_GITCOMMIT="2243e32cbbf1c9809c262a7376d34ca43a7a36dc" ./hack/make.sh dynbinary
| ERROR: Function failed: do_compile (log file is located at /opt/proj/tmp/work/core2-64-wrs-linux/docker/1.5.0+git2243e32cbbf1c9809c262a7376d34ca43a7a36dc-r0/temp/do_compile/log.do_compile.19967)

Signed-off-by: Jason Wessel <jason.wessel at windriver.com>
---
 recipes-containers/docker/docker_git.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/recipes-containers/docker/docker_git.bb b/recipes-containers/docker/docker_git.bb
index 8357ee8..225745a 100644
--- a/recipes-containers/docker/docker_git.bb
+++ b/recipes-containers/docker/docker_git.bb
@@ -25,6 +25,11 @@ SRC_URI = "\
 	file://hi.Dockerfile \
 	"
 
+# The golang-cross embeds a compiler invocation for the pre-parser
+# that is incompatible with the $CC definition used by the compiler
+# templates so disable CCACHE
+CCACHE = ""
+
 # Apache-2.0 for docker
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=1cc0497778922bfd6cb48721deb80dc7"
-- 
1.9.1



More information about the meta-virtualization mailing list