CensoredUsername / whitespace-rs

A whitespace JIT compiler
Mozilla Public License 2.0
62 stars 4 forks source link

`error: aborting due to 131 previous errors` when installing with cargo install #2

Closed Reconcyl closed 4 years ago

Reconcyl commented 4 years ago

I tried to build this program using cargo install:

$ cargo install whitespacers

When I do this, I get 131 errors originating from the files src/core/compiler_x64.rs and src/core/allocator.rs. Most are of the form expected value, found module `self` or cannot find value `...` in this scope for some variable ....

My rustc/cargo version is 1.45.0.

I also tried installing it with cargo install +nightly whitespace-rs, but this led to a separate set of compilation errors relating to Span::mixed_site() when compiling dynasm.

Is it recommended that I build from source instead of using cargo install?

Edit: I attempted to build from source and got the same errors (stable and nightly).

CensoredUsername commented 4 years ago

The minimum required rust version is 1.46.0 (either stable or nightly) as that version fixes some issues around macro_rules! and proc_macro hygiene interactions.

Reconcyl commented 4 years ago

Thanks, this solved the problem.