<?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>15397</bug_id>
          
          <creation_ts>2024-02-12 03:15:56 +0000</creation_ts>
          <short_desc>reproducibility failures in rust with v1.75</short_desc>
          <delta_ts>2024-03-22 00:26:18 +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>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>5.0 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sundeep Kokkonda">sundeep.kokkonda</reporter>
          <assigned_to name="Sundeep Kokkonda">sundeep.kokkonda</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>98185</commentid>
    <comment_count>0</comment_count>
    <who name="Sundeep Kokkonda">sundeep.kokkonda</who>
    <bug_when>2024-02-12 03:15:56 +0000</bug_when>
    <thetext>reproducibility tests are failed from v1.75 on-wards.
https://lists.openembedded.org/g/openembedded-core/message/193092

Same is observed with 1.76 update also.
https://lists.openembedded.org/g/openembedded-core/message/195281

Reproducibility test failures should be fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98186</commentid>
    <comment_count>1</comment_count>
    <who name="Sundeep Kokkonda">sundeep.kokkonda</who>
    <bug_when>2024-02-12 03:18:21 +0000</bug_when>
    <thetext>I&apos;ve analyzed the changes from 1.74.1 to 1.75.0, there are changes related to Cargo, llvm &amp; some changes w.r.t to bolt feature/optimization are there. I&apos;ve tried a few builds by reverting these changes but still the issue is reproducing.

There are a few commits in 85c0ce2 for src/bootstrap/src/core/builder.rs &amp; src/bootstrap/src/bin/rustc.rs files which have changes related to remap-debuginfo option and I suspect this commit might causing the issue. I tried build by reverting the commit &amp; with the latest changes in 4b7e0a0 but still issue is reproducing.

Further discussion is on-going with upstream.
https://github.com/rust-lang/rust/issues/120825</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98328</commentid>
    <comment_count>2</comment_count>
    <who name="Sundeep Kokkonda">sundeep.kokkonda</who>
    <bug_when>2024-02-26 14:44:31 +0000</bug_when>
    <thetext>During the build absolute path names are found in many stages but all are replaced/remapped as per &apos;--remap-path-prefix&apos; command by end of the build except the &apos;.rustc&apos; section contents.

I see that the .rustc section of 1.74 libs having the path names with &apos;/rust/$hash&apos; format. Below is the contents of libdarling_macro-*.so file.
/rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/vendor/darling_macro/src/lib.rs

Where as in 1.75 this is having absolute path names
/home/skokkond/rust/rustc-1.75.0-src/vendor/darling_macro/src/lib.rs


Updated the analysis so far in rust community:
https://github.com/rust-lang/rust/issues/120825#issuecomment-1964307219</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98514</commentid>
    <comment_count>3</comment_count>
    <who name="Sundeep Kokkonda">sundeep.kokkonda</who>
    <bug_when>2024-03-18 04:10:28 +0000</bug_when>
    <thetext>Issue fixed with below commits:
https://git.openembedded.org/openembedded-core/commit/?h=master-next&amp;id=457422ecb25480f9dae1adc7730062770a924487
https://git.openembedded.org/openembedded-core/commit/?h=master-next&amp;id=457422ecb25480f9dae1adc7730062770a924487</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98515</commentid>
    <comment_count>4</comment_count>
    <who name="Sundeep Kokkonda">sundeep.kokkonda</who>
    <bug_when>2024-03-18 04:12:02 +0000</bug_when>
    <thetext>Issue fixed with above mentioned commits in Comment #3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98536</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-03-19 20:34:52 +0000</bug_when>
    <thetext>Sundeep, 
I&apos;ve re-opened the bug so you can provide links to a branch other than master-next.  As you know the commit id on master-next can change.
Please update and resolved the bug again.
Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98563</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-03-21 15:03:50 +0000</bug_when>
    <thetext>-&gt; Needinfo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98567</commentid>
    <comment_count>7</comment_count>
    <who name="Sundeep Kokkonda">sundeep.kokkonda</who>
    <bug_when>2024-03-21 15:14:01 +0000</bug_when>
    <thetext>Issue fixed with below commit.
https://git.openembedded.org/openembedded-core/commit/?id=2eceaa4b6ca398ec233b18c1064970bdf68a9258</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98575</commentid>
    <comment_count>8</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-03-22 00:26:18 +0000</bug_when>
    <thetext>Thanks Sundeep.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>