<?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>10016</bug_id>
          
          <creation_ts>2016-07-25 09:27:27 +0000</creation_ts>
          <short_desc>Fail to build linux-yocto for custom qemumips64 bsp with yocto-bsp</short_desc>
          <delta_ts>2016-09-09 19:12:00 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>2.2</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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>bruce.ashfield</cc>
    
    <cc>humberto.ibarra.lopez</cc>
    
    <cc>jose.perez.carranza</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
          
          <qa_contact name="Yi Zhao">yi.zhao</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</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>64409</commentid>
    <comment_count>0</comment_count>
      <attachid>3313</attachid>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2016-07-25 09:27:27 +0000</bug_when>
    <thetext>Created attachment 3313
log.do_package_qa

Git rev: master/36feb38045b7a2af86ece147fec54b0db3bf491f

Host OS: Ubuntu 16.04 x86_64

Steps:
1. Following the https://wiki.yoctoproject.org/wiki/Transcript:_Using_the_Yocto_BSP_tools_to_create_a_qemu_BSP to create a myqemumips64 layer:

$ yocto-bsp create myqemumips64 qemu
Checking basic git connectivity...
Done.

Which qemu architecture would you like to use? [default: i386]
	1) i386    (32-bit)
	2) x86_64  (64-bit)
	3) ARM     (32-bit)
	4) PowerPC (32-bit)
	5) MIPS    (32-bit)
	6) MIPS64  (64-bit)
6
Would you like to use the default (4.4) kernel? (y/n) [default: y] 
Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n] [default: y] 
Getting branches from remote repo git://git.yoctoproject.org/linux-yocto-4.4.git...
Please choose a machine branch to base this BSP on: [default: standard/base]
	1) standard/arm-versatile-926ejs
	2) standard/base
	3) standard/beaglebone
	4) standard/edgerouter
	5) standard/fsl-mpc8315e-rdb
	6) standard/mti-malta32
	7) standard/mti-malta64
	8) standard/qemuarm64
	9) standard/qemuppc
7
Would you like SMP support? (y/n) [default: y] 
Does your BSP have a touchscreen? (y/n) [default: n] 
Does your BSP have a keyboard? (y/n) [default: y] 

New qemu BSP created in meta-myqemumips64

2. Set the MAHCINE=&quot;myqemumips64&quot; and add the meta-myqemumips64 layer to conf/bblayers.conf

3. Run bitbake core-image-minimal

$ bitbake core-image-minimal

Error message:

Loading cache: 100% |##################################################################################################################################| Time: 0:00:00
Loaded 1313 entries from dependency cache.
Parsing recipes: 100% |################################################################################################################################| Time: 0:00:20
Parsing of 865 .bb files complete (864 cached, 1 parsed). 1313 targets, 77 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = &quot;1.31.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-16.04&quot;
TARGET_SYS        = &quot;mips64-poky-linux&quot;
MACHINE           = &quot;myqemumips64&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.1+snapshot-20160725&quot;
TUNE_FEATURES     = &quot;n64 bigendian fpu-hard&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-poky         
meta-yocto-bsp    
meta-myqemumips64 = &quot;master:36feb38045b7a2af86ece147fec54b0db3bf491f&quot;

Initialising tasks: 100% |#############################################################################################################################| Time: 0:00:04
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: linux-yocto-4.4.14+gitAUTOINC+4789b41c56_ddab242999-r0.1 do_package_qa: QA Issue: Bit size did not match (64 to 32) linux-yocto on work/myqemumips64-poky-linux/linux-yocto/4.4.14+gitAUTOINC+4789b41c56_ddab242999-r0.1/packages-split/kernel-vmlinux/boot/vmlinux-4.4.15-yocto-standard [arch]
ERROR: linux-yocto-4.4.14+gitAUTOINC+4789b41c56_ddab242999-r0.1 do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: linux-yocto-4.4.14+gitAUTOINC+4789b41c56_ddab242999-r0.1 do_package_qa: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /buildarea1/poky/build-1/tmp/work/myqemumips64-poky-linux/linux-yocto/4.4.14+gitAUTOINC+4789b41c56_ddab242999-r0.1/temp/log.do_package_qa.16717
ERROR: Task /buildarea1/poky/meta/recipes-kernel/linux/linux-yocto_4.4.bb:do_package_qa (/buildarea1/poky/meta/recipes-kernel/linux/linux-yocto_4.4.bb:do_package_qa) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 1342 tasks of which 8 didn&apos;t need to be rerun and 1 failed.

