Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cargo panics when forced-target is specified to be i686-pc-windows-msvc #14833

Open
amnestria opened this issue Nov 17, 2024 · 1 comment
Open
Labels
C-bug Category: bug S-needs-info Status: Needs more info, such as a reproduction or more background for a feature request. Z-per-package-target Nightly: per-package-target

Comments

@amnestria
Copy link

Problem

When attempting to compile a crate that has i686-pc-windows-msvc forced as its target, Cargo panics:

thread 'main' panicked at src/cargo\core\resolver\features.rs:323:14:
activated_features for invalid package: features did not find PackageId { name: "windows_i686_msvc", version: "0.52.6", source: "registry `crates-io`" } NormalOrDev
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Steps

  1. Enable the experimental Cargo feature per-package-target inside Cargo.toml.
  2. Specify package.forced-target to be i686-pc-windows-msvc.
  3. Compile.

Possible Solution(s)

No response

Notes

No response

Version

release: 1.83.0-nightly
commit-hash: ad074abe3a18ce8444c06f962ceecfd056acfc73
commit-date: 2024-10-04
host: x86_64-pc-windows-msvc
libgit2: 1.8.1 (sys:0.19.0 vendored)
libcurl: 8.9.0-DEV (sys:0.4.74+curl-8.9.0 vendored ssl:Schannel)
os: Windows 10.0.19044 (Windows 10 IoT Enterprise LTSC 2021) [64-bit]
@amnestria amnestria added C-bug Category: bug S-triage Status: This issue is waiting on initial triage. labels Nov 17, 2024
@weihanglo
Copy link
Member

Thanks for the bug report. Mind sharing your Cargo.toml, or any minimal reproducible example?
A plain Cargo.toml with the steps you described in cargo 1.84.0-nightly (4a2d8dc63 2024-11-09) doesn't panic.

@weihanglo weihanglo added S-needs-info Status: Needs more info, such as a reproduction or more background for a feature request. Z-per-package-target Nightly: per-package-target and removed S-triage Status: This issue is waiting on initial triage. labels Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug S-needs-info Status: Needs more info, such as a reproduction or more background for a feature request. Z-per-package-target Nightly: per-package-target
Projects
None yet
Development

No branches or pull requests

2 participants