<?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>11319</bug_id>
          
          <creation_ts>2017-04-10 16:29:50 +0000</creation_ts>
          <short_desc>&quot;go&quot; recipes trigger warnings/error messages for unrecognized MACHINEs.</short_desc>
          <delta_ts>2017-04-14 04:10:12 +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>core</component>
          <version>2.3</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>VERIFIED</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Juro Bystricky">juro.bystricky</reporter>
          <assigned_to name="Nathan Rossi">nathan</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>nathan</cc>
    
    <cc>rebecca.swee.fun.chang</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</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>72214</commentid>
    <comment_count>0</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2017-04-10 16:29:50 +0000</bug_when>
    <thetext>When doing a clean build (wiped TMPDIR), using a MACHINE that &quot;go&quot; does not
recognize, for example:

$ MACHINE=arduino-101 bitbake zephyr-ipm

I get a bunch of warnings/error messages:

WARNING: /data/master-master/poky/meta/recipes-extended/go-examples/go-helloworld_0.1.bb: Exception during build_dependencies for GOPKG_FINAL   | ETA:  0:00:03
WARNING: /data/master-master/poky/meta/recipes-extended/go-examples/go-helloworld_0.1.bb: Error during finalise of multiconfig:arduino-101-sss:/data/master-master/poky/meta/recipes-extended/go-examples/go-helloworld_0.1.bb
WARNING: /data/master-master/poky/meta/recipes-extended/ghostscript/ghostscript_9.20.bb: Unable to get checksum for ghostscript SRC_URI entry objarch.h: file could not be found
WARNING: /data/master-master/poky/meta/recipes-devtools/go/go_1.8.bb: Exception during build_dependencies for GOARCH                            | ETA:  0:00:02
WARNING: /data/master-master/poky/meta/recipes-devtools/go/go_1.8.bb: Error during finalise of multiconfig:arduino-101-sss:/data/master-master/poky/meta/recipes-devtools/go/go_1.8.bb
WARNING: /data/master-master/poky/meta/recipes-devtools/go/go_1.7.bb: Exception during build_dependencies for GOARCH
WARNING: /data/master-master/poky/meta/recipes-devtools/go/go_1.7.bb: Error during finalise of multiconfig:arduino-101-sss:/data/master-master/poky/meta/recipes-devtools/go/go_1.7.bb
WARNING: /data/master-master/poky/meta/recipes-devtools/go/go-cross_1.7.bb: Exception during build_dependencies for GOARCH
WARNING: /data/master-master/poky/meta/recipes-devtools/go/go-cross_1.8.bb: Exception during build_dependencies for GOARCH
WARNING: /data/master-master/poky/meta/recipes-devtools/go/go-cross_1.8.bb: Error during finalise of multiconfig:arduino-101-sss:/data/master-master/poky/meta/recipes-devtools/go/go-cross_1.8.bb                                                                                                                            
WARNING: /data/master-master/poky/meta/recipes-devtools/go/go-cross_1.7.bb: Error during finalise of multiconfig:arduino-101-sss:/data/master-master/poky/meta/recipes-devtools/go/go-cross_1.7.bb                                                                                                                            
WARNING: /data/master-master/poky/meta/recipes-devtools/go/go_1.6.bb: Exception during build_dependencies for GOARCH                            | ETA:  0:00:02
WARNING: /data/master-master/poky/meta/recipes-devtools/go/go_1.6.bb: Error during finalise of multiconfig:arduino-101-sss:/data/master-master/poky/meta/recipes-devtools/go/go_1.6.bb                                                                                                                                        
WARNING: /data/master-master/poky/meta/recipes-devtools/go/go_1.6.bb: Exception during build_dependencies for GOARCH
WARNING: /data/master-master/poky/meta/recipes-devtools/go/go_1.6.bb: Error during finalise of multiconfig:arduino-101-sss:virtual:cross:/data/master-master/poky/meta/recipes-devtools/go/go_1.6.bb      


Build Configuration:
BB_VERSION        = &quot;1.33.3&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;ubuntu-16.04&quot;
TARGET_SYS        = &quot;i586-yocto-elfiamcu&quot;
MACHINE           = &quot;arduino-101&quot;
DISTRO            = &quot;zephyr&quot;
DISTRO_VERSION    = &quot;1.0&quot;
TUNE_FEATURES     = &quot;iamcu&quot;
meta              
meta-poky         
meta-yocto-bsp    = &quot;master:09448d06908413f54cbf2eecf172423dee438549&quot;
meta-zephyr-tmp   = &quot;master:4f2f6233a8b95e814511c3ee3762d291a3cb4435&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72221</commentid>
    <comment_count>1</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2017-04-10 17:39:48 +0000</bug_when>
    <thetext>Based on the messages, it seems to be multiconfig related.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72238</commentid>
    <comment_count>2</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2017-04-10 19:38:59 +0000</bug_when>
    <thetext>Well, I get the warnings/errors w/o multiconfig as well:

$ BBMULTICONFIG=&quot;&quot; MACHINE=arduino-101-sss bitbake heartrate-monitor

