# Rust libs are not reproducible from 1.75

**URL:** <https://internals.rust-lang.org/t/rust-libs-are-not-reproducible-from-1-75/20290>\
**Category:** libs\
**Created:** [February 9, 2024, 6:41am UTC](https://internals.rust-lang.org/t/rust-libs-are-not-reproducible-from-1-75/20290 "2024-02-09T06:41:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sundeep-kokkonda](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/sundeep-kokkonda/32/10110_2.png) [@sundeep-kokkonda](https://internals.rust-lang.org/u/sundeep-kokkonda)\
**Post date:** [February 9, 2024, 6:41am UTC](https://internals.rust-lang.org/t/rust-libs-are-not-reproducible-from-1-75/20290/1 "2024-02-09T06:41:04Z")

</div>

Hello,

We've seen the issue [Librustc\_driver.so not reproducible](https://internals.rust-lang.org/t/librustc-driver-so-not-reproducible/19639) again while building _rust_ in Yocto project.

The libs are not reproducible even after the _remap-debuginfo_ option is enabled. It was working till 1.74.1 and this issue observed from 1.75.0 onwards.

See the non-reproducible libs below.

 ![libs](https://us1.discourse-cdn.com/flex002/uploads/rustlang/original/2X/a/a538b8e81c0906b8f15b1e4c6d1ec1d498e90870.png)

I've analyzed the changes from 1.74.1 to 1.75.0, there are changes related to Cargo, llvm & some changes w.r.t to bolt feature/optimization are there. I've tried a few builds by reverting these changes but still the issue is reproducing.

There are a few commits in [85c0ce2](https://github.com/rust-lang/rust/commit/85c0ce24cc748f07ba3497948d26356ff2b02f6d) for _src/bootstrap/src/core/builder.rs & 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 this commit & with the latest changes in [4b7e0a0](https://github.com/rust-lang/rust/commit/4b7e0a0b56aa2446e670dfd6558380a1039a86aa) but still issue is reproduing. There is a new RUSTC\_CARGO\_REGISTRY\_SRC\_TO\_REMAP is added in this commit. I added a few debug statements in here to see the build paths passed, I can see those are passed correctly to RUSTC\_CARGO\_REGISTRY\_SRC\_TO\_REMAP.

Any hints on what might cause reproducible issue on rust 1.75? Let me know if any other info is needed.

The same issue is here also - [rust libs are not reproducible from 1.75 · Issue #120825 · rust-lang/rust · GitHub](https://github.com/rust-lang/rust/issues/120825)

---

<div class="post-metadata">

**Author:** ![sundeep-kokkonda](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/sundeep-kokkonda/32/10110_2.png) [@sundeep-kokkonda](https://internals.rust-lang.org/u/sundeep-kokkonda)\
**Post date:** [February 9, 2024, 10:17am UTC](https://internals.rust-lang.org/t/rust-libs-are-not-reproducible-from-1-75/20290/2 "2024-02-09T10:17:05Z")

</div>

@bjorn3 Do you have any inputs on this issue?

---

<div class="post-metadata">

**Author:** ![bjorn3](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/bjorn3/32/2736_2.png) [@bjorn3](https://internals.rust-lang.org/u/bjorn3)\
**Post date:** [February 9, 2024, 12:47pm UTC](https://internals.rust-lang.org/t/rust-libs-are-not-reproducible-from-1-75/20290/3 "2024-02-09T12:47:42Z")

</div>

Replied on the github issue.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/system/32/14092_2.png) [@system](https://internals.rust-lang.org/u/system)\
**Post date:** [May 9, 2024, 12:48pm UTC](https://internals.rust-lang.org/t/rust-libs-are-not-reproducible-from-1-75/20290/4 "2024-05-09T12:48:00Z")

</div>

Closed on May 9, 2024, 12:48pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
