-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Duplicate DllMain symbols cause linkage failure using Rust 1.61 #97318
Copy link
Copy link
Closed
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.Category: This is a bug.O-windowsOperating system: WindowsOperating system: WindowsO-windows-msvcToolchain: MSVC, Operating system: WindowsToolchain: MSVC, Operating system: Windowsregression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Metadata
Metadata
Assignees
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.Category: This is a bug.O-windowsOperating system: WindowsOperating system: WindowsO-windows-msvcToolchain: MSVC, Operating system: WindowsToolchain: MSVC, Operating system: Windowsregression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Type
Fields
Give feedbackNo fields configured for issues without a type.
As of Rust 1.60+, my work codebase no longer compiles correctly when trying to build a workspace package.
I believe this may be related to #95604.Code
I do not yet have a reproduction example as the crate that fails to build is heavy on internal dependencies.
I expected to see this happen: The crate would build correctly.
Instead, this happened: The linker fails with a duplicate
DllMainsymbol issue.Version it worked on
It most recently worked on: 1.59
Version with regression
Link Error
Error