<?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>15204</bug_id>
          
          <creation_ts>2023-09-04 09:00:18 +0000</creation_ts>
          <short_desc>go-cross-canadian-arm fails to compile</short_desc>
          <delta_ts>2025-08-15 20:05:42 +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.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</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>5.3 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim">tim.vanderstaaij</reporter>
          <assigned_to name="Osama Abdelkader">osama.abdelkader</assigned_to>
          <cc>bart.staal</cc>
    
    <cc>kweihmann</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>osama.abdelkader</cc>
    
    <cc>raj.khem</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
    
    <cc>tgamblin</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>96339</commentid>
    <comment_count>0</comment_count>
    <who name="Tim">tim.vanderstaaij</who>
    <bug_when>2023-09-04 09:00:18 +0000</bug_when>
    <thetext>In my project with a Cortex A7 target, the SDK fails to build after upgrading to Mickledore, because the image includes `go` in `SDK_TOOLCHAIN_LANGS` and go-cross-canadian-arm fails at the do_compile step.

More specifically, in the step where the boostrap Go compiler is invoked to build the standard library and such, the compiler exits with status 1 without printing any output whatsoever.

I can reproduce this failure with poky tags mickledore-4.2.0 and mickledore-4.2.3, as well as the mickledore branch tip and a recent master commit (40f215c). langdale-4.1.4 works fine however.

Tested on Fedora 37 (native), Fedora 38 (native) and Debian Bullseye (containerized).

Excerpts from output of `bitbake go-cross-canadian-arm`:

| DEBUG: Executing shell function do_compile
| Building Go cmd/dist using &lt;workspace&gt;/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-arm/1.20.6-r0/recipe-sysroot-native/usr/lib/go. (go1.20.6 linux/amd64)

| go tool dist: FAILED: &lt;workspace&gt;/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-arm/1.20.6-r0/go/pkg/tool/native_native/go_bootstrap install -ldflags=all=-linkmode external -extld x86_64-pokysdk-linux-gcc -extldflags &quot;--sysroot=&lt;workspace&gt;/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-arm/1.20.6-r0/recipe-sysroot -no-pie -fno-PIE -march=x86-64 -Wl,-O1            -Wl,-rpath-link,&lt;workspace&gt;/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-arm/1.20.6-r0/recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/lib/arm-poky-linux-gnueabi/..            -Wl,-rpath,/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/lib/arm-poky-linux-gnueabi/.. &quot; std cmd: exit status 1
| WARNING: exit code 2 from a shell command.
NOTE: recipe go-cross-canadian-arm-1.20.6-r0: task do_compile: Failed

Minimal reproducible example:

sources/demo-bsp/conf/layer.conf
---
BBPATH .= &quot;:${LAYERDIR}&quot;
LAYERDEPENDS_meta-demo-bsp = &quot;core&quot;
LAYERSERIES_COMPAT_meta-demo-bsp = &quot;langdale mickledore&quot;
---

sources/demo-bsp/conf/machine/demo.conf
---
require conf/machine/include/arm/armv7a/tune-cortexa7.inc
---

build/conf/bblayers.conf
---
POKY_BBLAYERS_CONF_VERSION = &quot;2&quot;
BBPATH = &quot;${TOPDIR}&quot;
BBFILES ?= &quot;&quot;
YOCTOROOT = &quot;${@os.path.abspath(os.path.join(&quot;${TOPDIR}&quot;, os.pardir))}&quot;
BBLAYERS ?= &quot; \
  ${YOCTOROOT}/sources/poky/meta \
  ${YOCTOROOT}/sources/poky/meta-poky \
  ${YOCTOROOT}/sources/demo-bsp \
  &quot;
---

build/conf/local.conf as generated by `oe-init-build-env`, except for `MACHINE ??= &quot;demo&quot;`</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96354</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2023-09-07 14:34:51 +0000</bug_when>
    <thetext>Would you be able to reproduce this on a MACHINE from OE-Core? Those are the ones we test the release with.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96371</commentid>
    <comment_count>2</comment_count>
    <who name="Tim">tim.vanderstaaij</who>
    <bug_when>2023-09-07 17:02:33 +0000</bug_when>
    <thetext>That&apos;s good to know. I ran a clean build of go-cross-canadian-arm with `MACHINE ??= &quot;qemuarm&quot;` and the issue does indeed reproduce.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96426</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-09-14 15:38:07 +0000</bug_when>
    <thetext>I confirm that this happens with pristine mickledore and qemuarm, and also happens for master.

| go tool dist: FAILED: /yocto/ross/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-arm/1.20.7/go/pkg/tool/native_native/go_bootstrap install -ldflags=all=-linkmode external -extld x86_64-pokysdk-linux-gcc -extldflags &quot;--sysroot=/yocto/ross/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-arm/1.20.7/recipe-sysroot -no-pie -fno-PIE -march=x86-64 -Wl,-O1            -Wl,-rpath-link,/yocto/ross/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-arm/1.20.7/recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/lib/arm-poky-linux-gnueabi/..            -Wl,-rpath,/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/lib/arm-poky-linux-gnueabi/.. &quot; std cmd: exit status 1

Obviously we don&apos;t test a Go SDK...

Copying Khem for any thoughts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96442</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-09-14 15:45:59 +0000</bug_when>
    <thetext>Interestingly with master but targeting qemuarm64:

$ bitbake go-cross-canadian-aaarch64
...
| # cmd/go
| /yocto/ross/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-aarch64/1.20.7/go/pkg/tool/native_native/link: running x86_64-pokysdk-linux-gcc failed: exit status 1
| /yocto/ross/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-aarch64/1.20.7/recipe-sysroot-native/usr/bin/x86_64-pokysdk-linux/../../libexec/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/13.2.0/ld: /tmp/go-link-1900630836/go.o: Relocations in generic ELF (EM: 183)
| /yocto/ross/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-aarch64/1.20.7/recipe-sysroot-native/usr/bin/x86_64-pokysdk-linux/../../libexec/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/13.2.0/ld: /tmp/go-link-1900630836/go.o: Relocations in generic ELF (EM: 183)
| /yocto/ross/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-aarch64/1.20.7/recipe-sysroot-native/usr/bin/x86_64-pokysdk-linux/../../libexec/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/13.2.0/ld: /tmp/go-link-1900630836/go.o: Relocations in generic ELF (EM: 183)
| /yocto/ross/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-aarch64/1.20.7/recipe-sysroot-native/usr/bin/x86_64-pokysdk-linux/../../libexec/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/13.2.0/ld: /tmp/go-link-1900630836/go.o: Relocations in generic ELF (EM: 183)
| /yocto/ross/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-aarch64/1.20.7/recipe-sysroot-native/usr/bin/x86_64-pokysdk-linux/../../libexec/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/13.2.0/ld: /tmp/go-link-1900630836/go.o: Relocations in generic ELF (EM: 183)
| /yocto/ross/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-aarch64/1.20.7/recipe-sysroot-native/usr/bin/x86_64-pokysdk-linux/../../libexec/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/13.2.0/ld: /tmp/go-link-1900630836/go.o: Relocations in generic ELF (EM: 183)
| /yocto/ross/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-aarch64/1.20.7/recipe-sysroot-native/usr/bin/x86_64-pokysdk-linux/../../libexec/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/13.2.0/ld: /tmp/go-link-1900630836/go.o: Relocations in generic ELF (EM: 183)
| /yocto/ross/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-aarch64/1.20.7/recipe-sysroot-native/usr/bin/x86_64-pokysdk-linux/../../libexec/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/13.2.0/ld: /tmp/go-link-1900630836/go.o: Relocations in generic ELF (EM: 183)
| /yocto/ross/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-aarch64/1.20.7/recipe-sysroot-native/usr/bin/x86_64-pokysdk-linux/../../libexec/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/13.2.0/ld: /tmp/go-link-1900630836/go.o: Relocations in generic ELF (EM: 183)
| /yocto/ross/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-aarch64/1.20.7/recipe-sysroot-native/usr/bin/x86_64-pokysdk-linux/../../libexec/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/13.2.0/ld: /tmp/go-link-1900630836/go.o: Relocations in generic ELF (EM: 183)
| /yocto/ross/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-aarch64/1.20.7/recipe-sysroot-native/usr/bin/x86_64-pokysdk-linux/../../libexec/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/13.2.0/ld: /tmp/go-link-1900630836/go.o: Relocations in generic ELF (EM: 183)
| /yocto/ross/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-aarch64/1.20.7/recipe-sysroot-native/usr/bin/x86_64-pokysdk-linux/../../libexec/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/13.2.0/ld: /tmp/go-link-1900630836/go.o: Relocations in generic ELF (EM: 183)
| /yocto/ross/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-aarch64/1.20.7/recipe-sysroot-native/usr/bin/x86_64-pokysdk-linux/../../libexec/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/13.2.0/ld: /tmp/go-link-1900630836/go.o: Relocations in generic ELF (EM: 183)
| /yocto/ross/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-aarch64/1.20.7/recipe-sysroot-native/usr/bin/x86_64-pokysdk-linux/../../libexec/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/13.2.0/ld: /tmp/go-link-1900630836/go.o: Relocations in generic ELF (EM: 183)
| /yocto/ross/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-aarch64/1.20.7/recipe-sysroot-native/usr/bin/x86_64-pokysdk-linux/../../libexec/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/13.2.0/ld: /tmp/go-link-1900630836/go.o: Relocations in generic ELF (EM: 183)
| /yocto/ross/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-aarch64/1.20.7/recipe-sysroot-native/usr/bin/x86_64-pokysdk-linux/../../libexec/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/13.2.0/ld: /tmp/go-link-1900630836/go.o: Relocations in generic ELF (EM: 183)
| /yocto/ross/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-aarch64/1.20.7/recipe-sysroot-native/usr/bin/x86_64-pokysdk-linux/../../libexec/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/13.2.0/ld: /tmp/go-link-1900630836/go.o: error adding symbols: file in wrong format
| collect2: error: ld returned 1 exit status
|</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96455</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-09-14 15:56:39 +0000</bug_when>
    <thetext>And for fun, mickledore for qemuarm64 builds but the binaries have buildpaths.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96709</commentid>
    <comment_count>6</comment_count>
    <who name="Bart">bart.staal</who>
    <bug_when>2023-10-16 14:21:50 +0000</bug_when>
    <thetext>Initially we (I&apos;m a colleague of Tim) didn&apos;t find any error messages in the logs. It was only until I was adding some debug prints to the Go sourcecode until I noticed that the following message was already present in the logs:

  HASH[build runtime/cgo]: &quot;import unsafe \n&quot;
  HASH[build runtime/cgo]: e4c00e0cbacff15d748fb4865049cbaa607560ca144fc72071c8112260177214
  # runtime/cgo
  gcc: error: unrecognized command-line option &apos;-marm&apos;; did you mean &apos;-mabm&apos;?

