Skip to content

1.54.0 new test assembly/asm/bpf-types.rs fails on all architectures on Debian rustc build #89689

Closed

Description

@infinity0

The error is pretty straightforward

stderr:
------------------------------------------
warning: unused macro definition
  --> /<<PKGBUILDDIR>>/src/test/assembly/asm/bpf-types.rs:20:1
   |
20 | / macro_rules! stringify {
21 | |     () => {};
22 | | }
   | |_^
   |
   = note: `#[warn(unused_macros)]` on by default

error: couldn't allocate output register for constraint 'w'
  --> /<<PKGBUILDDIR>>/src/test/assembly/asm/bpf-types.rs:42:19
   |
42 |             asm!("{} = {}", out($class) y, in($class) x);
   |                   ^

error: aborting due to previous error; 1 warning emitted

We don't use rust's LLVM but a more vanilla LLVM in the Debian rust build, could that be the issue?

CC @alessandrod as the author of the test.

I will just disable the test for now in Debian.

Activity

  1. alessandrod commented on Oct 8, 2021

    @alessandrod
    Contributor

    We don't use rust's LLVM but a more vanilla LLVM in the Debian rust build, could that be the issue?

    I'm guessing that Debian LLVM is missing https://reviews.llvm.org/D102118

  2. infinity0 commented on Oct 9, 2021

    @infinity0
    ContributorAuthor

    That was from 5 months ago, which version of LLVM was it released in?

    The test says // min-llvm-version: 10.0.1 so this looks like it needs fixing.

  3. added 2 commits that reference this issue on Oct 9, 2021
    8683d36
    2e5a5e2
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

    C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions