danleh / wasabi

A dynamic analysis framework for WebAssembly programs.
http://wasabi.software-lab.org
MIT License
366 stars 48 forks source link

Docker Build Error on Compiling proc-macro2-error #25

Closed bad5ect0r closed 4 years ago

bad5ect0r commented 4 years ago

When running docker build --rm -t wasabi . the following error message is displayed:

...
   Compiling proc-macro-error v0.2.6
error[E0658]: :literal fragment specifier is experimental and subject to change (see issue #35625)
   --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro-error-0.2.6/src/lib.rs:161:18
    |
161 |     ($span:expr, $fmt:literal, $($args:expr),*) => {{
    |                  ^^^^^^^^^^^^

error[E0658]: :literal fragment specifier is experimental and subject to change (see issue #35625)
   --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro-error-0.2.6/src/lib.rs:181:6
    |
181 |     ($fmt:literal, $($args:expr),*) => {{
    |      ^^^^^^^^^^^^

error[E0658]: imports can only refer to extern crate names passed with `--extern` on stable channel (see issue #53130)
   --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro-error-0.2.6/src/lib.rs:139:9
    |
135 | pub mod dummy;
    | -------------- not an extern crate passed with `--extern`
...
139 | pub use dummy::set_dummy;
    |         ^^^^^
    |
note: this import refers to the module defined here
   --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro-error-0.2.6/src/lib.rs:135:1
    |
135 | pub mod dummy;
    | ^^^^^^^^^^^^^^

error[E0658]: imports can only refer to extern crate names passed with `--extern` on stable channel (see issue #53130)
   --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro-error-0.2.6/src/lib.rs:140:9
    |
136 | pub mod multi;
    | -------------- not an extern crate passed with `--extern`
...
140 | pub use multi::MultiMacroErrors;
    |         ^^^^^
    |
note: this import refers to the module defined here
   --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro-error-0.2.6/src/lib.rs:136:1
    |
136 | pub mod multi;
    | ^^^^^^^^^^^^^^

error[E0658]: imports can only refer to extern crate names passed with `--extern` on stable channel (see issue #53130)
   --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro-error-0.2.6/src/lib.rs:141:9
    |
137 | pub mod single;
    | --------------- not an extern crate passed with `--extern`
...
141 | pub use single::MacroError;
    |         ^^^^^^
    |
note: this import refers to the module defined here
   --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro-error-0.2.6/src/lib.rs:137:1
    |
137 | pub mod single;
    | ^^^^^^^^^^^^^^^

error[E0308]: match arms have incompatible types
   --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro-error-0.2.6/src/lib.rs:244:9
    |
244 | /         match self {
245 | |             Some(res) => res,
246 | |             None => call_site_error!(message),
    | |                     ------------------------- match arm with an incompatible type
247 | |         }
    | |_________^ expected type parameter, found bool
    |
    = note: expected type `T`
               found type `bool`

error: aborting due to 6 previous errors

Some errors occurred: E0308, E0658.
For more information about an error, try `rustc --explain E0308`.
error: Could not compile `proc-macro-error`.
...
danleh commented 4 years ago

Thanks for the report and pull request! I did not merge your PR, but instead pushed myself, since I also updated the README in one go.

Seems one of the dependencies no longer works with older Rust versions and since Cargo.lock is not under version control for libraries, this affects Wasabi. Not sure how to prevent that in the future, if you have any idea, leave a comment.

Closing, please reopen if the issue persists.