<?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>13766</bug_id>
          
          <creation_ts>2020-01-31 12:18:56 +0000</creation_ts>
          <short_desc>Using TCLIBC=musl results in SDKs producing incompatible binaries</short_desc>
          <delta_ts>2024-09-10 16:43:12 +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>3.0.1</version>
          <rep_platform>x86</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>5.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>anon2313</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>leon</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>stacy.gaikovaia</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>86215</commentid>
    <comment_count>0</comment_count>
    <who name="">anon2313</who>
    <bug_when>2020-01-31 12:18:56 +0000</bug_when>
    <thetext>When I build a Poky image where local.conf contains &apos;TCLIBC = &quot;musl&quot;&apos; then the SDKs provided by meta-toolchain and populate_sdk do not work properly.

When you build a simple application with either of these and copy it to the target they fail to run. You get a message like:

genericx86-64:~# ./a.out 
-sh: ./a.out: No such file or directory

The (fairly simple) project I&apos;m upgrading from Jethro to Zeus had &apos;TCLIBC = &quot;musl&quot;&apos; so I left it the same.

This seems to be related to Bug 13459.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86336</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2020-02-06 15:41:03 +0000</bug_when>
    <thetext>We also need an automated test to run in he autobuilder for this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87985</commentid>
    <comment_count>2</comment_count>
    <who name="Leon Woestenberg">leon</who>
    <bug_when>2020-08-19 15:17:13 +0000</bug_when>
    <thetext>I had the same issue, the dynamic loader is wrong (glibc vs musl), which can easily be checked with &apos;file /bin/app&apos;.  I have updated Bug 13459 with further root cause digging.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88222</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2020-09-24 09:34:13 +0000</bug_when>
    <thetext>Sakib, I&apos;d like you to check if this is still broken on the master branch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89130</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-02-03 19:40:29 +0000</bug_when>
    <thetext>Unfortunately, I don&apos;t think that Sakib will get to this until early 3.4. -- Randy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90913</commentid>
    <comment_count>5</comment_count>
    <who name="Leon Woestenberg">leon</who>
    <bug_when>2021-07-12 19:58:10 +0000</bug_when>
    <thetext>This was fixed in Bug 13459.

Specifically, I analyzed the cause there and came up with a v1 patch. (2020-08-19 15:14:12 UTC)

Khem Raj proposed a v2 patch which was accepted. It has been in one or two Yocto releases already.

(If it&apos;s broken in master, than that would be a regression.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91832</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-10-27 21:42:56 +0000</bug_when>
    <thetext>Sakib, I think you just need to test that this works on master so I moved it to M1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92861</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-03-24 15:59:36 +0000</bug_when>
    <thetext>Sakib to test and document his testing here so we can get this closed in M4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98912</commentid>
    <comment_count>8</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-04-25 01:33:46 +0000</bug_when>
    <thetext>Just needs testing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99631</commentid>
    <comment_count>9</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-09-10 16:43:12 +0000</bug_when>
    <thetext>Apparently fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>