diff options
author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2016-09-23 22:02:19 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2016-09-23 22:02:19 -0400 |
commit | 05d080dc34417201c232c99b1a8de657b11c7db7 (patch) | |
tree | eecd5eb6b32e47a8a6457edbd9943fff8937433f | |
parent | b25af25747ca319d7932806ebdb33c7d220afa71 (diff) | |
download | meta-virtualization-05d080dc34417201c232c99b1a8de657b11c7db7.tar.gz |
Revert "go-cross: Fix host contamination for x86_64 host to x86_64 target"
This is breaking the build of go-cross on some machines:
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 20 static
| ERROR: oe_runmake failed
| /home/bruce/poky/build/tmp/work/core2-64-poky-linux/containerd/0.2.2+git0ac3cd1be170d180b2baed755e8f0da547ceb267-r0/git
| cd ctr && go build -ldflags "-w -extldflags -static -X github.com/docker/containerd.GitCommit=0ac3cd1be170d180b2baed755e8f0da547ceb267 " -tags "" -o ../bin/ctr
| cd containerd && go build -ldflags "-w -extldflags -static -X github.com/docker/containerd.GitCommit=0ac3cd1be170d180b2baed755e8f0da547ceb267 " -tags "" -o ../bin/containerd
| cd containerd-shim && go build -ldflags "-w -extldflags -static -X github.com/docker/containerd.GitCommit=0ac3cd1be170d180b2baed755e8f0da547ceb267 " -tags "" -o ../bin/containerd-shim
| # github.com/docker/docker/pkg/term
| cannot load DWARF output from $WORK/github.com/docker/docker/pkg/term/_obj//_cgo_.o: decoding dwarf section info at offset 0x4: unsupported version 0
| make: *** [shim-static] Error 2
| make: *** Waiting for unfinished jobs....
| # github.com/docker/docker/pkg/term
| cannot load DWARF output from $WORK/github.com/docker/docker/pkg/term/_obj//_cgo_.o: decoding dwarf section info at offset 0x4: unsupported version 0
| # github.com/opencontainers/runc/libcontainer/system
| cannot load DWARF output from $WORK/github.com/opencontainers/runc/libcontainer/system/_obj//_cgo_
This reverts commit 7ff08e542d15b8e0104185768debf360044af7d1.
-rw-r--r-- | recipes-devtools/go-cross/go-cross.inc | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/recipes-devtools/go-cross/go-cross.inc b/recipes-devtools/go-cross/go-cross.inc index 6363a789..613e9c7c 100644 --- a/recipes-devtools/go-cross/go-cross.inc +++ b/recipes-devtools/go-cross/go-cross.inc | |||
@@ -2,10 +2,6 @@ inherit cross | |||
2 | 2 | ||
3 | DEPENDS += "go-native" | 3 | DEPENDS += "go-native" |
4 | 4 | ||
5 | # Prevent runstrip from running because you get errors when the host arch != target arch | ||
6 | #INHIBIT_PACKAGE_STRIP = "1" | ||
7 | STRIP = "echo" | ||
8 | |||
9 | export GOHOSTOS = "${BUILD_GOOS}" | 5 | export GOHOSTOS = "${BUILD_GOOS}" |
10 | export GOHOSTARCH = "${BUILD_GOARCH}" | 6 | export GOHOSTARCH = "${BUILD_GOARCH}" |
11 | export GOOS = "${TARGET_GOOS}" | 7 | export GOOS = "${TARGET_GOOS}" |
@@ -30,8 +26,6 @@ do_compile() { | |||
30 | 26 | ||
31 | cd src | 27 | cd src |
32 | ./make.bash --host-only | 28 | ./make.bash --host-only |
33 | # Ensure cgo.a is built with the target toolchain | ||
34 | GO_FLAGS="-a" ./make.bash --target-only | ||
35 | } | 29 | } |
36 | 30 | ||
37 | do_install() { | 31 | do_install() { |
@@ -44,9 +38,7 @@ do_install() { | |||
44 | install -d ${D}${bindir} | 38 | install -d ${D}${bindir} |
45 | for f in ${B}/bin/* | 39 | for f in ${B}/bin/* |
46 | do | 40 | do |
47 | if [ ! -d "$f" ] ; then | 41 | install -m755 $f ${D}${bindir} |
48 | install -m755 $f ${D}${bindir} | ||
49 | fi | ||
50 | done | 42 | done |
51 | } | 43 | } |
52 | 44 | ||