Skip to content

Rebuild automatically if the rustc version changes #10706

Open
@LingMan

Description

Describe the bug
After a rustc version update running ninja showed this error from rustc:

error[E0514]: found crate `rusticl_opencl_gen` compiled by an incompatible version of rustc
  --> ../src/gallium/frontends/rusticl/api/context.rs:10:5
   |
10 | use rusticl_opencl_gen::*;
   |     ^^^^^^^^^^^^^^^^^^
   |
   = help: please recompile that crate using this compiler (rustc 1.63.0 (4b91a6ea7 2022-08-08)) (consider running `cargo clean` first)
   = note: the following crate versions were found:
           crate `rusticl_opencl_gen` compiled by rustc 1.62.1 (e092d0b6b 2022-07-16): /home/laughingman/git/rusticl/mesa/target/src/gallium/frontends/rusticl/librusticl_opencl_gen.rlib

To Reproduce

Expected behavior
Rebuilds should happen automatically as needed.

system parameters

  • Is this a cross build or just a plain native build (for the same computer)?
    Native
  • what operating system (e.g. MacOS Catalina, Windows 10, CentOS 8.0, Ubuntu 18.04, etc.)
    Manjaro Linux
  • what Python version are you using e.g. 3.8.0
    3.10.5
  • what meson --version
    0.63.99 (self-compiled version from this PR)
  • what ninja --version if it's a Ninja build
    1.11.0

cc @dcbaker

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions