Skip to content

Tests fail with LLVM 19 due to unexpected "'+avx512er' is not a recognized feature for this target (ignoring feature)" output #125492

Closed

Description

@zmodem

For example, from https://buildkite.com/llvm-project/rust-llvm-integrate-prototype/builds/28362

thread 'main' panicked at /var/lib/buildkite-agent/builds/rust-llvm-integrate/llvm-project/rust-llvm-integrate-prototype/tests/run-make/non-unicode-env/rmake.rs:11:5:
assertion `left == right` failed
  left: "'+avx512er' is not a recognized feature for this target (ignoring feature)\n'+avx512er' is not a recognized feature for this target (ignoring feature)\n'+avx512pf' is not a recognized feature for this target (ignoring feature)\n'+avx512pf' is not a recognized feature for this target (ignoring feature)\n'+avx512er' is not a recognized feature for this target (ignoring feature)\n'+avx512er' is not a recognized feature for this target (ignoring feature)\n'+avx512pf' is not a recognized feature for this target (ignoring feature)\n'+avx512pf' is not a recognized feature for this target (ignoring feature)\nerror: environment variable `NON_UNICODE_VAR` is not a valid Unicode string\n --> non_unicode_env.rs:2:13\n  |\n2 |     let _ = env!(\"NON_UNICODE_VAR\");\n  |             ^^^^^^^^^^^^^^^^^^^^^^^\n  |\n  = note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info)\n\nerror: aborting due to 1 previous error\n\n"
 right: "error: environment variable `NON_UNICODE_VAR` is not a valid Unicode string\n --> non_unicode_env.rs:2:13\n  |\n2 |     let _ = env!(\"NON_UNICODE_VAR\");\n  |             ^^^^^^^^^^^^^^^^^^^^^^^\n  |\n  = note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info)\n\nerror: aborting due to 1 previous error\n\n"
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
------------------------------------------

(And many more.)

I think this is due to llvm/llvm-project@4def1ce

Should we just drop these from compiler/rustc_target/src/target_features.rs ?

Activity

  1. added
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on May 24, 2024
  2. zmodem commented on May 24, 2024

    @zmodem
    ContributorAuthor
  3. added a commit that references this issue on May 24, 2024
    63050af
  4. added
    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    A-target-featureArea: Enabling/disabling target features like AVX, Neon, etc.
    C-bugCategory: This is a bug.
    and removed
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on May 24, 2024
  5. added a commit that references this issue on May 24, 2024
    3fe3157
  6. added 2 commits that reference this issue on May 25, 2024
    5edded5
    3e8b60a
  7. added a commit that references this issue on May 25, 2024
    4d13c96
  8. added a commit that references this issue on May 25, 2024
    82824d1
  9. added 2 commits that reference this issue on May 25, 2024
    8b2ef31
    953cc43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-target-featureArea: Enabling/disabling target features like AVX, Neon, etc.C-bugCategory: This is a bug.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