The 'rustdoc' binary is not reproducible. Issue seen on rust 1.75. More details: https://lists.openembedded.org/g/openembedded-core/message/200077
The issue is reproduced only when the path length of build directories are differed. https://lists.openembedded.org/g/openembedded-core/message/201616
This issue is reproducible on rust upstream sources and reported the bug to upstream. https://github.com/rust-lang/rust/issues/126976 - The dump of librustdoc-xxxx.rlib's shows that the *.rcgu.o are with different sizes. I tried the builds by disabling the rcgu's with codegen-units = 1. But still the compiled rustdoc with single rcgu also differed. - The increase of codegen-units = 256 or lto = off or opt-level = 0 also doesn't solve the problem. Further analysis is on-going and upstream doesn't have any clue about the root cause of the issue.
https://git.yoctoproject.org/poky/commit/?id=e2e7017350d0b5324811fef3b841f98b00273887 Great to have this fixed, thanks Sundeep!