Skip to content

Bad value for target-cpu has spammy and confusing error output #90894

@lopopolo

Description

@lopopolo

This same error spam reproduces if using an intentionally bad target, like RUSTFLAGS='-C target-cpu=xxx-todo'.

`fn main() {}

on x86_64 macOS.

compiling with:

rustc main.rs -Ctarget-cpu=cortex-a75

The current output is:

'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
<cut>
Details
$ rustc main.rs -Ctarget-cpu=cortex-a75
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
LLVM ERROR: 64-bit code requested on a subtarget that doesn't support it!
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
LLVM ERROR: 64-bit code requested on a subtarget that doesn't support it!
error: could not compile `bitflags`
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
LLVM ERROR: 64-bit code requested on a subtarget that doesn't support it!
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
LLVM ERROR: 64-bit code requested on a subtarget that doesn't support it!
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
LLVM ERROR: 64-bit code requested on a subtarget that doesn't support it!
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
LLVM ERROR: 64-bit code requested on a subtarget that doesn't support it!
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
LLVM ERROR: 64-bit code requested on a subtarget that doesn't support it!
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
libc++abi: Pure virtual function called!
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
LLVM ERROR: 64-bit code requested on a subtarget that doesn't support it!
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
LLVM ERROR: 64-bit code requested on a subtarget that doesn't support it!
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
LLVM ERROR: 64-bit code requested on a subtarget that doesn't support it!
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
LLVM ERROR: 64-bit code requested on a subtarget that doesn't support it!
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
LLVM ERROR: 64-bit code requested on a subtarget that doesn't support it!
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
LLVM ERROR: 64-bit code requested on a subtarget that doesn't support it!
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
'cortex-a75' is not a recognized processor for this target (ignoring processor)
LLVM ERROR: 64-bit code requested on a subtarget that doesn't support it!
error: build failed

Ideally the output should look like:

something less spammy.

meta

$ rustc -Vv
rustc 1.56.1 (59eed8a2a 2021-11-01)
binary: rustc
commit-hash: 59eed8a2aac0230a8b53e89d4e99d55912ba6b35
commit-date: 2021-11-01
host: x86_64-apple-darwin
release: 1.56.1
LLVM version: 13.0.0

background

I accidentally copy-and-pasted the RUSTFLAGS example for -C target-cpu= from https://rust-lang.github.io/packed_simd/perf-guide/target-feature/rustflags.html#target-cpu in an attempt to compile for target-cpu=native.

It looks like x86_64 Darwin doesn't like the cortex-a75 CPU type and I got a lot of unexpected output before the build errored out in LLVM.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-diagnosticsArea: Messages for errors, warnings, and lintsA-target-featureArea: Enabling/disabling target features like AVX, Neon, etc.D-verboseDiagnostics: Too much output caused by a single piece of incorrect code.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions