PoC-Consortium / engraver

PoCC Burstcoin Reference Plotter
MIT License
63 stars 39 forks source link

FreeBSD compile #51

Open tatarenko opened 5 years ago

tatarenko commented 5 years ago

engraver does not compile cargo run returns:

error: failed to run custom build command for `sys-info v0.5.6`
process didn't exit successfully: `/usr/home/admin/engraver/target/debug/build/sys-info-f8ac6bb10e9bb895/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'unsupported system: freebsd', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/sys-info-0.5.6/build.rs:17:14
note: Run with `RUST_BACKTRACE=1` for a backtrace.

warning: build failed, waiting for other jobs to finish...
error: build failed
JohnnyFFM commented 5 years ago

Hi,

Engraver is currently using sys-info crate. Looks like the crate is not supporting FreeBSD. A solution to this could be to use replacement crates supporting FreeBSD, like systemstat for mem usage and num_cpus for processor information. Since I don't run FreeBSD / have no experience with it, I call for help on this.

Best, Johnny

tatarenko commented 5 years ago

Don't have programming skills but could help building/testing on FreeBSD