<?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>5402</bug_id>
          
          <creation_ts>2013-10-29 00:06:11 +0000</creation_ts>
          <short_desc>Not possible to build a third party module.</short_desc>
          <delta_ts>2014-07-31 14:09:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Kernel</product>
          <component>kernel-tooling</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>4389</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.6 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ferite">chamac2</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>bluelightning</cc>
    
    <cc>dvhart</cc>
    
    <cc>yp.kernel.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>38235</commentid>
    <comment_count>0</comment_count>
    <who name="Ferite">chamac2</who>
    <bug_when>2013-10-29 00:06:11 +0000</bug_when>
    <thetext>When a third party module (previosly tested on other distros) is going to be built on the same target system (Linux minnow 3.8.13-yocto-standard #1 SMP PREEMPT Wed Jul 3 09:03:06 CEST 2013 i686 GNU/Linux), the follow errors are present:

/bin/sh: /usr/src/kernel/scripts/recordmcount: No such file or directory

solved it with &quot;make recordmcount&quot;

/bin/sh: scripts/basic/fixdep: No such file or directory

solved it with &quot;make fixdep&quot;

/bin/sh: scripts/mod/modpost: No such file or directory

I could not compile this. I got &quot;modpost.h:12:23: fatal error: elfconfig.h: No such file or directory&quot;.

If I try to &quot;make modules&quot; I get &quot;*** No rule to make target `arch/x86/tools/relocs.c&apos;, needed by `arch/x86/tools/relocs&apos;.  Stop.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38236</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2013-10-29 05:12:41 +0000</bug_when>
    <thetext>Can you confirm a few details ? Are you using the SDK on the
target? .. or even building on the target in general ? If so,
this is a known item, and we have an enhancement request filed
to recreate the support scripts for on target module building.

If this is something else, can you add your exact configuration
and build steps to the bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38284</commentid>
    <comment_count>2</comment_count>
    <who name="Ferite">chamac2</who>
    <bug_when>2013-10-30 00:39:51 +0000</bug_when>
    <thetext>Yes, I am building the module on the same target system. Not crosscompiling nor SDK&apos;s.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38285</commentid>
    <comment_count>3</comment_count>
    <who name="Ferite">chamac2</who>
    <bug_when>2013-10-30 00:45:51 +0000</bug_when>
    <thetext>The general procedure I followed was to install kernel-dev, set the path to the make file of the kernel in the make file of the module to be build, and then, to run the make. Thats is when the reported errors happened.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38288</commentid>
    <comment_count>4</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2013-10-30 02:49:17 +0000</bug_when>
    <thetext>This is expected (at the moment), there are open enhancements
to prepare the SDK to build modules by default, and since the
SDK uses the kernel-dev package, you&apos;ll have the same results
just using it.

The scripts that support module building are not in the kernel-dev
package, since we can&apos;t mix architectures (as one of several 
QA errors you get if they are left in place).

So after install (in the sysroot or on the target), you need to
restore the scripts. If you head to the installed kernel source
tree and do a &apos;make scripts&apos;, what is your result ?

(The enhancement to the SDK is all about ensuring that make
scripts is run during SDK creation, so you don&apos;t need this manual
step anymore).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39903</commentid>
    <comment_count>5</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-01-17 15:07:34 +0000</bug_when>
    <thetext>Given that we have enhancement bug 4389 open for the SDK improvements, do we still need this bug as well?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39904</commentid>
    <comment_count>6</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2014-01-17 15:11:52 +0000</bug_when>
    <thetext>The SDK enhancements will cover this case and more, so I agree that we don&apos;t need this
individual bug, and it can be dup&apos;d.


(In reply to comment #5)
&gt; Given that we have enhancement bug 4389 open for the SDK improvements, do we
&gt; still need this bug as well?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39906</commentid>
    <comment_count>7</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-01-17 15:44:42 +0000</bug_when>
    <thetext>Marking as duplicate as per above. Thanks.

*** This bug has been marked as a duplicate of bug 4389 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44862</commentid>
    <comment_count>8</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2014-07-31 14:09:35 +0000</bug_when>
    <thetext>verified as per above comments.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>