Seems like the Go toolchain uses the right compiler (because it is building a compiler that runs on x86_64, to which SDKMACHINE is set), but somehow thinks it is building for arm?

I checked the environment vars by invoking &apos;set&apos; in do_compile() in go-cross-canadian.inc, just before make.bash is called. I found this in the output:

  GO386=&apos;&apos;
  GOARCH=&apos;arm&apos;
  GOARM=&apos;7&apos;
  GODEBUG=&apos;gocachehash=1&apos;
  GOHOSTARCH=&apos;amd64&apos;
  GOHOSTOS=&apos;linux&apos;
  GOMIPS=&apos;&apos;
  GOOS=&apos;linux&apos;

I tried a build where I inserted the settings below in do_compile(). I copied the values from HOST_GOxxx variables I found by running &apos;bitbake -e&apos;:

  export GOARCH=&quot;amd64&quot;
  export GOAOS=&quot;linux&quot;
  export GOARM=&quot;&quot;
  export GO386=&quot;sse2&quot;

This fixes the error message. I&apos;ve not yet been able to check if the resulting toolchain also generates correct binaries (sorry, time was up). I also have no idea how to fix this correctly, probably it should be done somewhere in a .bbclass file?

I tried to identify the commit that introduced this issue by running &apos;git checkout &lt;commit&gt; -- ../meta/recipes-devtools/go&apos; in the kirkstone branch. It looks like commit 34157b4b &apos;go-cross-canadian: use gcc-crosssdk, not gcc-native&apos; introduced this problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96710</commentid>
    <comment_count>7</comment_count>
    <who name="Bart">bart.staal</who>
    <bug_when>2023-10-16 14:26:04 +0000</bug_when>
    <thetext>Oh, and also I get warnings about &apos;references to TMPDIR&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97065</commentid>
    <comment_count>8</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-30 15:29:10 +0000</bug_when>
    <thetext>Bulk move to 5.0 M1. -- Randy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97655</commentid>
    <comment_count>9</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-12-21 23:28:24 +0000</bug_when>
    <thetext>Bulk move of 52 5.0-M1 bugs to M2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98008</commentid>
    <comment_count>10</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-01-25 14:28:49 +0000</bug_when>
    <thetext>Bulk move of bugs owned by &quot;unassigned&quot; from 5.0-M2 to 5.0-M3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99634</commentid>
    <comment_count>11</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-09-10 16:54:09 +0000</bug_when>
    <thetext>I don&apos;t see any commits that fix this issue. Moving to M4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100789</commentid>
    <comment_count>12</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-01-30 16:06:35 +0000</bug_when>
    <thetext>Bulk move to 5.2-M3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100807</commentid>
    <comment_count>13</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-01-30 16:17:02 +0000</bug_when>
    <thetext>Bulk move to 5.2-M3 and this time I&apos;ll actually specify M3!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101412</commentid>
    <comment_count>14</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-03-18 18:04:59 +0000</bug_when>
    <thetext>I&apos;m reviewing old milestones.
Tim, can you check if this is still a problem one poky/master please?
We&apos;ll review this bug on March 20th 10:30 AM ET.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101419</commentid>
    <comment_count>15</comment_count>
    <who name="Tim">tim.vanderstaaij</who>
    <bug_when>2025-03-19 12:51:06 +0000</bug_when>
    <thetext>I tried to run `bitbake go-cross-canadian-arm` with poky master (e57dee3). Same minimum reproducible example as in my original report, except with MACHINE=qemuarm and updated LAYERSERIES_COMPAT.

It still fails, but in a different way. Previously the issue was in do_compile. Now there is a problem with do_install:

ERROR: go-cross-canadian-arm-1.24.1-r0 do_install: Execution of &apos;&lt;workspace&gt;/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-arm/1.24.1/temp/run.do_install.1109488&apos; failed with exit code 1
ERROR: Logfile of failure stored in: &lt;workspace&gt;/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-arm/1.24.1/temp/log.do_install.1109488
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are [&apos;&lt;workspace&gt;/sources/poky/meta/recipes-devtools/gcc/gcc-crosssdk_14.2.bb:do_populate_sysroot&apos;, &apos;&lt;workspace&gt;/sources/poky/meta/recipes-devtools/go/go-binary-native_1.24.1.bb:do_populate_sysroot&apos;, &apos;&lt;workspace&gt;/sources/poky/meta/recipes-devtools/go/go-crosssdk_1.24.1.bb:do_populate_sysroot&apos;, &apos;&lt;workspace&gt;/sources/poky/meta/recipes-devtools/quilt/quilt-native_0.68.bb:do_populate_sysroot&apos;, &apos;virtual:native:&lt;workspace&gt;/sources/poky/meta/recipes-devtools/chrpath/chrpath_0.18.bb:do_populate_sysroot&apos;, &apos;virtual:native:&lt;workspace&gt;/sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot&apos;, &apos;virtual:nativesdk:&lt;workspace&gt;/sources/poky/meta/recipes-core/glibc/glibc_2.41.bb:do_populate_sysroot&apos;, &apos;virtual:nativesdk:&lt;workspace&gt;/sources/poky/meta/recipes-devtools/gcc/gcc-runtime_14.2.bb:do_populate_sysroot&apos;, &apos;virtual:nativesdk:&lt;workspace&gt;/sources/poky/meta/recipes-devtools/go/go-runtime_1.24.1.bb:do_populate_sysroot&apos;]
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: [&apos;gettext-minimal-native&apos;, &apos;binutils-crosssdk-x86_64-pokysdk-linux&apos;, &apos;gcc-crosssdk-x86_64-pokysdk-linux&apos;, &apos;go-binary-native&apos;, &apos;go-crosssdk-x86_64-pokysdk-linux&apos;, &apos;libtool-native&apos;, &apos;m4-native&apos;, &apos;quilt-native&apos;, &apos;texinfo-dummy-native&apos;, &apos;gettext-native&apos;, &apos;zlib-native&apos;, &apos;chrpath-native&apos;, &apos;flex-native&apos;, &apos;gnu-config-native&apos;, &apos;pseudo-native&apos;, &apos;xz-native&apos;, &apos;zstd-native&apos;, &apos;attr-native&apos;, &apos;gmp-native&apos;, &apos;libmpc-native&apos;, &apos;mpfr-native&apos;, &apos;sqlite3-native&apos;, &apos;nativesdk-glibc&apos;, &apos;nativesdk-gcc-runtime&apos;, &apos;nativesdk-libgcc&apos;, &apos;nativesdk-go-runtime&apos;, &apos;nativesdk-linux-libc-headers&apos;]
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_install
| install: omitting directory &apos;&lt;workspace&gt;/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-arm/1.24.1/go/bin/linux_arm&apos;
| WARNING: &lt;workspace&gt;/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-arm/1.24.1/temp/run.do_install.1109488:166 exit 1 from &apos;install -m755 $f &lt;workspace&gt;/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-arm/1.24.1/image/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/lib/arm-poky-linux-gnueabi/go/bin&apos;
| WARNING: Backtrace (BB generated script):
| 	#1: do_install, &lt;workspace&gt;/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-arm/1.24.1/temp/run.do_install.1109488, line 166
| 	#2: main, &lt;workspace&gt;/build/tmp/work/x86_64-nativesdk-pokysdk-linux/go-cross-canadian-arm/1.24.1/temp/run.do_install.1109488, line 191</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101848</commentid>
    <comment_count>16</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-05-01 14:09:07 +0000</bug_when>
    <thetext>Bulk move of most 5.2-M4 unassigned bugs to 5.3-M2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102571</commentid>
    <comment_count>17</comment_count>
      <attachid>5130</attachid>
    <who name="Osama Abdelkader">osama.abdelkader</who>
    <bug_when>2025-08-07 23:19:37 +0000</bug_when>
    <thetext>Created attachment 5130
proposed fix

The do_install issue is that
for f in ${B}/${GO_BUILD_BINDIR}/*
line doesn&apos;t work for subdirectories, in the attached patch I fixed that by using &apos;find -type f&apos;. I just sent the patch few minutes ago.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102572</commentid>
    <comment_count>18</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-08-08 13:17:46 +0000</bug_when>
    <thetext>Thanks Osama!

I applied the attached patch to master HEAD without issue.
Can you send the patch to the email list? Is as easy as:

$git send-email - -1 -M --to openembedded-core@lists.openembedded.org

once you&apos;ve set-up your account and email properly.
https://docs.yoctoproject.org/contributor-guide/index.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102573</commentid>
    <comment_count>19</comment_count>
    <who name="Osama Abdelkader">osama.abdelkader</who>
    <bug_when>2025-08-08 16:21:57 +0000</bug_when>
    <thetext>Thanks Randy, I just sent it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102576</commentid>
    <comment_count>20</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-08-08 17:15:22 +0000</bug_when>
    <thetext>*** Bug 15775 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102577</commentid>
    <comment_count>21</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-08-08 17:18:12 +0000</bug_when>
    <thetext>Excellent, I see that patch on the list and that our patch bot hasn&apos;t complained! ;-)

If you don&apos;t hear back on your email, check master on Monday or Tuesday
and if merged, add a link here and resolve this issue.

Welcome to Yocto!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102578</commentid>
    <comment_count>22</comment_count>
    <who name="Osama Abdelkader">osama.abdelkader</who>
    <bug_when>2025-08-08 20:56:45 +0000</bug_when>
    <thetext>Thanks Randy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102582</commentid>
    <comment_count>23</comment_count>
    <who name="Bart">bart.staal</who>
    <bug_when>2025-08-12 07:59:51 +0000</bug_when>
    <thetext>Thanks Osama! I can confirm the patch works for us.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102607</commentid>
    <comment_count>24</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-08-14 16:00:00 +0000</bug_when>
    <thetext>Fixed by:

https://git.openembedded.org/openembedded-core/commit/?id=31e3bd61c7986bc044e547aa5cb9caba7b32bf22

Osama, 
Thanks for this fix and for the strace update which came in just in time to help with another problem!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102615</commentid>
    <comment_count>25</comment_count>
    <who name="Osama Abdelkader">osama.abdelkader</who>
    <bug_when>2025-08-15 20:05:42 +0000</bug_when>
    <thetext>Thanks Bart.
Thanks Randy, my pleasure :)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>5130</attachid>
            <date>2025-08-07 23:19:37 +0000</date>
            <delta_ts>2025-08-07 23:19:37 +0000</delta_ts>
            <desc>proposed fix</desc>
            <filename>0001-go-cross-canadian-fix-binaries-install-and-GOARCH.patch</filename>
            <type>text/plain</type>
            <size>1873</size>
            <attacher name="Osama Abdelkader">osama.abdelkader</attacher>
            
              <data encoding="base64">RnJvbSAwOTFkNDlhMzkxMWY5MjYzODRkODk4YmNjZmQ2MjI5YjZiMDk5ZTlkIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBPc2FtYSBBYmRlbGthZGVyIDxvc2FtYS5hYmRlbGthZGVyQGdt
YWlsLmNvbT4KRGF0ZTogVGh1LCA3IEF1ZyAyMDI1IDIzOjU3OjE2ICswMjAwClN1YmplY3Q6IFtQ
QVRDSF0gZ28tY3Jvc3MtY2FuYWRpYW46IGZpeCBiaW5hcmllcyBpbnN0YWxsIGFuZCBHT0FSQ0gK
CkNhbmFkaWFuIGNyb3NzIGJ1aWxkc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