Skip to contentSkip to conversation

go: Disbale CGO for riscv64

PATCH In review Khem Raj 1 participant 2 messages Jul 9, 2020 – Jul 10, 2020

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v2 1/1 go: Disbale CGO for riscv64

cgo is still not available in go for riscv64, we will re-evaluate it once we upgrade to 1.15

Fixes
| /usr/src/debug/go-runtime/1.14.4-r0/go/src/runtime/cgo/gcc_util.c:23: undefined reference to `_cgo_sys_thread_start'

[YOCTO #13966]

---
v2: Fix go as well along with go-runtime

 meta/recipes-devtools/go/go-runtime_1.14.bb | 1 +
 meta/recipes-devtools/go/go_1.14.bb         | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
meta/recipes-devtools/go/go-runtime_1.14.bb +1 -0
index 43b68b4e46..4eeee65e0c 100644
@@ -1,2 +1,3 @@
+export CGO_ENABLED_riscv64 = ""
 require go-${PV}.inc
 require go-runtime.inc
meta/recipes-devtools/go/go_1.14.bb +1 -1
index 5d40cf9d04..bc90a1329e 100644
@@ -2,7 +2,7 @@ require go-${PV}.inc
 require go-target.inc
 
 export GOBUILDMODE=""
-
+export CGO_ENABLED_riscv64 = ""
 # Add pie to GOBUILDMODE to satisfy "textrel" QA checking, but mips/riscv
 # doesn't support -buildmode=pie, so skip the QA checking for mips/riscv and its
 # variants.
Signature · 1 line
2.27.0
author
#1 lore raw

Please consider it for dunfell as well once in master

Quoted 38 lines · Khem Raj

cgo is still not available in go for riscv64, we will re-evaluate it once we upgrade to 1.15

Fixes
| /usr/src/debug/go-runtime/1.14.4-r0/go/src/runtime/cgo/gcc_util.c:23: undefined reference to `_cgo_sys_thread_start'

[YOCTO #13966]

---
v2: Fix go as well along with go-runtime

 meta/recipes-devtools/go/go-runtime_1.14.bb | 1 +
 meta/recipes-devtools/go/go_1.14.bb         | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
meta/recipes-devtools/go/go-runtime_1.14.bb +1 -0
index 43b68b4e46..4eeee65e0c 100644
@@ -1,2 +1,3 @@
+export CGO_ENABLED_riscv64 = ""
 require go-${PV}.inc
 require go-runtime.inc
meta/recipes-devtools/go/go_1.14.bb +1 -1
index 5d40cf9d04..bc90a1329e 100644
@@ -2,7 +2,7 @@ require go-${PV}.inc
 require go-target.inc
 
 export GOBUILDMODE=""
-
+export CGO_ENABLED_riscv64 = ""
 # Add pie to GOBUILDMODE to satisfy "textrel" QA checking, but mips/riscv
 # doesn't support -buildmode=pie, so skip the QA checking for mips/riscv and its
 # variants.