-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
When cross compiling Rust to Android on Windows, Rust 1.69.0+ can't find the version script path. #113711
Copy link
Copy link
Open
Labels
A-crossArea: Cross compilationArea: Cross compilationA-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-androidOperating system: AndroidOperating system: AndroidO-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.
Milestone
Metadata
Metadata
Assignees
Labels
A-crossArea: Cross compilationArea: Cross compilationA-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-androidOperating system: AndroidOperating system: AndroidO-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.
On Windows, when cross compiling Rust code to generate an Android .so library, using Rust versions 1.69.0 or newer can result in compile errors about the version script.
The error happens because the Rust compiler tries to pass a path to a version script to the linker, but that specified path does not actually exist on Windows.
I tried this code:
I expected to see this happen:
Instead, this happened:
Meta
rustc --version --verbose: