Skip to content

clippy_lints is breaking the stage1 build #45357

Closed
@pnkfelix

Description

@pnkfelix

Atop commit f6d7514 , I am trying to build Rust. I have deleted my build/ subdirectory, and I have even attempted to build from the root directory (rust.git), even though I usually put specific config.toml into subdirectories (to maintain separate debug and release builds)...

But on both Linux and Mac OS X, I am getting the same basic end result when I try to build:

% ./x.py test src/tools/tidy && RUST_BACKTRACE=1  ./x.py build --stage 1 && ./x.py test --stage 1 src/test/{mir-opt,compile-fail,run-pass}
[...]
   Compiling serde_derive_internals v0.16.0
   Compiling serde_derive v1.0.15
   Compiling clippy_lints v0.0.165 (file:///home/pnkfelix/Dev/Mozilla/rust.git/src/tools/clippy/clippy_lints)
   Compiling cargo_metadata v0.2.3
error: libproc_macro-6210e4b46662ec28.so: cannot open shared object file: No such file or directory
  --> /home/pnkfelix/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo_metadata-0.2.3/src/lib.rs:13:14
   |
13 | #[macro_use] extern crate serde_derive;
   |              ^^^^^^^^^^^^^^^^^^^^^^^^^^

error: libproc_macro-6210e4b46662ec28.so: cannot open shared object file: No such file or directory
  --> /home/pnkfelix/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo_metadata-0.2.3/src/lib.rs:13:14
   |
13 | #[macro_use] extern crate serde_derive;
   |              ^^^^^^^^^^^^^^^^^^^^^^^^^^

error: Could not compile `cargo_metadata`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `cargo_metadata`.
warning: build failed, waiting for other jobs to finish...
error: libproc_macro-6210e4b46662ec28.so: cannot open shared object file: No such file or directory
  --> src/tools/clippy/clippy_lints/src/lib.rs:47:1
   |
47 | extern crate serde_derive;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^

error: libproc_macro-6210e4b46662ec28.so: cannot open shared object file: No such file or directory
  --> src/tools/clippy/clippy_lints/src/lib.rs:47:1
   |
47 | extern crate serde_derive;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^

error: Could not compile `clippy_lints`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `clippy_lints`.

To learn more, run the command again with --verbose.


command did not execute successfully: "/home/pnkfelix/Dev/Mozilla/rust.git/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-j" "8" "--release" "--manifest-path" "/home/pnkfelix/Dev/Mozilla/rust.git/src/tools/clippy/Cargo.toml"

(On Mac OS X it instead complains:

error: dlopen(/Users/fklock/Dev/Mozilla/rust-mirborrowck/build/x86_64-apple-darwin/stage1-tools/release/deps/libserde_derive-c43f7547bcf0ad68.dylib, 1): Library not loaded: @rpath/libproc_macro-4a190002959d1e04.dylib
  Referenced from: /Users/fklock/Dev/Mozilla/rust-mirborrowck/build/x86_64-apple-darwin/stage1-tools/release/deps/libserde_derive-c43f7547bcf0ad68.dylib
  Reason: image not found
  --> /Users/fklock/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo_metadata-0.2.3/src/lib.rs:13:14
   |
13 | #[macro_use] extern crate serde_derive;
   |              ^^^^^^^^^^^^^^^^^^^^^^^^^^

but I interpret that as essentially the same error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binariesA-pluginsArea: compiler plugins, doc.rust-lang.org/nightly/unstable-book/language-features/plugin.htmlC-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions