Openembedded Core Discussions
 help / color / mirror / Atom feed
* Yocto reproducibilty issue :: rust-llvm binary differences
@ 2023-02-21 16:47 Kokkonda, Sundeep
  2023-02-21 17:51 ` [OE-core] " Alexander Kanavin
  0 siblings, 1 reply; 10+ messages in thread
From: Kokkonda, Sundeep @ 2023-02-21 16:47 UTC (permalink / raw)
  To: OE-core; +Cc: MacLeod, Randy, Richard Purdie


[-- Attachment #1.1: Type: text/plain, Size: 1581 bytes --]

Hello,

The rust builds are not reproducible when the build path is changed. The issue details are in https://bugzilla.yoctoproject.org/show_bug.cgi?id=14875.

After debugging several ways, we tried to find at what build stage the Yocto build artifacts are deviating with rust sources generated artifacts.

I took the identical rust tarball sources (rustc-1.67.0-src.tar.xz) as Yocto rust sources and built in two different paths (buildA & buildB directories). In the rust sources the generated binaries are identical between 2 different builds.

But, In Yocto we found that the binaries '../tmp/work/x86_64-linux/rust-native/1.67.0-r0/recipe-sysroot-native/usr/lib/llvm-rust/lib/libLTO.so & libRemarks.so' are differed between 2 builds. See the differences in the attached 'libLTO-diff.png'.

And these objects are passed to compile all rust crates in later build stages (with option '-L native=/ala-lpggp31/skokkonda/875/poky/buildC/tmp/work/x86_64-linux/rust-native/1.67.0-r0/recipe-sysroot-native/usr/lib/llvm-rust/lib').

So, we suspect this could be the reason for this reproducibility issue in Yocto. I tried to find the reason for difference in these binaries but the '-vv' build log doesn't give enough info by linking which objects this libLTO.so is generated. I tried the disassembly of object files generated in ../x86_64-linux/rust-native/ but that didn't showup these binary differences.

Anyone who has expertise with rust-llvm can guide me here on how these *.so are generating and how to understand/fix these differences.



Thanks,
Sundeep K.

[-- Attachment #1.2: Type: text/html, Size: 7351 bytes --]

[-- Attachment #2: libLTO-diff.PNG --]
[-- Type: image/png, Size: 46741 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-03-01  8:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-21 16:47 Yocto reproducibilty issue :: rust-llvm binary differences Kokkonda, Sundeep
2023-02-21 17:51 ` [OE-core] " Alexander Kanavin
2023-02-22  3:58   ` Sundeep KOKKONDA
2023-02-22  6:11     ` Sundeep KOKKONDA
2023-02-22 11:09     ` [OE-core] " Alexander Kanavin
2023-02-22 19:45       ` Khem Raj
2023-03-01  6:28         ` Sundeep KOKKONDA
2023-03-01  6:47           ` [OE-core] " Alexander Kanavin
2023-03-01  8:21             ` Richard Purdie
2023-03-01  8:26           ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox