Go for qemuriscv64 fails to build: | Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1. | Building Go toolchain2 using go_bootstrap and Go toolchain1. | Building Go toolchain3 using go_bootstrap and Go toolchain2. | Building std for target, linux/riscv64. | # runtime/cgo | /home/ross/Yocto/build/tmp/work/riscv64-poky-linux/go-runtime/1.14.4-r0/recipe-sysroot-native/usr/bin/riscv64-poky-linux/../../libexec/riscv64-poky-linux/gcc/riscv64-poky-linux/10.1.0/ld: $WORK/b037/_x008.o: in function `x_cgo_thread_start': | /usr/src/debug/go-runtime/1.14.4-r0/go/src/runtime/cgo/gcc_util.c:21: undefined reference to `_cgo_sys_thread_start' | collect2: error: ld returned 1 exit status | go tool dist: FAILED: /home/ross/Yocto/build/tmp/work/riscv64-poky-linux/go-runtime/1.14.4-r0/go/pkg/tool/native_native/go_bootstrap install -gcflags=all= -ldflags=all= std: exit status 2 | WARNING: exit code 2 from a shell command.
yes we need to disable CGO which is not yet in and therefore not part of 1.14.x release
patch is on ml
is this the fix? http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/meta/recipes-devtools/go?id=192d6e9b4739bb53e513e78da5d552a3f1d931d3 and go was updated. http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/meta/recipes-devtools/go?id=528bdfc8603f48da07cb6e72e75e197fb0ab1b88 please close issue is resolved.
Yeah, CGO is disbaled now so that's the work around. Hopefully in the future we can re-bale CGO for all these platforms.