<?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>10616</bug_id>
          
          <creation_ts>2016-11-08 07:22:12 +0000</creation_ts>
          <short_desc>devtool: cannot &apos;devtool build hello-mod&apos;</short_desc>
          <delta_ts>2016-12-06 17:28:27 +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>devtools / tool chain</component>
          <version>unspecified</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.3 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrea Galbusera">gizero</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>jose.perez.carranza</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          <qa_contact name="Francisco Pedraza">francisco.j.pedraza.gonzalez</qa_contact>
          <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>68062</commentid>
    <comment_count>0</comment_count>
    <who name="Andrea Galbusera">gizero</who>
    <bug_when>2016-11-08 07:22:12 +0000</bug_when>
    <thetext>devtool workflow seems to fail if applied to the example external kernel module.

How to reproduce (see the tested commits in the attached configuration that follows):

1. add meta-skeleton to bblayers.conf
2. &apos;bitbake hello-mod&apos; succeeds
3. &apos;devtool modify hello-mod&apos; succeeds (it warns no source was unpacked to S, but then notes local source files have been added to srctree, which seems fine)
4. &apos;devtool build hello-mod&apos; fails with:


Build Configuration:
BB_VERSION        = &quot;1.32.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;universal&quot;
TARGET_SYS        = &quot;i586-poky-linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.2&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-poky         
meta-yocto-bsp    
meta-skeleton     = &quot;master:1655d55764eb0241b71217810500fcf1d4519a1c&quot;
workspace         = &quot;&lt;unknown&gt;:&lt;unknown&gt;&quot;

NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
hello-mod-0.1-r0 do_compile: NOTE: hello-mod: compiling from external source tree /home/gizero/work/upstreaming/build/workspace/sources/hello-mod
ERROR: hello-mod-0.1-r0 do_compile: oe_runmake failed
ERROR: hello-mod-0.1-r0 do_compile: Function failed: do_compile (log file is located at /home/gizero/work/upstreaming/build/tmp/work/qemux86-poky-linux/hello-mod/0.1-r0/temp/log.do_compile.630)
ERROR: Logfile of failure stored in: /home/gizero/work/upstreaming/build/tmp/work/qemux86-poky-linux/hello-mod/0.1-r0/temp/log.do_compile.630
Log data follows:
| DEBUG: Executing python function externalsrc_compile_prefunc
| NOTE: hello-mod: compiling from external source tree /home/gizero/work/upstreaming/build/workspace/sources/hello-mod
| DEBUG: Python function externalsrc_compile_prefunc finished
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4 KERNEL_SRC=/home/gizero/work/upstreaming/build/tmp/work-shared/qemux86/kernel-source KERNEL_PATH=/home/gizero/work/upstreaming/build/tmp/work-shared/qemux86/kernel-source KERNEL_VERSION=4.8.6-yo
cto-standard CC=i586-poky-linux-gcc  -fuse-ld=bfd LD=i586-poky-linux-ld.bfd  AR=i586-poky-linux-ar  O=/home/gizero/work/upstreaming/build/tmp/work-shared/qemux86/kernel-build-artifacts KBUILD_EXTRA_SYMBOLS=
| ERROR: oe_runmake failed
| make: *** No targets specified and no makefile found.  Stop.
| ERROR: Function failed: do_compile (log file is located at /home/gizero/work/upstreaming/build/tmp/work/qemux86-poky-linux/hello-mod/0.1-r0/temp/log.do_compile.630)
ERROR: Task (/home/gizero/work/upstreaming/poky/meta-skeleton/recipes-kernel/hello-mod/hello-mod_0.1.bb:do_compile) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 436 tasks of which 435 didn&apos;t need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/gizero/work/upstreaming/poky/meta-skeleton/recipes-kernel/hello-mod/hello-mod_0.1.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68547</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-11-23 19:47:40 +0000</bug_when>
    <thetext>Fix merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=6e182aaa760c3be689e694e06d9ed0f4b66b1497</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>