WARNING: /data/master-master/poky/meta/recipes-extended/go-examples/go-helloworld_0.1.bb: Exception during build_dependencies for GOARCH        | ETA:  0:00:01
WARNING: /data/master-master/poky/meta/recipes-extended/go-examples/go-helloworld_0.1.bb: Error during finalise of /data/master-master/poky/meta/recipes-extended/go-examples/go-helloworld_0.1.bb
WARNING: /data/master-master/poky/meta/recipes-extended/ghostscript/ghostscript_9.20.bb: Unable to get checksum for ghostscript SRC_URI entry objarch.h: file could not be found
WARNING: /data/master-master/poky/meta/recipes-devtools/go/go_1.8.bb: Exception during build_dependencies for GOARCH                            | ETA:  0:00:01
WARNING: /data/master-master/poky/meta/recipes-devtools/go/go_1.8.bb: Error during finalise of /data/master-master/poky/meta/recipes-devtools/go/go_1.8.bb
WARNING: /data/master-master/poky/meta/recipes-devtools/go/go_1.6.bb: Exception during build_dependencies for GOARCH
WARNING: /data/master-master/poky/meta/recipes-devtools/go/go_1.6.bb: Error during finalise of /data/master-master/poky/meta/recipes-devtools/go/go_1.6.bb
WARNING: /data/master-master/poky/meta/recipes-devtools/go/go_1.7.bb: Exception during build_dependencies for GOARCH
WARNING: /data/master-master/poky/meta/recipes-devtools/go/go_1.7.bb: Error during finalise of /data/master-master/poky/meta/recipes-devtools/go/go_1.7.bb
WARNING: /data/master-master/poky/meta/recipes-devtools/go/go_1.6.bb: Exception during build_dependencies for GOARCH
WARNING: /data/master-master/poky/meta/recipes-devtools/go/go_1.6.bb: Error during finalise of virtual:cross:/data/master-master/poky/meta/recipes-devtools/go/go_1.6.bb
WARNING: /data/master-master/poky/meta/recipes-devtools/go/go-cross_1.7.bb: Exception during build_dependencies for GOARCH
WARNING: /data/master-master/poky/meta/recipes-devtools/go/go-cross_1.7.bb: Error during finalise of /data/master-master/poky/meta/recipes-devtools/go/go-cross_1.7.bb
WARNING: /data/master-master/poky/meta/recipes-devtools/go/go-cross_1.8.bb: Exception during build_dependencies for GOARCH
WARNING: /data/master-master/poky/meta/recipes-devtools/go/go-cross_1.8.bb: Error during finalise of /data/master-master/poky/meta/recipes-devtools/go/go-cross_1.8.bb</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72277</commentid>
    <comment_count>3</comment_count>
    <who name="Rebecca Chang">rebecca.swee.fun.chang</who>
    <bug_when>2017-04-11 09:33:27 +0000</bug_when>
    <thetext>Penang team tried to reproduce the issue with meta-zephyr but failed to reproduce.

We have the following configuration and bitbake zehpyr-ipm shows no error.
MACHINE=&quot;arduino-101&quot;
DISTRO=&quot;zephyr&quot;
IMAGE_INSTALL=&quot;go go-helloworld go-example&quot;

However, we seen gcc configuration issue when we &quot;bitbake go&quot; with the configuration above. Please refer to the error log below:
http://pastebin.intel.com/ehoyobawod.hs</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72289</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-04-11 13:29:30 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Penang team tried to reproduce the issue with meta-zephyr but failed to
&gt; reproduce.
&gt; 
&gt; We have the following configuration and bitbake zehpyr-ipm shows no error.
&gt; MACHINE=&quot;arduino-101&quot;
&gt; DISTRO=&quot;zephyr&quot;
&gt; IMAGE_INSTALL=&quot;go go-helloworld go-example&quot;
&gt; 
&gt; However, we seen gcc configuration issue when we &quot;bitbake go&quot; with the
&gt; configuration above. Please refer to the error log below:
&gt; http://pastebin.intel.com/ehoyobawod.hs

You&apos;ve shown a build failure above however we&apos;d no expect gcc-runtime to work on an RTOS like Zehyr so this isn&apos;t surprising. Did you see warnings during the parse of the layer (bitbake -p)? Did you try a target like the ones Juro used when it failed (bitbake zephyr-ipm, bitbake heartrate-monitor)?

A community member ran into this issue today and I believe may post a patch against bitbake to solve these warnings. It looks like we need to allow the SkipRecipe exception to pass through certain exception handlers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72301</commentid>
    <comment_count>5</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2017-04-11 16:22:07 +0000</bug_when>
    <thetext>you need to set 
DISTRO=&quot;zephyr&quot;

in local.conf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72313</commentid>
    <comment_count>6</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2017-04-11 17:58:55 +0000</bug_when>
    <thetext>Clarifying how to reproduce this failure:

clone poky master and meta-zephyr
add meta-zephyr to bblayers.conf
change DISTRO to zephyr

simply building:
MACHINE=arduino-101-sss bitbake zephyr-ipm

will produce the failure.

