<?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>13805</bug_id>
          
          <creation_ts>2020-02-20 07:45:59 +0000</creation_ts>
          <short_desc>allarch recipes conflicting between musl/glibc</short_desc>
          <delta_ts>2020-03-17 00:01:58 +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>core</component>
          <version>3.1</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>3.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Khem Raj">raj.khem</reporter>
          <assigned_to name="Khem Raj">raj.khem</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</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>86511</commentid>
    <comment_count>0</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2020-02-20 07:45:59 +0000</bug_when>
    <thetext>set TCLIBC = &quot;glibc&quot;
bitbake phoronix-test-suite

TCLIBC = &quot;musl&quot;
bitbake phoronix-test-suite -cconfigure

results in

ERROR: phoronix-test-suite-9.2.1-r0 do_prepare_recipe_sysroot: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: &apos;exec_python_func() autogenerated&apos;, lineno: 2, function: &lt;module&gt;
     0001:
 *** 0002:extend_recipe_sysroot(d)
     0003:
File: &apos;/mnt/b/yoe/sources/openembedded-core/meta/classes/staging.bbclass&apos;, lineno: 570, function: extend_recipe_sysroot
     0566:                    if &quot;/bin/&quot; in l or &quot;/sbin/&quot; in l:
     0567:                        # defer /*bin/* files until last in case they need libs
     0568:                        binfiles[l] = (targetdir, dest)
     0569:                    else:
 *** 0570:                        staging_copyfile(l, targetdir, dest, postinsts, seendirs)
     0571:
     0572:    # Handle deferred binfiles
     0573:    for l in binfiles:
     0574:        (targetdir, dest) = binfiles[l]
File: &apos;/mnt/b/yoe/sources/openembedded-core/meta/classes/staging.bbclass&apos;, lineno: 152, function: staging_copyfile
     0148:        os.symlink(linkto, dest)
     0149:        #bb.warn(c)
     0150:    else:
     0151:        try:
 *** 0152:            os.link(c, dest)
     0153:        except OSError as err:
     0154:            if err.errno == errno.EXDEV:
     0155:                bb.utils.copyfile(c, dest)
     0156:            else:
Exception: FileExistsError: [Errno 17] File exists: &apos;/mnt/b/yoe/build/tmp/sysroots-components/core2-32/bsd-headers/usr/include/sys/cdefs.h&apos; -&gt; &apos;/mnt/b/yoe/build/tmp/work/all-yoe-linux/phoronix-test-suite/9.2.1-r0/recipe-sysroot/usr/include/sys/cdefs.h&apos;

ERROR: Logfile of failure stored in: /mnt/b/yoe/build/tmp/work/all-yoe-linux/phoronix-test-suite/9.2.1-r0/temp/log.do_prepare_recipe_sysroot.129
ERROR: Task (/mnt/b/yoe/sources/meta-openembedded/meta-oe/recipes-benchmark/phoronix-test-suite/phoronix-test-suite_9.2.1.bb:do_prepare_recipe_sysroot) failed with exit code &apos;1&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86513</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-02-20 12:51:10 +0000</bug_when>
    <thetext>With master? There were some fixes in this area after zeus...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86520</commentid>
    <comment_count>2</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2020-02-20 15:28:52 +0000</bug_when>
    <thetext>yes master, the reason seesm to to latest changes to mime.bbclass and mime-xdg.bbclass which now depend on desktop-file-utils and shared-mime-info so
if a recipe inherits any one of these classes along with allarch then we get into this problem. 

Perhaps started after oe-core/6467b7b98c9a55e27d1ab9f253ec48da2a722e77

errors are also caught by sstate test

http://jenkins.nas-admin.org/view/OE/job/oe_world_workspace-compare-signatures/954/console</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86582</commentid>
    <comment_count>3</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2020-02-25 05:44:24 +0000</bug_when>
    <thetext>patch is on ml</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86729</commentid>
    <comment_count>4</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2020-03-17 00:01:58 +0000</bug_when>
    <thetext>Fixed in meta-oe/be2cf1984951b7d74f275fa470260bc5cf8ee574 meta-oe/f4ef3feef26588e9e80e8c7845031fb0eedf9687</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>