PoC-Consortium / scavenger

A fast Burstcoin miner written in Rust
GNU General Public License v3.0
107 stars 64 forks source link

Error compiling on armv7 Raspberry Pi 3B+ #93

Closed lpvm closed 3 years ago

lpvm commented 3 years ago

I tried to compile the source code (version 1.8.0) in a RaspberryPi 3B+ and it was not possible, due to errors. Then did two cargo test, one with features, another one, below, without them. Please see the text below.

$ uname -a
Linux raspberrypi 5.10.11-v7+ #1399 SMP Thu Jan 28 12:06:05 GMT 2021 armv7l GNU/Linux
myuser@raspberrypi:~/scavenger/scavenger-1.8.0 $ cargo test --features=opencl,neon
   Compiling autocfg v1.0.1
   Compiling libc v0.2.94
   Compiling proc-macro2 v1.0.26
   Compiling unicode-xid v0.2.2
   Compiling cfg-if v1.0.0
   Compiling syn v1.0.72
   Compiling serde_derive v1.0.125
   Compiling cfg-if v0.1.10
   Compiling serde v1.0.125
   Compiling lazy_static v1.4.0
   Compiling log v0.4.14
   Compiling futures v0.1.31
   Compiling byteorder v1.4.3
   Compiling cc v1.0.67
   Compiling either v1.6.1
   Compiling maybe-uninit v2.0.0
   Compiling semver-parser v0.7.0
   Compiling scopeguard v1.1.0
   Compiling slab v0.4.3
   Compiling fnv v1.0.7
   Compiling matches v0.1.8
   Compiling tinyvec_macros v0.1.0
   Compiling rand_core v0.4.2
   Compiling autocfg v0.1.7
   Compiling itoa v0.4.7
   Compiling untrusted v0.7.1
   Compiling once_cell v1.7.2
   Compiling spin v0.5.2
   Compiling adler v1.0.2
   Compiling rustc-serialize v0.3.24
   Compiling version_check v0.9.3
   Compiling percent-encoding v1.0.1
   Compiling gimli v0.23.0
   Compiling ryu v1.0.5
   Compiling failure_derive v0.1.8
   Compiling serde_json v1.0.64
   Compiling rustc-demangle v0.1.19
   Compiling object v0.23.0
   Compiling httparse v1.4.0
error[E0658]: subslice patterns are unstable
   --> /home/myuser/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.23.0/src/read/mod.rs:162:41
    |
162 |             [0x7f, b'E', b'L', b'F', 1, ..] => FileKind::Elf32,
    |                                         ^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/62254

error[E0658]: subslice patterns are unstable
   --> /home/myuser/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.23.0/src/read/mod.rs:164:41
    |
164 |             [0x7f, b'E', b'L', b'F', 2, ..] => FileKind::Elf64,
    |                                         ^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/62254

error[E0658]: subslice patterns are unstable
   --> /home/myuser/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.23.0/src/read/mod.rs:166:38
    |
166 |             [0xfe, 0xed, 0xfa, 0xce, ..]
    |                                      ^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/62254

error[E0658]: subslice patterns are unstable
   --> /home/myuser/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.23.0/src/read/mod.rs:167:40
    |
167 |             | [0xce, 0xfa, 0xed, 0xfe, ..] => FileKind::MachO32,
    |                                        ^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/62254

error[E0658]: subslice patterns are unstable
   --> /home/myuser/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.23.0/src/read/mod.rs:169:40
    |
169 |             | [0xfe, 0xed, 0xfa, 0xcf, ..]
    |                                        ^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/62254

error[E0658]: subslice patterns are unstable
   --> /home/myuser/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.23.0/src/read/mod.rs:170:40
    |
170 |             | [0xcf, 0xfa, 0xed, 0xfe, ..] => FileKind::MachO64,
    |                                        ^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/62254

error[E0658]: subslice patterns are unstable
   --> /home/myuser/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.23.0/src/read/mod.rs:172:38
    |
172 |             [0xca, 0xfe, 0xba, 0xbe, ..] => FileKind::MachOFat32,
    |                                      ^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/62254

error[E0658]: subslice patterns are unstable
   --> /home/myuser/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.23.0/src/read/mod.rs:174:38
    |
174 |             [0xca, 0xfe, 0xba, 0xbf, ..] => FileKind::MachOFat64,
    |                                      ^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/62254

error[E0658]: subslice patterns are unstable
   --> /home/myuser/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.23.0/src/read/mod.rs:178:26
    |
