--crate-type=rlib
+ -Cdebuginfo=2
+ -Zremap-cwd-prefix=.
is not reproducible on Windows
#129117
Labels
A-reproducibility
Area: Reproducible / deterministic builds
A-testsuite
Area: The testsuite used to check the correctness of rustc
C-bug
Category: This is a bug.
O-windows
Operating system: Windows
S-needs-repro
Status: This issue has no reproduction and needs a reproduction to make progress.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
In #128456 (comment) we noticed that:
--crate-type=rlib
+-C debuginfo=2
+-Z remap-cwd-prefix=.
on Windows caused the rlib to be unreproducible.rust/tests/run-make/reproducible-build/Makefile
Lines 4 to 5 in 0f442e2
Two source files:
Steps:
$base_dir
.rustc reproducible-build-aux.rs
mkdir test
cp reproducible-build.rs test/reproducible-build.rs
rustc --crate-type=rlib -C debuginfo=2 -Zremap-cwd-prefix=. -L $cwd reproducible-build.rs
mv libreproducible_build.rlib libfoo.rlib
cd test
rustc --crate-type=rlib -C debuginfo=2 -Zremap-cwd-prefix=. -L $base_dir --out-dir=$base_dir reproducible-build.rs
cd $base_dir
libreproducible_build.rlib
andlibfoo.rlib
are differentMarking as
S-needs-repro
as I'm not sure of the root cause or exact reproduction environment; the test case failed onx86_64-msvc
ci job. I'm also not exactly sure of the intended semantics of-Z remap-cwd-prefix=.
.The text was updated successfully, but these errors were encountered: