Bug 10892

Summary: devtool fails to build core-image-minimal with on Fedora24 with poky tag yocto-2.2
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Henry Bruce <henry.bruce>
Component: devtools / tool chainAssignee: Paul Eggleton <bluelightning>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: Medium+ CC: brian.avery, jku, meta.mr.watcher, meta.watcher
Version: 2.2   
Target Milestone: 2.2.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Henry Bruce 2017-01-06 23:33:14 UTC
Steps to Repeat
================
$ git clone git://git.yoctoproject.org/poky
$ cd poky
$ git checkout yocto-2.2
$ source oe-init-build-env
$ devtool build-image core-image-minimal


Observed Behavior
==================
NOTE: Creating workspace layer in /path/to/poky/build/workspace
NOTE: Enabling workspace layer in bblayers.conf
Parsing recipes..done.
WARNING: No packages to add, building image core-image-minimal unmodified
Loading cache: 100% |############################################| Time: 0:00:00
Loaded 1316 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.32.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Fedora-24"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "2.2"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta              
meta-poky         
meta-yocto-bsp    
workspace         = "HEAD:dc8508f609974cc99606b9042bfa7f870ce80228"

NOTE: Fetching uninative binary shim from http://downloads.yoctoproject.org/releases/uninative/1.4/x86_64-nativesdk-libc.tar.bz2;sha256sum=101ff8f2580c193488db9e76f9646fb6ed38b65fb76f403acb0e2178ce7127ca
--2017-01-06 15:14:32--  http://downloads.yoctoproject.org/releases/uninative/1.4/x86_64-nativesdk-libc.tar.bz2
Resolving downloads.yoctoproject.org (downloads.yoctoproject.org)... 198.145.20.127
Connecting to downloads.yoctoproject.org (downloads.yoctoproject.org)|198.145.20.127|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2473216 (2.4M) [application/octet-stream]
Saving to: Traceback (most recent call last):
File "/path/to/poky/scripts/devtool", line 344, in <module>
                                                                  ret = main()
                                                                                File "/path/to/poky/scripts/devtool", line 331, in main
               ret = args.func(args, config, basepath, workspace)
File "/path/to/poky/scripts/lib/devtool/build_image.py", line 63, in build_image
                           result, outputdir = build_image_task(config, basepath, workspace, image, add_packages)
File "/path/to/poky/scripts/lib/devtool/build_image.py", line 150, in build_image_task
                  'bitbake %s %s' % (options, image), watch=True)
File "/path/to/poky/scripts/lib/devtool/__init__.py", line 56, in exec_build_env_command
                  return exec_watch('%s%s' % (init_prefix, cmd), **options)
                                                                             File "/path/to/poky/scripts/lib/devtool/__init__.py", line 73, in exec_watch
                                 out = out.decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe2 in position 0: unexpected end of data


Expected Behavior
==================
Build completes successfully
Comment 1 Jussi Kukkonen 2017-01-12 10:07:27 UTC
related to bug 10908 perhaps.
Comment 2 Henry Bruce 2017-01-12 17:42:00 UTC
Yes, I believe this is a duplicate of bug 10908 as 
$ export LANG=en_US.UTF-8
fixes it.
Comment 3 Paul Eggleton 2017-01-24 21:44:47 UTC
Marking as duplicate. Bug 10908 is now resolved as well.

*** This bug has been marked as a duplicate of bug 10908 ***