I added a bb.note in goarch.bbclass to verify what arch is being passed in, arduino-101 is i586, while arduino-101-sss is &quot;arc&quot; and that&apos;s where the unknown architecture comes from.

Patch is available on bitbake list
http://lists.openembedded.org/pipermail/bitbake-devel/2017-April/008622.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72314</commentid>
    <comment_count>7</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2017-04-11 18:09:49 +0000</bug_when>
    <thetext>Also, it has to be a clean build. To reproduce it again, you need to wipe tmp folder.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72363</commentid>
    <comment_count>8</comment_count>
    <who name="Rebecca Chang">rebecca.swee.fun.chang</who>
    <bug_when>2017-04-12 00:07:30 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; Clarifying how to reproduce this failure:
&gt; 
&gt; clone poky master and meta-zephyr
&gt; add meta-zephyr to bblayers.conf
&gt; change DISTRO to zephyr
&gt; 
&gt; simply building:
&gt; MACHINE=arduino-101-sss bitbake zephyr-ipm
&gt; 
&gt; will produce the failure.
&gt; 
&gt; I added a bb.note in goarch.bbclass to verify what arch is being passed in,
&gt; arduino-101 is i586, while arduino-101-sss is &quot;arc&quot; and that&apos;s where the
&gt; unknown architecture comes from.
&gt; 
&gt; Patch is available on bitbake list
&gt; http://lists.openembedded.org/pipermail/bitbake-devel/2017-April/008622.html

Yes, I tried with MACHINE=arduino-101 that&apos;s why I did not see the WARNINGS. I checked again on MACHINE=arduino-101-sss and saw the message already. Thanks for clarifying.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72364</commentid>
    <comment_count>9</comment_count>
    <who name="Rebecca Chang">rebecca.swee.fun.chang</who>
    <bug_when>2017-04-12 00:28:24 +0000</bug_when>
    <thetext>Tested with patch from http://lists.openembedded.org/pipermail/bitbake-devel/2017-April/008622.html

DISTRO=&quot;zephyr&quot;
Added meta-zephyr and executed &quot;MACHINE=arduino-101-sss bitbake zephyr-ipm&quot;

Still seeing the WARNINGS below:

WARNING: /media/rebeccas/yocto/poky/meta/recipes-extended/ghostscript/ghostscript_9.20.bb: Unable to get checksum for ghostscript SRC_URI entry objarch.h: file could not be found</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72389</commentid>
    <comment_count>10</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2017-04-12 16:31:01 +0000</bug_when>
    <thetext>(In reply to comment #9)
&gt; Tested with patch from
&gt; http://lists.openembedded.org/pipermail/bitbake-devel/2017-April/008622.html
&gt; 
&gt; DISTRO=&quot;zephyr&quot;
&gt; Added meta-zephyr and executed &quot;MACHINE=arduino-101-sss bitbake zephyr-ipm&quot;
&gt; 
&gt; Still seeing the WARNINGS below:
&gt; 
&gt; WARNING:
&gt; /media/rebeccas/yocto/poky/meta/recipes-extended/ghostscript/ghostscript_9.
&gt; 20.bb: Unable to get checksum for ghostscript SRC_URI entry objarch.h: file
&gt; could not be found

Rebecca, this is a different issue, (probably merits a bug report of its own). 
The important thing here is to get rid of the &quot;go&quot; warnings/error messages.

Also, please make sure the &quot;go&quot; warnings are still gone even for a clean build.
A repeated build may not re-issue previous warnings.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72426</commentid>
    <comment_count>11</comment_count>
    <who name="Rebecca Chang">rebecca.swee.fun.chang</who>
    <bug_when>2017-04-13 01:27:47 +0000</bug_when>
    <thetext>(In reply to comment #10)
&gt; Rebecca, this is a different issue, (probably merits a bug report of its
&gt; own). 
&gt; The important thing here is to get rid of the &quot;go&quot; warnings/error messages.
&gt; 
&gt; Also, please make sure the &quot;go&quot; warnings are still gone even for a clean
&gt; build.
&gt; A repeated build may not re-issue previous warnings.

Yes. Confirmed that the warning messages for &quot;go&quot; are not seen with the patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72429</commentid>
    <comment_count>12</comment_count>
    <who name="Rebecca Chang">rebecca.swee.fun.chang</who>
    <bug_when>2017-04-13 01:36:55 +0000</bug_when>
    <thetext>Patch from Nathan Rossi was merged into bitbake:
Bitbake rev: edf6e6094a9f7ad4b2ba06eef8fd34756edbedce

and poky:
Poky rev: bf0fc2da669745d4a55101177a07b00ba9ac3c7d</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72512</commentid>
    <comment_count>13</comment_count>
    <who name="Rebecca Chang">rebecca.swee.fun.chang</who>
    <bug_when>2017-04-14 04:07:31 +0000</bug_when>
    <thetext>Verified patch resolved the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72513</commentid>
    <comment_count>14</comment_count>
    <who name="Rebecca Chang">rebecca.swee.fun.chang</who>
    <bug_when>2017-04-14 04:10:12 +0000</bug_when>
    <thetext>Verification should done by QA. 

I have done developer verification test on this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>