<?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>14859</bug_id>
          
          <creation_ts>2022-07-12 10:42:24 +0000</creation_ts>
          <short_desc>Go selftest fails when target=qemux86-64 but host=aarch64</short_desc>
          <delta_ts>2022-07-26 15:37:28 +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>4.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</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>4.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>raj.khem</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>93660</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2022-07-12 10:42:24 +0000</bug_when>
    <thetext>If I run the gotoolchain selftest on an aarch64 host with MACHINE=qemux86-64, the test fails:

AssertionError: Command &apos;cd /tmp/SDKQAg7yt6cs3/go/src/github.com/direnv/direnv; . /tmp/SDKQAg7yt6cs3/environment-setup-core2-64-poky-linux; export GOPATH=/tmp/SDKQAg7yt6cs3/go; ${CROSS_COMPILE}go build&apos; returned non-zero exit status 2:
go: downloading github.com/BurntSushi/toml v0.3.1
go: downloading golang.org/x/mod v0.4.0
go: downloading github.com/direnv/go-dotenv v0.0.0-20181227095604-4cce6d1a66f7
go: downloading github.com/mattn/go-isatty v0.0.12
go: downloading golang.org/x/sys v0.0.0-20200116001909-b77594299b42
# github.com/direnv/direnv
cannot find package runtime/cgo (using -importcfg)
/tmp/SDKQAg7yt6cs3/sysroots/aarch64-pokysdk-linux/usr/lib/x86_64-poky-linux/go/pkg/tool/linux_arm64/link: cannot open file : open : no such file or directory</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93663</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2022-07-12 13:38:07 +0000</bug_when>
    <thetext>https://bugzilla.yoctoproject.org/show_bug.cgi?id=14860 is another Go/SDK issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93697</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2022-07-25 15:53:59 +0000</bug_when>
    <thetext>CGO_ENABLED=1 needed to be set.  Patch on the list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93702</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2022-07-26 15:37:28 +0000</bug_when>
    <thetext>Fixed in 19be072619d39267df44f23c4c8b64f3808f6148.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>