summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2017-11-15 10:57:05 +0800
committerRobert Yang <liezhi.yang@windriver.com>2017-11-30 09:27:27 +0800
commit218a504a761a852ee5013166b6c2b91c6db7ad05 (patch)
treeec7807569d39cf8978a81ac16ba7384ffa834c80
parent12c2694b20a9198d2d4f02100ced3dbdc1351f75 (diff)
downloadopenembedded-core-contrib-218a504a761a852ee5013166b6c2b91c6db7ad05.tar.gz
openembedded-core-contrib-218a504a761a852ee5013166b6c2b91c6db7ad05.tar.bz2
openembedded-core-contrib-218a504a761a852ee5013166b6c2b91c6db7ad05.zip
go-native: fix import error when len(TMPDIR) == 410
It is used for saving file path, 500 is a little small when building in deep path, for example, it would be failed when oe-coe's len(TMPDIR) == 410, use 1000 can fix the problem. Fixed: $ bitbake go-native [snip] gcc -isystem/workspace2/lyang1/aaaaaaaa/[snip] exec gcc: No such file or directory [snip] Only go-native needs this patch since only it uses go1.4 which has src/cmd/gc/go.h. [YOCTO #11351] Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
-rw-r--r--meta/recipes-devtools/go/files/0002-cmd-gc-go.h-NSYMB-500-1000.patch35
-rw-r--r--meta/recipes-devtools/go/go-native.inc1
2 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-devtools/go/files/0002-cmd-gc-go.h-NSYMB-500-1000.patch b/meta/recipes-devtools/go/files/0002-cmd-gc-go.h-NSYMB-500-1000.patch
new file mode 100644
index 0000000000..73aff0cc3c
--- /dev/null
+++ b/meta/recipes-devtools/go/files/0002-cmd-gc-go.h-NSYMB-500-1000.patch
@@ -0,0 +1,35 @@
+From 7228802277fa97bf3b3988eeef1ff5b8e97ab082 Mon Sep 17 00:00:00 2001
+From: Robert Yang <liezhi.yang@windriver.com>
+Date: Wed, 15 Nov 2017 14:23:48 +0800
+Subject: [PATCH] cmd/gc/go.h: NSYMB: 500 -> 1000
+
+It is used for saving file path, 500 is a little small when building in deep
+path, for example, it would be failed when oe-coe's len(TMPDIR) == 410, use
+1000 can fix the problem.
+
+Fixed:
+cmd/internal/objfile/disasm.go:18: can't find import: "cmd/internal/rsc.io/arm/armasm"
+
+Upstream-Status: Pending
+
+Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
+---
+ go/src/cmd/gc/go.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/go/src/cmd/gc/go.h b/go/src/cmd/gc/go.h
+index bbb8835..caa326c 100644
+--- a/go/src/cmd/gc/go.h
++++ b/go/src/cmd/gc/go.h
+@@ -27,7 +27,7 @@ enum
+ {
+ NHUNK = 50000,
+ BUFSIZ = 8192,
+- NSYMB = 500,
++ NSYMB = 1000,
+ NHASH = 1024,
+ STRINGSZ = 200,
+ MAXALIGN = 7,
+--
+2.7.4
+
diff --git a/meta/recipes-devtools/go/go-native.inc b/meta/recipes-devtools/go/go-native.inc
index 0791b6d5e1..43426c0887 100644
--- a/meta/recipes-devtools/go/go-native.inc
+++ b/meta/recipes-devtools/go/go-native.inc
@@ -6,6 +6,7 @@ inherit native
SRC_URI_append = " http://golang.org/dl/go1.4.3.src.tar.gz;name=bootstrap;subdir=go1.4 \
file://0001-cmd-dist-unix.c-bprintf-use-larger-buf.patch;patchdir=../go1.4 \
+ file://0002-cmd-gc-go.h-NSYMB-500-1000.patch;patchdir=../go1.4 \
"
SRC_URI[bootstrap.md5sum] = "dfb604511115dd402a77a553a5923a04"
SRC_URI[bootstrap.sha256sum] = "9947fc705b0b841b5938c48b22dc33e9647ec0752bae66e50278df4f23f64959"