andreafioraldi / andreafioraldi/libafl_quickjs_fuzzing

Errors while running build.sh

Đang mở
#5 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Rust
Star
47
Fork
7
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I'm hitting these errors when running `bash ./build.sh`

Trying different revisions of LibAFL didn't help.

```
error[E0432]: unresolved import `core::simd::SimdOrd`
--> /home/florian/.cargo/git/checkouts/libafl-c33dc6f5ec2f7a70/977415c/libafl/src/feedbacks/map.rs:8:5
|
8 | use core::simd::SimdOrd;
| ^^^^^^^^^^^^^^^^^^^ no `SimdOrd` in `simd`
|
help: consider importing one of these items instead
|
8 | use core::simd::prelude::SimdOrd;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8 | use crate::prelude::std::simd::prelude::SimdOrd;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8 | use std::simd::prelude::SimdOrd;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
--> /home/florian/.cargo/git/checkouts/libafl-c33dc6f5ec2f7a70/977415c/libafl/src/bolts/anymap.rs:48:5
|
48 | assert_eq_size!(TypeId, u64);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: source type: `TypeId` (128 bits)
= note: target type: `u64` (64 bits)
= note: this error originates in the macro `assert_eq_size` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
--> /home/florian/.cargo/git/checkouts/libafl-c33dc6f5ec2f7a70/977415c/libafl/src/bolts/anymap.rs:59:5
|
59 | assert_eq_size!(TypeId, u64);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: source type: `TypeId` (128 bits)
= note: target type: `u64` (64 bits)
= note: this error originates in the macro `assert_eq_size` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no associated item named `LANES` found for struct `Simd` in the current scope
--> /home/florian/.cargo/git/checkouts/libafl-c33dc6f5ec2f7a70/977415c/libafl/src/feedbacks/map.rs:490:40
|
490 | let steps = size / VectorType::LANES;
| ^^^^^ associated item not found in `Simd`
|
note: if you're trying to build a new `Simd` consider using one of the following associated functions:
Simd::::splat
Simd::::load
Simd::::from_array
Simd::::from_slice
and 6 others
--> /rustc/d18480b84fdbf1efc34f62070951334aa833d761/library/core/src/../../portable-simd/crates/core_simd/src/vector.rs:147:5

error[E0599]: no associated item named `LANES` found for struct `Simd` in the current scope
--> /home/florian/.cargo/git/checkouts/libafl-c33dc6f5ec2f7a70/977415c/libafl/src/feedbacks/map.rs:491:39
|
491 | let left = size % VectorType::LANES;
| ^^^^^ associated item not found in `Simd`
|
note: if you're trying to build a new `Simd` consider using one of the following associated functions:
Simd::::splat
Simd::::load
Simd::::from_array
Simd::::from_slice
and 6 others
--> /rustc/d18480b84fdbf1efc34f62070951334aa833d761/library/core/src/../../portable-simd/crates/core_simd/src/vector.rs:147:5

error[E0599]: no associated item named `LANES` found for struct `Simd` in the current scope
--> /home/florian/.cargo/git/checkouts/libafl-c33dc6f5ec2f7a70/977415c/libafl/src/feedbacks/map.rs:494:40
|
494 | let i = step * VectorType::LANES;
| ^^^^^ associated item not found in `Simd`
|
note: if you're trying to build a new `Simd` consider using one of the following associated functions:
Simd::::splat
Simd::::load
Simd::::from_array
Simd::::from_slice
and 6 others
--> /rustc/d18480b84fdbf1efc34f62070951334aa833d761/library/core/src/../../portable-simd/crates/core_simd/src/vector.rs:147:5

error[E0599]: no method named `simd_max` found for struct `Simd` in the current scope
--> /home/florian/.cargo/git/checkouts/libafl-c33dc6f5ec2f7a70/977415c/libafl/src/feedbacks/map.rs:498:22
|
498 | if items.simd_max(history) != history {
| ^^^^^^^^
--> /rustc/d18480b84fdbf1efc34f62070951334aa833d761/library/core/src/../../portable-simd/crates/core_simd/src/simd/cmp/ord.rs:30:8
|
= note: the method is available for `Simd` here
|
= help: items from traits can only be used if the trait is in scope
help: trait `SimdOrd` which provides `simd_max` is implemented but not in scope; perhaps you want to import it
|
3 + use core::simd::cmp::SimdOrd;
|
help: there is a method `simd_min` with a similar name
|
498 | if items.simd_min(history) != history {
| ~~~~~~~~

error[E0599]: no associated item named `LANES` found for struct `Simd` in the current scope
--> /home/florian/.cargo/git/checkouts/libafl-c33dc6f5ec2f7a70/977415c/libafl/src/feedbacks/map.rs:501:50
|
501 | for j in i..(i + VectorType::LANES) {
| ^^^^^ associated item not found in `Simd`
|
note: if you're trying to build a new `Simd` consider using one of the following associated functions:
Simd::::splat
Simd::::load
Simd::::from_array
Simd::::from_slice
and 6 others
--> /rustc/d18480b84fdbf1efc34f62070951334aa833d761/library/core/src/../../portable-simd/crates/core_simd/src/vector.rs:147:5

Compiling rangemap v1.5.1
Compiling clap v4.5.1
Some errors have detailed explanations: E0432, E0512, E0599.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `libafl` (lib) due to 8 previous errors
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.