<?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>11520</bug_id>
          
          <creation_ts>2017-05-17 20:37:13 +0000</creation_ts>
          <short_desc>The perf package does not build when Linux kernel source is pulled out with devtool</short_desc>
          <delta_ts>2017-05-18 19:20:41 +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>Scripts and Tools</component>
          <version>2.1.2</version>
          <rep_platform>Other</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>11120</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.4 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>lixin.yao</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</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>73301</commentid>
    <comment_count>0</comment_count>
    <who name="">lixin.yao</who>
    <bug_when>2017-05-17 20:37:13 +0000</bug_when>
    <thetext>We first pull out the Linux kernel source with command like this:

cd poky
source ./oe-init-build-env
devtool modify -x brcm-linux linux-src
(where brcm-linux is the package for Linux kernel based on 4.4)
bitbake perf
(where perf is the package described by recipe meta/recipes-kernel/perf/perf.bb)

When build starts, error happens:

Build Configuration:
BB_VERSION        = &quot;1.30.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-14.04&quot;
TARGET_SYS        = &quot;arm-poky-linux-gnueabi&quot;
MACHINE           = &quot;bcm958625hr&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.1.1&quot;
TUNE_FEATURES     = &quot;arm armv7a vfp             callconvention-hard&quot;
TARGET_FPU        = &quot;hard&quot;
meta-linaro-toolchain = &quot;HEAD:63dcbb45bffb9b3c676906a974bd2d72bb9a742a&quot;
meta-brcm         
meta-nsp          = &quot;HEAD:c69065d47c0e4d670e90488a9f5c7fc2c4e6f37a&quot;
meta              
meta-yocto        
meta-yocto-bsp    = &quot;HEAD:9b7e025bbed9149001624155a84437b3ccd087ca&quot;
meta-networking   
meta-oe           
meta-python       
meta-perl         = &quot;HEAD:8824c7234f5b8b3195e51dbba086f9c2496fb921&quot;
meta-linaro       = &quot;HEAD:63dcbb45bffb9b3c676906a974bd2d72bb9a742a&quot;
workspace         = &quot;HEAD:9b7e025bbed9149001624155a84437b3ccd087ca&quot;

NOTE: Preparing RunQueue
ERROR: Task do_unpack in /projects/cpxsw_dev/mwildt/nsp_5.x_perf/poky/build/../meta/recipes-kernel/perf/perf.bb depends upon non-existent task do_patch in /projects/cpxsw_dev/mwildt/nsp_5.x_perf/poky/build/../meta-brcm/common/recipes-kernel/linux/brcm-linux_0.0.0.bb
ERROR: Command execution failed: 1

If the kernel source is not pulled out with devtool, the error does not occur.  This looks like a bug with Yocto. Could you confirm? We&apos;ll be happy to test any patches.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73364</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2017-05-18 19:04:35 +0000</bug_when>
    <thetext>This is clearly a duplicate of 11120, there is some work-arounds available in that bug&apos;s comments, but the base issue is devtool may need to know more about the kernel and kernelsrc.bbclass (or kernelsrc.bb class needs to know about devtool)!

*** This bug has been marked as a duplicate of bug 11120 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73366</commentid>
    <comment_count>2</comment_count>
    <who name="">lixin.yao</who>
    <bug_when>2017-05-18 19:20:41 +0000</bug_when>
    <thetext>Thanks for the quick resolution! We&apos;ll look into the solution in the other bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>