<?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>6788</bug_id>
          
          <creation_ts>2014-10-02 00:55:30 +0000</creation_ts>
          <short_desc>lttng-modules build fails with kernel 3.10.43</short_desc>
          <delta_ts>2014-10-30 06:54:23 +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>kernel</component>
          <version>1.6.1</version>
          <rep_platform>Other</rep_platform>
          <op_sys>x86_64</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>major</bug_severity>
          <target_milestone>1.6.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rebecca Chang">rebecca.swee.fun.chang</reporter>
          <assigned_to name="Rebecca Chang">rebecca.swee.fun.chang</assigned_to>
          <cc>bruce.ashfield</cc>
    
    <cc>nitin.a.kamble</cc>
    
    <cc>rebecca.swee.fun.chang</cc>
    
    <cc>tom.zanussi</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>46015</commentid>
    <comment_count>0</comment_count>
    <who name="Rebecca Chang">rebecca.swee.fun.chang</who>
    <bug_when>2014-10-02 00:55:30 +0000</bug_when>
    <thetext>After updating the kernel SRCREV to version 3.10.55, lttng-modules build failed. By checking lttng-modules git repo, it has been updated to version 2.4.2 while OE-Core still providing version 2.4.0. This build failure only occurs when build core-image-sato-sdk images. Building older kernel version (3.10.40) did not encounter this build issue too.

