greatest-ape / aquatic

High-performance open BitTorrent tracker (UDP, HTTP, WebTorrent)
Apache License 2.0
485 stars 33 forks source link

Error trying to compile `http_load_test`: unknown feature `stdsimd` #190

Closed josecelano closed 7 months ago

josecelano commented 7 months ago

The error:

error[E0635]: unknown feature `stdsimd`
  --> /home/josecelano/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ahash-0.7.7/src/lib.rs:33:42
   |
33 | #![cfg_attr(feature = "stdsimd", feature(stdsimd))]
   |                                          ^^^^^^^

   Compiling rand_chacha v0.3.1
For more information about this error, try `rustc --explain E0635`.
error: could not compile `ahash` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
active toolchain
----------------

nightly-x86_64-unknown-linux-gnu (default)
rustc 1.78.0-nightly (3b1717c05 2024-03-10)

I had the same problem and it was solved by upgrading the ahash crate.

greatest-ape commented 7 months ago

Thanks. Until I update dependencies, you should be able to build it using a stable compiler (but you probably already know that).

josecelano commented 7 months ago

Thanks. Until I update dependencies, you should be able to build it using a stable compiler (but you probably already know that).

Yes, thank you. I've been running some tests with my computer.

greatest-ape commented 7 months ago

Adding support for torrust in https://github.com/greatest-ape/aquatic/tree/master/crates/bencher should be pretty simple, for testing systematically with multiple core counts. I don’t have time at the moment, but you could copy and adjust the chihaya runner.

greatest-ape commented 7 months ago

I’ve updated dependencies now, building on nightly should work again.

josecelano commented 7 months ago

I’ve updated dependencies now, building on nightly should work again.

It works.

cargo build --profile=release-debug -p aquatic_http_load_test
nightly-x86_64-unknown-linux-gnu (default)
rustc 1.78.0-nightly (3cbb93223 2024-03-13)