Blockstream / Blockstream/esplora

Electrs build fails: error: could not compile `librocksdb-sys`.

Open
#175 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.3k
Forks
514
Avg merge
1d 10h
Merged PRs (30d)
16

Description

When building electrs, it always errors at librocksdb-sys.

```
error[E0277]: arrays only have std trait implementations for lengths 0..=32
--> /Users/bsh/electrs/target/debug/build/librocksdb-sys-e63a2a7d44cd94b9/out/bindings.rs:238:5
|
238 | pub __opaque: [libc::c_char; 56usize],
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i8; 56]`
|
= note: required because of the requirements on the impl of `std::fmt::Debug` for `[i8; 56]`
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&[i8; 56]`
= note: required for the cast to the object type `dyn std::fmt::Debug`

error[E0277]: arrays only have std trait implementations for lengths 0..=32
--> /Users/bsh/electrs/target/debug/build/librocksdb-sys-e63a2a7d44cd94b9/out/bindings.rs:277:5
|
277 | pub __opaque: [libc::c_char; 40usize],
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i8; 40]`
|
= note: required because of the requirements on the impl of `std::fmt::Debug` for `[i8; 40]`
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&[i8; 40]`
= note: required for the cast to the object type `dyn std::fmt::Debug`

error[E0277]: arrays only have std trait implementations for lengths 0..=32
--> /Users/bsh/electrs/target/debug/build/librocksdb-sys-e63a2a7d44cd94b9/out/bindings.rs:359:5
|
359 | pub __opaque: [libc::c_char; 56usize],
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i8; 56]`
|
= note: required because of the requirements on the impl of `std::fmt::Debug` for `[i8; 56]`
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&[i8; 56]`
= note: required for the cast to the object type `dyn std::fmt::Debug`

error[E0277]: arrays only have std trait implementations for lengths 0..=32
--> /Users/bsh/electrs/target/debug/build/librocksdb-sys-e63a2a7d44cd94b9/out/bindings.rs:482:5
|
482 | pub __opaque: [libc::c_char; 192usize],
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i8; 192]`
|
= note: required because of the requirements on the impl of `std::fmt::Debug` for `[i8; 192]`
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&[i8; 192]`
= note: required for the cast to the object type `dyn std::fmt::Debug`

error[E0277]: arrays only have std trait implementations for lengths 0..=32
--> /Users/bsh/electrs/target/debug/build/librocksdb-sys-e63a2a7d44cd94b9/out/bindings.rs:567:5
|
567 | pub __opaque: [libc::c_char; 8176usize],
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i8; 8176]`
|
= note: required because of the requirements on the impl of `std::fmt::Debug` for `[i8; 8176]`
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&[i8; 8176]`
= note: required for the cast to the object type `dyn std::fmt::Debug`

```

Caused by:

```
process didn't exit successfully: `rustc --crate-name librocksdb_sys /Users/bsh/.cargo/registry/src/github.com-1ecc6299db9ec823/librocksdb-sys-6.1.3/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 --cfg 'feature="bzip2"' --cfg 'feature="default"' --cfg 'feature="lz4"' --cfg 'feature="snappy"' --cfg 'feature="static"' --cfg 'feature="zlib"' --cfg 'feature="zstd"' -C metadata=6ce9f6ebfd95e967 -C extra-filename=-6ce9f6ebfd95e967 --out-dir /Users/bsh/electrs/target/debug/deps -L dependency=/Users/bsh/electrs/target/debug/deps --extern libc=/Users/bsh/electrs/target/debug/deps/liblibc-a6ccf62040d9063b.rmeta --cap-lints allow -L native=/Users/bsh/electrs/target/debug/build/librocksdb-sys-e63a2a7d44cd94b9/out -L native=/Users/bsh/electrs/target/debug/build/librocksdb-sys-e63a2a7d44cd94b9/out -L native=/Users/bsh/electrs/target/debug/build/librocksdb-sys-e63a2a7d44cd94b9/out -L native=/Users/bsh/electrs/target/debug/build/librocksdb-sys-e63a2a7d44cd94b9/out -L native=/Users/bsh/electrs/target/debug/build/librocksdb-sys-e63a2a7d44cd94b9/out -L native=/Users/bsh/electrs/target/debug/build/librocksdb-sys-e63a2a7d44cd94b9/out -l static=rocksdb -l c++ -l static=snappy -l c++ -l static=lz4 -l static=zstd -l static=z -l static=bz2` (exit code: 1)
```

Any ideas

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.