Test log:
|   CC [M]  /home/ilab/build/valleyisland/tmp/work/valleyisland_64-poky-linux/lttng-modules/2.4.0-r0/git/probes/lttng-types.o
|   CC [M]  /home/ilab/build/valleyisland/tmp/work/valleyisland_64-poky-linux/lttng-modules/2.4.0-r0/git/probes/lttng-probe-sched.o
|   CC [M]  /home/ilab/build/valleyisland/tmp/work/valleyisland_64-poky-linux/lttng-modules/2.4.0-r0/git/probes/lttng-probe-irq.o
|   CC [M]  /home/ilab/build/valleyisland/tmp/work/valleyisland_64-poky-linux/lttng-modules/2.4.0-r0/git/probes/lttng-probe-timer.o
|   CC [M]  /home/ilab/build/valleyisland/tmp/work/valleyisland_64-poky-linux/lttng-modules/2.4.0-r0/git/probes/lttng-probe-kmem.o
|   CC [M]  /home/ilab/build/valleyisland/tmp/work/valleyisland_64-poky-linux/lttng-modules/2.4.0-r0/git/probes/lttng-probe-module.o
|   CC [M]  /home/ilab/build/valleyisland/tmp/work/valleyisland_64-poky-linux/lttng-modules/2.4.0-r0/git/probes/lttng-probe-power.o
|   CC [M]  /home/ilab/build/valleyisland/tmp/work/valleyisland_64-poky-linux/lttng-modules/2.4.0-r0/git/probes/lttng-probe-statedump.o
|   CC [M]  /home/ilab/build/valleyisland/tmp/work/valleyisland_64-poky-linux/lttng-modules/2.4.0-r0/git/probes/lttng-probe-signal.o
|   CC [M]  /home/ilab/build/valleyisland/tmp/work/valleyisland_64-poky-linux/lttng-modules/2.4.0-r0/git/probes/lttng-probe-block.o
| In file included from /home/ilab/build/valleyisland/tmp/work/valleyisland_64-poky-linux/lttng-modules/2.4.0-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/define_trace.h:148:0,
|                  from /home/ilab/build/valleyisland/tmp/work/valleyisland_64-poky-linux/lttng-modules/2.4.0-r0/git/probes/../instrumentation/events/lttng-module/block.h:932,
|                  from /home/ilab/build/valleyisland/tmp/work/valleyisland_64-poky-linux/lttng-modules/2.4.0-r0/git/probes/lttng-probe-block.c:41:
| /home/ilab/build/valleyisland/tmp/work/valleyisland_64-poky-linux/lttng-modules/2.4.0-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:151:6: error: conflicting types for &apos;trace_block_rq_complete&apos;
|  void trace_##_name(_proto);
|       ^
| /home/ilab/build/valleyisland/tmp/work/valleyisland_64-poky-linux/lttng-modules/2.4.0-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:117:2: note: in expansion of macro &apos;DEFINE_EVENT_MAP&apos;
|   DEFINE_EVENT_MAP(template, name, name, PARAMS(proto), PARAMS(args))
|   ^
| /home/ilab/build/valleyisland/tmp/work/valleyisland_64-poky-linux/lttng-modules/2.4.0-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/block.h:235:1: note: in expansion of macro &apos;DEFINE_EVENT&apos;
|  DEFINE_EVENT(block_rq_with_error, block_rq_complete,
|  ^
| In file included from include/linux/module.h:18:0,
|                  from /home/ilab/build/valleyisland/tmp/work/valleyisland_64-poky-linux/lttng-modules/2.4.0-r0/git/probes/lttng-probe-block.c:23:
| include/linux/tracepoint.h:168:21: note: previous definition of &apos;trace_block_rq_complete&apos; was here
|   static inline void trace_##name(proto)    \
|                      ^
| include/linux/tracepoint.h:265:3: note: in expansion of macro &apos;__DECLARE_TRACE&apos;
|    __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), 1, \
|    ^
| include/linux/tracepoint.h:395:2: note: in expansion of macro &apos;DECLARE_TRACE&apos;
|   DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
|   ^
| include/trace/events/block.h:143:1: note: in expansion of macro &apos;TRACE_EVENT&apos;
|  TRACE_EVENT(block_rq_complete,
|  ^
| make[3]: *** [/home/ilab/build/valleyisland/tmp/work/valleyisland_64-poky-linux/lttng-modules/2.4.0-r0/git/probes/lttng-probe-block.o] Error 1
| make[2]: *** [/home/ilab/build/valleyisland/tmp/work/valleyisland_64-poky-linux/lttng-modules/2.4.0-r0/git/probes] Error 2
| make[1]: *** [_module_/home/ilab/build/valleyisland/tmp/work/valleyisland_64-poky-linux/lttng-modules/2.4.0-r0/git] Error 2
| make[1]: Leaving directory `/home/ilab/build/valleyisland/tmp/sysroots/valleyisland-64/usr/src/kernel&apos;
| make: *** [default] Error 2
| ERROR: oe_runmake failed
| WARNING: /home/ilab/build/valleyisland/tmp/work/valleyisland_64-poky-linux/lttng-modules/2.4.0-r0/temp/run.do_compile.8063:1 exit 1 from
|   exit 1
| ERROR: Function failed: do_compile (log file is located at /home/ilab/build/valleyisland/tmp/work/valleyisland_64-poky-linux/lttng-modules/2.4.0-r0/temp/log.do_compile.8063)
ERROR: Task 7 (/home/ilab/poky-daisy/meta/recipes-kernel/lttng/lttng-modules_2.4.0.bb, do_compile) failed with exit code &apos;1&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46016</commentid>
    <comment_count>1</comment_count>
    <who name="Rebecca Chang">rebecca.swee.fun.chang</who>
    <bug_when>2014-10-02 00:58:56 +0000</bug_when>
    <thetext>I have done some investigation on this. By updating the SRCREV of lttng-modules to version 2.4.2 or later, the lttng-modules will passed build. Also, this required the additional patch (bio-bvec-iter.patch) to be removed as the fix is already available in lttng-modules version 2.4.2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46037</commentid>
    <comment_count>2</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2014-10-02 14:57:48 +0000</bug_when>
    <thetext>Richard is ok with bumping the lttng-modules to version 2.4.2 in oecore daisy as it is a point version bump of the recipe. But it needs to be validated, to make sure it does not break older versions of the kernel (v3.10.40).
  Also other option is finding and cherry picking the commit from 2.4.2 which fixes the issue. It will being minimal changes to daisy.

Nitin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46066</commentid>
    <comment_count>3</comment_count>
    <who name="Rebecca Chang">rebecca.swee.fun.chang</who>
    <bug_when>2014-10-03 00:40:44 +0000</bug_when>
    <thetext>Thanks Nitin. I will take note on the older kernel version build.

Rebecca</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46079</commentid>
    <comment_count>4</comment_count>
    <who name="Rebecca Chang">rebecca.swee.fun.chang</who>
    <bug_when>2014-10-03 09:05:07 +0000</bug_when>
    <thetext>Fix submitted to OE-core。
http://lists.openembedded.org/pipermail/openembedded-core/2014-October/097694.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46241</commentid>
    <comment_count>5</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2014-10-09 14:42:11 +0000</bug_when>
    <thetext>Is this issue present in the poky master branch with the latest v3.10 kernel? If yes then a fix is needed for poky master too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46304</commentid>
    <comment_count>6</comment_count>
    <who name="Rebecca Chang">rebecca.swee.fun.chang</who>
    <bug_when>2014-10-14 00:52:40 +0000</bug_when>
    <thetext>Poky master has no problem because master branch is using lttng-modules version 2.5.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46663</commentid>
    <comment_count>7</comment_count>
    <who name="Rebecca Chang">rebecca.swee.fun.chang</who>
    <bug_when>2014-10-30 06:54:23 +0000</bug_when>
    <thetext>Issue was fixed and accepted into OE-Core.

OE-Core rev: 29ef1c738050e536d7824bdca6f7a0b8b1528011
poke rev: 2d5bd895656a234a6d6372e1af539e1b5acfd042</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>