Summary: 1 task failed:
  /buildarea1/poky/meta/recipes-kernel/linux/linux-yocto_4.4.bb:do_package_qa
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.


I attached the full log for log.do_package_qa</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64465</commentid>
    <comment_count>1</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2016-07-26 08:51:11 +0000</bug_when>
    <thetext>This issue also happens on qemux86:
 
ERROR: linux-yocto-4.4.14+gitAUTOINC+4789b41c56_ddab242999-r0.8 do_package_qa: QA Issue: Architecture did not match (3 to 62) on work/myqemux86-poky-linux/linux-yocto/4.4.14+gitAUTOINC+4789b41c56_ddab242999-r0.8/packages-split/kernel-vmlinux/boot/vmlinux-4.4.15-yocto-standard [arch]
ERROR: linux-yocto-4.4.14+gitAUTOINC+4789b41c56_ddab242999-r0.8 do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: linux-yocto-4.4.14+gitAUTOINC+4789b41c56_ddab242999-r0.8 do_package_qa: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /buildarea/jenkins-yocto/workspace/Yocto2.2-yocto-bsp_create_qemu_bsp/build_1/tmp/work/myqemux86-poky-linux/linux-yocto/4.4.14+gitAUTOINC+4789b41c56_ddab242999-r0.8/temp/log.do_package_qa.32627
ERROR: Task /buildarea/jenkins-yocto/poky/meta/recipes-kernel/linux/linux-yocto_4.4.bb:do_package_qa (/buildarea/jenkins-yocto/poky/meta/recipes-kernel/linux/linux-yocto_4.4.bb:do_package_qa) failed with exit code &apos;1&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64481</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2016-07-26 12:59:40 +0000</bug_when>
    <thetext>I already sent a fix for this to the oe-core mailing list.

This is the kernel-cache commit that fixes the issue:

commit 15a0432f95fd8409daa9b7169ea32cf7490e5dfe
Author: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;
Date:   Mon Jul 11 13:40:13 2016 -0400

    common-pc: enforce 32 bit
    
    ARCH=x86 defaults to 64 bit on modern kernels. So we need to
    explicitly disable 64bit in common-pc if we want a 32bit build
    (common-pc builds with ARCH=x86, not ARCH=i386)
    
    Signed-off-by: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;

:100644 100644 d6302a63dfaa... 70df605fe41c... M        bsp/common-pc/common-pc-cpu.cfg</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>3313</attachid>
            <date>2016-07-25 09:27:27 +0000</date>
            <delta_ts>2016-07-25 09:27:27 +0000</delta_ts>
            <desc>log.do_package_qa</desc>
            <filename>log.do_package_qa.16717</filename>
            <type>application/octet-stream</type>
            <size>1226</size>
            <attacher name="Yi Zhao">yi.zhao</attacher>
            
              <data encoding="base64">REVCVUc6IEV4ZWN1dGluZyBweXRob24gZnVuY3Rpb24gc3N0YXRlX3Rhc2tfcHJlZnVuYwpERUJV
RzogUHl0aG9uIGZ1bmN0aW9uIHNzdGF0ZV90YXNrX3ByZWZ1bmMgZmluaXNoZWQKREVCVUc6IEV4
ZWN1dGluZyBweXRob24gZnVuY3Rpb24gZG9fcGFja2FnZV9xYQpOT1RFOiBETyBQQUNLQUdFIFFB
CkRFQlVHOiBFeGVjdXRpbmcgcHl0aG9uIGZ1bmN0aW9uIHJlYWRfc3VicGFja2FnZV9tZXRhZGF0
YQpERUJVRzogUHl0aG9uIGZ1bmN0aW9uIHJlYWRfc3VicGFja2FnZV9tZXRhZGF0YSBmaW5pc2hl
ZApOT1RFOiBDaGVja2luZyBQYWNrYWdlOiBrZXJuZWwtaW1hZ2UKTk9URTogQ2hlY2tpbmcgUGFj
a2FnZToga2VybmVsLWJhc2UKTk9URTogQ2hlY2tpbmcgUGFja2FnZToga2VybmVsLWltYWdlLXZt
bGludXgKTk9URTogQ2hlY2tpbmcgUGFja2FnZToga2VybmVsLXZtbGludXgKTk9URTogbWlwczY0
LXBva3ktbGludXgtb2JqZHVtcCAtcCAvYnVpbGRhcmVhMS9wb2t5L2J1aWxkLTEvdG1wL3dvcmsv
bXlxZW11bWlwczY0LXBva3ktbGludXgvbGludXgteW9jdG8vNC40LjE0K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