bvaisvil / zenith

Zenith - sort of like top or htop but with zoom-able charts, CPU, GPU, network, and disk usage
MIT License
2.59k stars 67 forks source link

Add support to raspberry #103

Open davic80 opened 3 years ago

davic80 commented 3 years ago

Hi! when I try to build for raspberry pi 4 I got the following error:

Compiling async-process v1.0.1 error[E0658]: use of unstable library feature 'process_set_argv0' --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/async-process-1.0.1/src/unix.rs:118:20 118 self.inner.arg0(arg); ^^^^
= note: for more information, see https://github.com/rust-lang/rust/issues/66510

error: aborting due to previous error

For more information about this error, try rustc --explain E0658. error: could not compile async-process. warning: build failed, waiting for other jobs to finish... error: build failed


error E0658

An unstable feature was used.

Erroneous code example:

#[repr(u128)] // error: use of unstable library feature 'repr128'
enum Foo {
    Bar(u64),
}

If you're using a stable or a beta version of rustc, you won't be able to use any unstable features. In order to do so, please switch to a nightly version of rustc (by using rustup).

If you're using a nightly version of rustc, just add the corresponding feature to be able to use it:

#![feature(repr128)]

#[repr(u128)] // ok!
enum Foo {
    Bar(u64),
}

(END)

bvaisvil commented 3 years ago

Thanks for reporting the issue. What version of rustc are you using to compile ?

sanyer commented 2 years ago

It's builds quite well using these commands:

# first, run container with rust with current zenith source folder mounted at /usr/src/myapp
docker run -it --rm -v $PWD:/usr/src/myapp -w /usr/src/myapp rust:1 bash
# and then inside container
apt-get update
apt-get install libclang-dev
make
exit
# and then run it
target/release/zenith