Bug 11319 - "go" recipes trigger warnings/error messages for unrecognized MACHINEs.
Summary: "go" recipes trigger warnings/error messages for unrecognized MACHINEs.
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.3
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.3 M4
Assignee: Nathan Rossi
QA Contact:
URL:
Whiteboard: VERIFIED
Depends on:
Blocks:
 
Reported: 2017-04-10 16:29 UTC by Juro Bystricky
Modified: 2017-04-14 04:10 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juro Bystricky 2017-04-10 16:29:50 UTC
When doing a clean build (wiped TMPDIR), using a MACHINE that "go" 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        = "1.33.3"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "ubuntu-16.04"
TARGET_SYS        = "i586-yocto-elfiamcu"
MACHINE           = "arduino-101"
DISTRO            = "zephyr"
DISTRO_VERSION    = "1.0"
TUNE_FEATURES     = "iamcu"
meta              
meta-poky         
meta-yocto-bsp    = "master:09448d06908413f54cbf2eecf172423dee438549"
meta-zephyr-tmp   = "master:4f2f6233a8b95e814511c3ee3762d291a3cb4435"
Comment 1 Juro Bystricky 2017-04-10 17:39:48 UTC
Based on the messages, it seems to be multiconfig related.
Comment 2 Juro Bystricky 2017-04-10 19:38:59 UTC
Well, I get the warnings/errors w/o multiconfig as well:

$ BBMULTICONFIG="" 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
Comment 3 Rebecca Chang 2017-04-11 09:33:27 UTC
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="arduino-101"
DISTRO="zephyr"
IMAGE_INSTALL="go go-helloworld go-example"

However, we seen gcc configuration issue when we "bitbake go" with the configuration above. Please refer to the error log below:
http://pastebin.intel.com/ehoyobawod.hs
Comment 4 Richard Purdie 2017-04-11 13:29:30 UTC
(In reply to comment #3)
> 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="arduino-101"
> DISTRO="zephyr"
> IMAGE_INSTALL="go go-helloworld go-example"
> 
> However, we seen gcc configuration issue when we "bitbake go" with the
> configuration above. Please refer to the error log below:
> http://pastebin.intel.com/ehoyobawod.hs

You've shown a build failure above however we'd no expect gcc-runtime to work on an RTOS like Zehyr so this isn'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.
Comment 5 Juro Bystricky 2017-04-11 16:22:07 UTC
you need to set 
DISTRO="zephyr"

in local.conf
Comment 6 Saul Wold 2017-04-11 17:58:55 UTC
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 "arc" and that's where the unknown architecture comes from.

Patch is available on bitbake list
http://lists.openembedded.org/pipermail/bitbake-devel/2017-April/008622.html
Comment 7 Juro Bystricky 2017-04-11 18:09:49 UTC
Also, it has to be a clean build. To reproduce it again, you need to wipe tmp folder.
Comment 8 Rebecca Chang 2017-04-12 00:07:30 UTC
(In reply to comment #6)
> 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 "arc" and that's where the
> unknown architecture comes from.
> 
> Patch is available on bitbake list
> http://lists.openembedded.org/pipermail/bitbake-devel/2017-April/008622.html

Yes, I tried with MACHINE=arduino-101 that's why I did not see the WARNINGS. I checked again on MACHINE=arduino-101-sss and saw the message already. Thanks for clarifying.
Comment 9 Rebecca Chang 2017-04-12 00:28:24 UTC
Tested with patch from http://lists.openembedded.org/pipermail/bitbake-devel/2017-April/008622.html

DISTRO="zephyr"
Added meta-zephyr and executed "MACHINE=arduino-101-sss bitbake zephyr-ipm"

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
Comment 10 Juro Bystricky 2017-04-12 16:31:01 UTC
(In reply to comment #9)
> Tested with patch from
> http://lists.openembedded.org/pipermail/bitbake-devel/2017-April/008622.html
> 
> DISTRO="zephyr"
> Added meta-zephyr and executed "MACHINE=arduino-101-sss bitbake zephyr-ipm"
> 
> 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

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

Also, please make sure the "go" warnings are still gone even for a clean build.
A repeated build may not re-issue previous warnings.
Comment 11 Rebecca Chang 2017-04-13 01:27:47 UTC
(In reply to comment #10)
> Rebecca, this is a different issue, (probably merits a bug report of its
> own). 
> The important thing here is to get rid of the "go" warnings/error messages.
> 
> Also, please make sure the "go" warnings are still gone even for a clean
> build.
> A repeated build may not re-issue previous warnings.

Yes. Confirmed that the warning messages for "go" are not seen with the patch.
Comment 12 Rebecca Chang 2017-04-13 01:36:55 UTC
Patch from Nathan Rossi was merged into bitbake:
Bitbake rev: edf6e6094a9f7ad4b2ba06eef8fd34756edbedce

and poky:
Poky rev: bf0fc2da669745d4a55101177a07b00ba9ac3c7d
Comment 13 Rebecca Chang 2017-04-14 04:07:31 UTC
Verified patch resolved the issue.
Comment 14 Rebecca Chang 2017-04-14 04:10:12 UTC
Verification should done by QA. 

I have done developer verification test on this.