-
-
Notifications
You must be signed in to change notification settings - Fork 15k
--crate-type=rlib + -Cdebuginfo=2 + -Zremap-cwd-prefix=. is not reproducible on Windows #129117
Copy link
Copy link
Open
Labels
A-reproducibilityArea: Reproducible / deterministic buildsArea: Reproducible / deterministic buildsA-testsuiteArea: The testsuite used to check the correctness of rustcArea: The testsuite used to check the correctness of rustcC-bugCategory: This is a bug.Category: This is a bug.O-windowsOperating system: WindowsOperating system: WindowsS-needs-reproStatus: This issue has no reproduction and needs a reproduction to make progress.Status: This issue has no reproduction and needs a reproduction to make progress.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-reproducibilityArea: Reproducible / deterministic buildsArea: Reproducible / deterministic buildsA-testsuiteArea: The testsuite used to check the correctness of rustcArea: The testsuite used to check the correctness of rustcC-bugCategory: This is a bug.Category: This is a bug.O-windowsOperating system: WindowsOperating system: WindowsS-needs-reproStatus: This issue has no reproduction and needs a reproduction to make progress.Status: This issue has no reproduction and needs a reproduction to make progress.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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.rsmkdir testcp reproducible-build.rs test/reproducible-build.rsrustc --crate-type=rlib -C debuginfo=2 -Zremap-cwd-prefix=. -L $cwd reproducible-build.rsmv libreproducible_build.rlib libfoo.rlibcd testrustc --crate-type=rlib -C debuginfo=2 -Zremap-cwd-prefix=. -L $base_dir --out-dir=$base_dir reproducible-build.rscd $base_dirlibreproducible_build.rlibandlibfoo.rlibare differentMarking as
S-needs-reproas I'm not sure of the root cause or exact reproduction environment; the test case failed onx86_64-msvcci job. I'm also not exactly sure of the intended semantics of-Z remap-cwd-prefix=..