Skip to content

Failed to compile "syn" dependency  #288

@sandreim

Description

@sandreim

I tried RMC on the virtio devices code:

https://github.com/firecracker-microvm/firecracker/tree/main/src/devices/src/virtio

using the following command line invocation as per PR #264:

RUST_BACKTRACE=1 RUSTFLAGS="-Z trim-diagnostic-paths=no -Z codegen-backend=gotoc --cfg=rmc" RUSTC=rmc-rustc cargo build --target x86_64-unknown-linux-gnu -j1

with RMC version: main-153-2021-07-02

I expected the code to compile succesfully.

Instead, this happened:

error[E0460]: found possibly newer version of crate `std` which `proc_macro2` depends on
   --> /home/ANT.AMAZON.COM/sandreim/.cargo/registry/src/github.com-1ecc6299db9ec823/syn-1.0.55/src/lib.rs:304:1
    |
304 | extern crate proc_macro2;
    | ^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: perhaps that crate needs to be recompiled?
    = note: the following crate versions were found:
            crate `std`: /home/ANT.AMAZON.COM/sandreim/rmc/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-5fb2fb5733ae0bb1.rlib
            crate `std`: /home/ANT.AMAZON.COM/sandreim/rmc/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-5fb2fb5733ae0bb1.so
            crate `proc_macro2`: /home/ANT.AMAZON.COM/sandreim/firecracker/build/cargo_target/debug/deps/libproc_macro2-de0f0702f4c2e4d3.rmeta

Metadata

Metadata

Assignees

Labels

[C] BugThis is a bug. Something isn't working.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions