<?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>13474</bug_id>
          
          <creation_ts>2019-08-12 08:31:55 +0000</creation_ts>
          <short_desc>go install/build fails on target for programs importing log/syslog</short_desc>
          <delta_ts>2026-07-09 15:10:55 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>General Runtime</product>
          <component>General Runtime</component>
          <version>3.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chen Qi">Qi.Chen</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>Gunashree.KL</cc>
    
    <cc>mathieu.dubois-briand</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>84632</commentid>
    <comment_count>0</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2019-08-12 08:31:55 +0000</bug_when>
    <thetext>root@yocto-k8s-master:~/projects/golang/src/testgo# go install
go build runtime/cgo: x86_64-poky-linux-gcc  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/buildarea2/chenqi/poky/build-systemd/tmp/work/core2-64-poky-linux/go/1.12.6-r0/recipe-sysroot: fork/exec x86_64-poky-linux-gcc  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/buildarea2/chenqi/poky/build-systemd/tmp/work/core2-64-poky-linux/go/1.12.6-r0/recipe-sysroot: no such file or directory

root@yocto-k8s-master:~/projects/golang/src/testgo# cat testgo.go
package main

import &quot;fmt&quot;
import &quot;log/syslog&quot;

func main() {
	fmt.Println(&quot;========== testgo ===============&quot;)
}
root@yocto-k8s-master:~/projects/golang/src/testgo#</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85444</commentid>
    <comment_count>1</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2019-10-25 01:11:50 +0000</bug_when>
    <thetext>There&apos;s a go upgrade in master, let&apos;s see how things will turn out after the upgrade.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92990</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-04-11 22:00:07 +0000</bug_when>
    <thetext>@Chen, please check again either now or once we have 1.18 in master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97132</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-30 15:37:29 +0000</bug_when>
    <thetext>Build move to 5.0 -- ../Randy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98815</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-04-25 01:13:51 +0000</bug_when>
    <thetext>Bulk move of 5.0 medium importance issues to 5.99.
Move to 5.1 if you want to actively work on an issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98878</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-04-25 01:23:14 +0000</bug_when>
    <thetext>Move to 5.99 since no one is actively working on this issue.
Move to 5.x if you start on a task, please.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105317</commentid>
    <comment_count>6</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-04-30 15:07:43 +0000</bug_when>
    <thetext>Need to retest and see if this is still an issue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105980</commentid>
    <comment_count>7</comment_count>
    <who name="Gunashree K L">Gunashree.KL</who>
    <bug_when>2026-06-22 09:22:27 +0000</bug_when>
    <thetext>The issue has been verified on oe-core master branch.

It is reproducible in the default setup:
    go list log/syslog
results in:
    package log/syslog is not in std

However, this is resolved by including:
    IMAGE_INSTALL += &quot;packagegroup-go-sdk-target&quot;

With this packagegroup, the required Go stdlib components are available, and both:
    go list log/syslog
    and building simple Go programs (go-helloworld)

work correctly on the target.

Since the required functionality is already provided through existing packaging, no changes to the go recipe are required.

Requesting reporter to confirm the solution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106143</commentid>
    <comment_count>8</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-07-09 15:10:55 +0000</bug_when>
    <thetext>Thanks Gunashree.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>