<?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>15988</bug_id>
          
          <creation_ts>2025-10-02 12:53:13 +0000</creation_ts>
          <short_desc>Non-deterministic package_qa in allarch+clang combination</short_desc>
          <delta_ts>2026-05-22 12:02:51 +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>5.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</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>102863</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2025-10-02 12:53:13 +0000</bug_when>
    <thetext>In builds of linux-firmware when TOOLCHAIN=clang, the package_qa is non-deterministic.

The ldflags test in package_qa_hash_style() uses elf.run_objdump() which calls ${OBJDUMP}, but notably just returns the empty string if objdump fails with an error.

With TOOLCHAIN=clang, OBJDUMP is &quot;${HOST_PREFIX}llvm-objdump&quot;.  The package_qa task depends on POPULATESYSROOTDEPS which for target builds is &quot;virtual/cross-binutils:do_populate_sysroot&quot;, which is not where llvm-objdump is.

Several issues jump out at me:
1) run_objdump() should likely _at least_ warn if it fails, if not fail
2) clang.bbclass should extend POPULATESYSROOTDEPS to include llvm-native.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102875</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2025-10-02 15:19:32 +0000</bug_when>
    <thetext>3) allarch clears POPULATESYSROOTDEPS</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102877</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2025-10-02 15:30:28 +0000</bug_when>
    <thetext>I wish bugzilla let you edit comments.

Re (3) we can&apos;t not unset POPULATESYSROOTDEPS because otherwise it depends on cross-binutils-allarch, which doesn&apos;t exist.

A horrible but interesting solution would be to use binutils-native as a provider of cross-binutils-allarch. Another approach might be to actually build both binutils-native (strip, etc) and binutils-cross (ld and anything else that needs to know about sysroots) which means we can be more specific about dependencies.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>