178 |             [b'M', b'Z', ..] => {
    |                          ^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/62254

error[E0658]: subslice patterns are unstable
   --> /home/myuser/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.23.0/src/read/mod.rs:194:26
    |
194 |             [0x4c, 0x01, ..]
    |                          ^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/62254

error[E0658]: subslice patterns are unstable
   --> /home/myuser/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.23.0/src/read/mod.rs:196:28
    |
196 |             | [0x64, 0x86, ..] => FileKind::Coff,
    |                            ^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/62254

   Compiling crc32fast v1.2.1
   Compiling hashbrown v0.9.1
   Compiling percent-encoding v2.1.0
   Compiling winapi-build v0.1.1
   Compiling dtoa v0.4.8
   Compiling try-lock v0.2.3
   Compiling rayon-core v1.9.0
   Compiling semver v0.1.20
   Compiling bitflags v1.2.1
   Compiling cl-sys v0.4.2
   Compiling traitobject v0.1.0
   Compiling encoding_rs v0.8.28
   Compiling linked-hash-map v0.5.4
   Compiling mime v0.3.16
   Compiling quick-error v1.2.3
   Compiling winapi v0.2.8
   Compiling unicode-width v0.1.8
   Compiling ansi_term v0.10.2
error: aborting due to 11 previous errors

For more information about this error, try `rustc --explain E0658`.
error: could not compile `object`.
warning: build failed, waiting for other jobs to finish...
error: build failed
myuser@raspberrypi:~/scavenger/scavenger-1.8.0 $ cargo test 
   Compiling object v0.23.0
   Compiling log-mdc v0.1.0
   Compiling antidote v1.0.0
   Compiling arc-swap v0.3.11
   Compiling strsim v0.7.0
error[E0658]: subslice patterns are unstable
   --> /home/myuser/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.23.0/src/read/mod.rs:162:41
    |
162 |             [0x7f, b'E', b'L', b'F', 1, ..] => FileKind::Elf32,
    |                                         ^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/62254

error[E0658]: subslice patterns are unstable
   --> /home/myuser/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.23.0/src/read/mod.rs:164:41
    |
164 |             [0x7f, b'E', b'L', b'F', 2, ..] => FileKind::Elf64,
    |                                         ^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/62254

error[E0658]: subslice patterns are unstable
   --> /home/myuser/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.23.0/src/read/mod.rs:166:38
    |
166 |             [0xfe, 0xed, 0xfa, 0xce, ..]
    |                                      ^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/62254

error[E0658]: subslice patterns are unstable
   --> /home/myuser/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.23.0/src/read/mod.rs:167:40
    |
167 |             | [0xce, 0xfa, 0xed, 0xfe, ..] => FileKind::MachO32,
    |                                        ^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/62254

error[E0658]: subslice patterns are unstable
   --> /home/myuser/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.23.0/src/read/mod.rs:169:40
    |
169 |             | [0xfe, 0xed, 0xfa, 0xcf, ..]
    |                                        ^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/62254

error[E0658]: subslice patterns are unstable
   --> /home/myuser/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.23.0/src/read/mod.rs:170:40
    |
170 |             | [0xcf, 0xfa, 0xed, 0xfe, ..] => FileKind::MachO64,
    |                                        ^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/62254

error[E0658]: subslice patterns are unstable
   --> /home/myuser/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.23.0/src/read/mod.rs:172:38
    |
172 |             [0xca, 0xfe, 0xba, 0xbe, ..] => FileKind::MachOFat32,
    |                                      ^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/62254

error[E0658]: subslice patterns are unstable
   --> /home/myuser/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.23.0/src/read/mod.rs:174:38
    |
174 |             [0xca, 0xfe, 0xba, 0xbf, ..] => FileKind::MachOFat64,
    |                                      ^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/62254

error[E0658]: subslice patterns are unstable
   --> /home/myuser/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.23.0/src/read/mod.rs:178:26
    |
178 |             [b'M', b'Z', ..] => {
    |                          ^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/62254

error[E0658]: subslice patterns are unstable
   --> /home/myuser/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.23.0/src/read/mod.rs:194:26
    |
194 |             [0x4c, 0x01, ..]
    |                          ^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/62254

error[E0658]: subslice patterns are unstable
   --> /home/myuser/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.23.0/src/read/mod.rs:196:28
    |
196 |             | [0x64, 0x86, ..] => FileKind::Coff,
    |                            ^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/62254

   Compiling vec_map v0.8.2
   Compiling hex v0.3.2
   Compiling crossbeam-utils v0.7.2
   Compiling num-traits v0.2.14
   Compiling memoffset v0.5.6
   Compiling num-integer v0.1.44
   Compiling crossbeam-epoch v0.8.2
   Compiling miniz_oxide v0.4.4
   Compiling crossbeam-utils v0.8.4
   Compiling memoffset v0.6.3
   Compiling indexmap v1.6.2
   Compiling num-iter v0.1.42
   Compiling rayon v1.5.0
   Compiling libc v0.2.94
   Compiling proc-macro2 v1.0.26
   Compiling syn v1.0.72
   Compiling serde_derive v1.0.125
   Compiling serde v1.0.125
   Compiling try_from v0.3.2
   Compiling log v0.4.14
   Compiling base64 v0.10.1
   Compiling crossbeam-utils v0.6.6
   Compiling semver v0.9.0
   Compiling ring v0.16.20
   Compiling lock_api v0.3.4
   Compiling backtrace v0.3.58
   Compiling scavenger v1.8.0 (/home/myuser/scavenger/scavenger-1.8.0)
   Compiling maybe-uninit v2.0.0
   Compiling unicode-bidi v0.3.5
   Compiling tokio-sync v0.1.8
   Compiling tinyvec v1.2.0
error: aborting due to 11 previous errors

For more information about this error, try `rustc --explain E0658`.
error: could not compile `object`.
warning: build failed, waiting for other jobs to finish...
error: build failed
JohnnyFFM commented 3 years ago

Hi, what Rust version do you use? (rustc --version)

You might run an older version. Sublice patterns should now be stabilized in latest versions. Thx,

Johnny

lpvm commented 3 years ago

I replaced the system for an aarch64 one, so will not try again soon. If necessary, I'll reopen the issue. Thanks for your support.