Hello,
While building rust compiler (in a linux system where host and target are same) between two different build directories, we've seen a reproducibility issue with librustc_driver.so file and this we are able to fix by using the --remap-path-prefix option usage.
But, in our Yocto project we are building the rust compiler and there also we faced the same reproducibility issue (here the host and target are different i.e., the rust compiler will get cross-compiled for a different target). The solution of using --remap-path-prefix is not working here. There a section called '.rustc' in librustc_driver.so is differed and that making the binary comparison failed b/w two build directories.
Can I get some info from community on below...
- What is this .rustc section and what it contains? (I couldn't disasemble this section and coudn't find much info on doc as well)
- Why this section is dependent in build path?
- What could be the reasons for --remap-path-prefix not working? (I can see this option is passed during Yocto build as well for rust compilation)
Thanks...