<?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>16264</bug_id>
          
          <creation_ts>2026-04-23 10:00:41 +0000</creation_ts>
          <short_desc>reproducible issue with rust optimizations - lto or parallel-frontend-threads</short_desc>
          <delta_ts>2026-04-23 14:53:34 +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>unspecified</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 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sundeep Kokkonda">sundeep.kokkonda</reporter>
          <assigned_to name="Sundeep Kokkonda">sundeep.kokkonda</assigned_to>
          <cc>ccasciato</cc>
    
    <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>105204</commentid>
    <comment_count>0</comment_count>
    <who name="Sundeep Kokkonda">sundeep.kokkonda</who>
    <bug_when>2026-04-23 10:00:41 +0000</bug_when>
    <thetext>When enabled lto or parallel-frontend-threads optimizations rust binaries are not reproducible.

Build errors:
https://lists.openembedded.org/g/openembedded-core/message/233071

When parallel-frontend-threads is enabled the binaries are differed in librustc_driver***.so between rust-dbg_1.94.0-r0_amd64.deb &amp; rust_1.94.0-r0_amd64.deb

The difference in librustc_driver***.so is in .gnu_debuglink section. Further analysis on debug data shows the .strtab section is differed and there found the debug symbols are generated with changed *.llvm.{hash} between the builds. For e.g.,

BuildA has: _RINvNtCskNcDw7Prru3_4core3ptr13drop_in_placeINtNtNtNtCsc9RSozNcmFu_3std4sync6poison5mutex10MutexGuarduEECsi7rQHRWG1Yr_12rustc_middle.llvm.12271321240562639378
BuildB has: _RINvNtCskNcDw7Prru3_4core3ptr13drop_in_placeINtNtNtNtCsc9RSozNcmFu_3std4sync6poison5mutex10MutexGuarduEECsi7rQHRWG1Yr_12rustc_middle.llvm.16648798016096118002

In above 2 lines the *.llvm.{hash} is changed.

The issue is raised with rust upstream - https://github.com/rust-lang/rust/issues/154259</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>