Skip to contentSkip to conversation

docker: Disable CCACHE because golang will fail on some hosts

PATCH New Jason Wessel 1 participant 1 message Mar 30, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docker: Disable CCACHE because golang will fail on some hosts

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)
---
 recipes-containers/docker/docker_git.bb | 5 +++++
 1 file changed, 5 insertions(+)
recipes-containers/docker/docker_git.bb +5 -0
index 8357ee8..225745a 100644
@@ -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"
Signature · 1 line
1.9.1