chfi / waragraph

24 stars 3 forks source link

Issue installing on M1 Macbook #25

Closed brettChapman closed 11 months ago

brettChapman commented 11 months ago

Hi

I'm struggling to get it installed on my Mac. I updated rust and cargo with rustup update, then ran cargo build --release and get this error:

(base) MUMAC121:waragraph brettchapman$ cargo build --release
   Compiling proc-macro2 v1.0.51
   Compiling num-traits v0.2.15
   Compiling lock_api v0.4.9
   Compiling getrandom v0.2.8
   Compiling crossbeam-epoch v0.9.14
   Compiling cc v1.0.79
   Compiling crossbeam-channel v0.5.7
   Compiling memchr v2.5.0
   Compiling core-foundation-sys v0.8.3
   Compiling memoffset v0.8.0
error[E0635]: unknown feature `proc_macro_span_shrink`
  --> /Users/brettchapman/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.51/src/lib.rs:92:30
   |
92 |     feature(proc_macro_span, proc_macro_span_shrink)
   |                              ^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0635`.
error: could not compile `proc-macro2` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...

rustc --explain E0635 gives this:

The #![feature] attribute specified an unknown feature.

Erroneous code example:

#![feature(nonexistent_rust_feature)] // error: unknown feature
chfi commented 11 months ago

Are you somehow on nightly rust? What does rustc --version --verbose say? Otherwise it seems like cargo update -p proc-macro2 should help

brettChapman commented 11 months ago

Yes, I'm on nightly rust. I changed to the stable version and its all running ok now. Thanks.