Skip to content

1.68.0 emits STATUS_ILLEGAL_INSTRUCTION on build #108978

Closed
@rozensoftware

Description

@rozensoftware

Couldn't build with cargo build.
I tried this code:

fn main() {
    println!("Hello, world!");
}

I expected to see this happen:

the program should compile fine.

Instead, this happened:

error: could not compile nanny

Caused by:
process didn't exit successfully: rustc --crate-name nanny --edition=2021 src\main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=203 --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=5a2abc74c1c30893 --out-dir D:\Projects\nanny\target\debug\deps -C incremental=D:\Projekty\nanny\target\debug\incremental -L dependency=D:\Projects\nanny\target\debug\deps (exit code: 0xc000001d, STATUS_ILLEGAL_INSTRUCTION)

rustc --version --verbose:

rustc 1.68.0 (2c8cc3432 2023-03-06)
binary: rustc
commit-hash: 2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74
commit-date: 2023-03-06
host: x86_64-pc-windows-msvc
release: 1.68.0
LLVM version: 15.0.6

Notes:

cargo check emits the same error.
cargo build --release works correctly.

Having Visual Studio 2022 v17.5.1 installed on my system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-windows-msvcToolchain: MSVC, Operating system: Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions