<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13966</bug_id>
          
          <creation_ts>2020-07-01 07:38:19 +0000</creation_ts>
          <short_desc>Go fails on riscv</short_desc>
          <delta_ts>2020-08-14 02:29:58 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>3.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.2 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Khem Raj">raj.khem</assigned_to>
          <cc>akuster808</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>87670</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-07-01 07:38:19 +0000</bug_when>
    <thetext>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&apos;:
| /usr/src/debug/go-runtime/1.14.4-r0/go/src/runtime/cgo/gcc_util.c:21: undefined reference to `_cgo_sys_thread_start&apos;
| 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87671</commentid>
    <comment_count>1</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2020-07-01 08:14:25 +0000</bug_when>
    <thetext>yes we need to disable CGO which is not yet in and therefore not part of 1.14.x release</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87737</commentid>
    <comment_count>2</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2020-07-09 12:49:55 +0000</bug_when>
    <thetext>patch is on ml</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87932</commentid>
    <comment_count>3</comment_count>
    <who name="akuster">akuster808</who>
    <bug_when>2020-08-13 08:26:48 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87946</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-08-14 02:29:58 +0000</bug_when>
    <thetext>Yeah, CGO is disbaled now so that&apos;s the work around.  Hopefully in the future we can re-bale CGO for all these platforms.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>