ezrosent/frawk

Doesn't compile

Closed this issue · 2 comments

isbm commented

I am likely missing something:

$ rustup install nightly                      
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'

  nightly-x86_64-unknown-linux-gnu unchanged - rustc 1.54.0-nightly (676ee1472 2021-05-06)

$ cargo +nightly install --path .
  Installing frawk v0.4.0 (/home/bo/work/frawk)
    Updating crates.io index
   Compiling frawk v0.4.0 (/home/bo/work/frawk)
error[E0554]: `#![feature]` may not be used on the stable release channel
 --> src/main.rs:2:35
  |
2 | #![cfg_attr(feature = "unstable", feature(core_intrinsics))]
  |                                   ^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> src/main.rs:3:35
  |
3 | #![cfg_attr(feature = "unstable", feature(test))]
  |                                   ^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> src/main.rs:4:35
  |
4 | #![cfg_attr(feature = "unstable", feature(write_all_vectored))]
  |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0554`.
error: failed to compile `frawk v0.4.0 (/home/bo/work/frawk)`, intermediate artifacts can be found at `/home/bo/work/frawk/target`

Caused by:
  could not compile `frawk`

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

OK, plan B:

cargo install frawk

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> /home/bo/.cargo/registry/src/github.com-1ecc6299db9ec823/frawk-0.4.0/src/main.rs:2:35
  |
2 | #![cfg_attr(feature = "unstable", feature(core_intrinsics))]
  |                                   ^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> /home/bo/.cargo/registry/src/github.com-1ecc6299db9ec823/frawk-0.4.0/src/main.rs:3:35
  |
3 | #![cfg_attr(feature = "unstable", feature(test))]
  |                                   ^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> /home/bo/.cargo/registry/src/github.com-1ecc6299db9ec823/frawk-0.4.0/src/main.rs:4:35
  |
4 | #![cfg_attr(feature = "unstable", feature(write_all_vectored))]
  |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0554`.
error: failed to compile `frawk v0.4.0`, intermediate artifacts can be found at `/tmp/cargo-installuy6UkM`

Caused by:
  could not compile `frawk`

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

I guess, it is not finished yet...

Hi! I just tried running these commands and they do work on my machine (including after updating to rustc 1.54.0 and doing rustup default stable). It looks like despite passing +nightly you are still getting errors complaining about using nightly-only features, so something isn't working quite right there. Perhaps rustup default nightly will help?

Note that if you want to build frawk on stable you can build without the unstable feature, e.g. cargo install --path . --no-default-features --features use_jemalloc,allow_avx2. That last command was actually broken for a bit but it is fixed at head now; the other commands worked before and after that last commit though. Let me know if any of this helps.

Closing this due to trouble reproducing this error message (and lack of activity over last few months). Please file a follow-up if you're still having issues though.