<?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>8950</bug_id>
          
          <creation_ts>2016-01-20 00:39:53 +0000</creation_ts>
          <short_desc>Clean operation not done with externalsrc when S = B</short_desc>
          <delta_ts>2016-02-01 06:58: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>configuration</component>
          <version>2.1</version>
          <rep_platform>All</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.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Khem Raj">raj.khem</reporter>
          <assigned_to name="Markus Lehtonen">markus.lehtonen</assigned_to>
          
          
          
          <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>57969</commentid>
    <comment_count>0</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2016-01-20 00:39:53 +0000</bug_when>
    <thetext>when we use externalsrc for a component where S = B then make clean is not happening in the S ( as pointed by externalsrc location)

The problem is that it fails to link or package when we build the same package for another MACHINE.

This is brought to fore by using devtool. E.g. on lvm2 or fbset component from meta-oe

Procedure to reproduce is


MACHINE=qemux86

devtool modify -x lvm2
bitbake lvm2

now change MACHINE=qemux86-64
bitbake lvm2

you will get errors 

| /home/ubuntu/hacking/sources/lvm2/libdm/libdm-string.c:587: undefined reference to `__udivdi3&apos;
| /home/ubuntu/work/oe/openembedded-core/build/tmp-musl/sysroots/x86_64-linux/usr/libexec/x86_64-oe-linux-musl/gcc/x86_64-oe-linux-musl/5.3.0/ld: datastruct/bitset.o: file class ELFCLASS32 incompatible with ELFCLASS64
| /home/ubuntu/work/oe/openembedded-core/build/tmp-musl/sysroots/x86_64-linux/usr/libexec/x86_64-oe-linux-musl/gcc/x86_64-oe-linux-musl/5.3.0/ld: final link failed: File in wrong format</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58366</commentid>
    <comment_count>1</comment_count>
    <who name="Markus Lehtonen">markus.lehtonen</who>
    <bug_when>2016-02-01 06:58:27 +0000</bug_when>
    <thetext>A fix to this bug was merged in
http://git.openembedded.org/openembedded-core/commit/?id=f44f12af346888bdeb3ae01a275cb5dd4396b505

Please re-open if you still experience similar problems.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>