I’ve followed the steps here:
installed rust, cloned the repo and when I do cargo build I get this error
C:\Users\owner\Documents\Code\grin\grin>cargo build
Compiling winapi v0.3.4
Compiling unicode-bidi v0.3.4
Compiling textwrap v0.9.0
Compiling syntex_pos v0.58.1
Compiling conduit-mime-types v0.7.3
Compiling kernel32-sys v0.2.2
Compiling ws2_32-sys v0.2.1
Compiling itertools v0.6.5
Compiling unicase v2.1.0
Compiling unicase v1.4.2
Compiling unreachable v1.0.0
Compiling coco v0.1.1
Compiling clang-sys v0.21.1
Compiling secp256k1zkp v0.7.1 (https://github.com/mimblewimble/rust-secp256k1
-zkp?tag=grin_integration_7#3b2fd9f1)
Compiling rust-crypto v0.2.36
Compiling synom v0.11.3
Compiling arrayvec v0.4.7
Compiling crc v1.7.0
Compiling log v0.4.1
Compiling rayon-core v1.3.0
Compiling base64 v0.6.0
Compiling base64 v0.9.0
Compiling toml v0.4.5
Compiling iovec v0.1.2
Compiling num-traits v0.1.43
Compiling num-integer v0.1.36
Compiling num-complex v0.1.42
Compiling arrayvec v0.3.25
Compiling tokio-service v0.1.0
Compiling relay v0.1.1
Compiling daemonize v0.2.3
error[E0432]: unresolved import `std::os::unix`
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\lib.rs:49:14
|
49 | use std::os::unix::ffi::OsStringExt;
| ^^^^ Could not find `unix` in `os`
error[E0432]: unresolved import `libc::uid_t`
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\lib.rs:54:16
|
54 | pub use libc::{uid_t, gid_t, mode_t};
| ^^^^^ no `uid_t` in the root
error[E0432]: unresolved import `libc::gid_t`
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\lib.rs:54:23
|
54 | pub use libc::{uid_t, gid_t, mode_t};
| ^^^^^ no `gid_t` in the root
error[E0432]: unresolved import `libc::mode_t`
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\lib.rs:54:30
|
54 | pub use libc::{uid_t, gid_t, mode_t};
| ^^^^^^ no `mode_t` in the root
error[E0432]: unresolved import `libc::LOCK_EX`
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\lib.rs:55:12
|
55 | use libc::{LOCK_EX, LOCK_NB, c_int, fopen, write, close, fileno, fork, getp
id, setsid, setuid, setgid, dup2, umask};
| ^^^^^^^ no `LOCK_EX` in the root
error[E0432]: unresolved import `libc::LOCK_NB`
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\lib.rs:55:21
|
55 | use libc::{LOCK_EX, LOCK_NB, c_int, fopen, write, close, fileno, fork, getp
id, setsid, setuid, setgid, dup2, umask};
| ^^^^^^^ no `LOCK_NB` in the root
error[E0432]: unresolved import `libc::fork`
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\lib.rs:55:66
|
55 | use libc::{LOCK_EX, LOCK_NB, c_int, fopen, write, close, fileno, fork, getp
id, setsid, setuid, setgid, dup2, umask};
| ^^^^ no `f
ork` in the root
error[E0432]: unresolved import `libc::setsid`
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\lib.rs:55:80
|
55 | use libc::{LOCK_EX, LOCK_NB, c_int, fopen, write, close, fileno, fork, getp
id, setsid, setuid, setgid, dup2, umask};
|
^^^^^^ no `setsid` in the root. Did you mean to use `getpid`?
Compiling memchr v0.1.11
error[E0432]: unresolved import `libc::setuid`
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\lib.rs:55:88
|
55 | use libc::{LOCK_EX, LOCK_NB, c_int, fopen, write, close, fileno, fork, getp
id, setsid, setuid, setgid, dup2, umask};
|
^^^^^^ no `setuid` in the root. Did you mean to use `getpid`?
error[E0432]: unresolved import `libc::setgid`
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\lib.rs:55:96
|
55 | use libc::{LOCK_EX, LOCK_NB, c_int, fopen, write, close, fileno, fork, getp
id, setsid, setuid, setgid, dup2, umask};
|
^^^^^^ no `setgid` in the root. Did you mean to use `getpid`
?
error[E0432]: unresolved import `libc::umask`
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\lib.rs:55:110
|
55 | use libc::{LOCK_EX, LOCK_NB, c_int, fopen, write, close, fileno, fork, getp
id, setsid, setuid, setgid, dup2, umask};
|
^^^^^ no `umask` in the root
error[E0412]: cannot find type `uid_t` in module `libc`
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\ffi.rs:18:22
|
18 | pw_uid: libc::uid_t,
| ^^^^^ not found in `libc`
error[E0412]: cannot find type `gid_t` in module `libc`
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\ffi.rs:19:22
|
19 | pw_gid: libc::gid_t,
| ^^^^^ not found in `libc`
error[E0412]: cannot find type `gid_t` in module `libc`
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\ffi.rs:30:22
|
30 | gr_gid: libc::gid_t,
| ^^^^^ not found in `libc`
error[E0425]: cannot find function `errno_location` in this scope
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\ffi.rs:52:6
|
52 | *errno_location()
| ^^^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `gid_t` in module `libc`
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\ffi.rs:55:63
|
55 | pub unsafe fn get_gid_by_name(name: &CString) -> Option<libc::gid_t> {
| ^^^^^ not fou
nd in `libc`
error[E0412]: cannot find type `uid_t` in module `libc`
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0
.2.3\src\ffi.rs:65:63
|
65 | pub unsafe fn get_uid_by_name(name: &CString) -> Option<libc::uid_t> {
| ^^^^^ not fou
nd in `libc`
error[E0425]: cannot find value `STDIN_FILENO` in module `libc`
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-
0.2.3\src\lib.rs:357:35
|
357 | for stream in &[libc::STDIN_FILENO, libc::STDOUT_FILENO, libc:
:STDERR_FILENO] {
| ^^^^^^^^^^^^ not found in `libc`
...
362 | for_every_stream!(close);
| ------------------------- in this macro invocation
error[E0425]: cannot find value `STDOUT_FILENO` in module `libc`
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-
0.2.3\src\lib.rs:357:55
|
357 | for stream in &[libc::STDIN_FILENO, libc::STDOUT_FILENO, libc:
:STDERR_FILENO] {
| ^^^^^^^^^^^^^ not fo
und in `libc`
...
362 | for_every_stream!(close);
| ------------------------- in this macro invocation
error[E0425]: cannot find value `STDERR_FILENO` in module `libc`
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-
0.2.3\src\lib.rs:357:76
|
357 | for stream in &[libc::STDIN_FILENO, libc::STDOUT_FILENO, libc:
:STDERR_FILENO] {
|
^^^^^^^^^^^^^ not found in `libc`
...
362 | for_every_stream!(close);
| ------------------------- in this macro invocation
error[E0425]: cannot find value `STDIN_FILENO` in module `libc`
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-
0.2.3\src\lib.rs:357:35
|
357 | for stream in &[libc::STDIN_FILENO, libc::STDOUT_FILENO, libc:
:STDERR_FILENO] {
| ^^^^^^^^^^^^ not found in `libc`
...
370 | for_every_stream!(|stream| dup2(devnull_fd, stream));
| ----------------------------------------------------- in this macro in
vocation
error[E0425]: cannot find value `STDOUT_FILENO` in module `libc`
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-
0.2.3\src\lib.rs:357:55
|
357 | for stream in &[libc::STDIN_FILENO, libc::STDOUT_FILENO, libc:
:STDERR_FILENO] {
| ^^^^^^^^^^^^^ not fo
und in `libc`
...
370 | for_every_stream!(|stream| dup2(devnull_fd, stream));
| ----------------------------------------------------- in this macro in
vocation
error[E0425]: cannot find value `STDERR_FILENO` in module `libc`
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-
0.2.3\src\lib.rs:357:76
|
357 | for stream in &[libc::STDIN_FILENO, libc::STDOUT_FILENO, libc:
:STDERR_FILENO] {
|
^^^^^^^^^^^^^ not found in `libc`
...
370 | for_every_stream!(|stream| dup2(devnull_fd, stream));
| ----------------------------------------------------- in this macro in
vocation
error[E0425]: cannot find function `chown` in module `libc`
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-
0.2.3\src\lib.rs:423:19
|
423 | tryret!(libc::chown(path_c.as_ptr(), uid, gid), Ok(()), DaemonizeError
::ChownPidfile)
| ^^^^^ not found in `libc`
error[E0308]: mismatched types
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-
0.2.3\src\lib.rs:431:45
|
431 | if write(fd, transmute(pid_c.as_ptr()), pid_length) < pid_length as is
ize {
| ^^^^^^^^^^ expected u32, found
usize
|
= help: here are some functions which might fulfill your needs:
- .count_ones()
- .count_zeros()
- .leading_zeros()
- .trailing_zeros()
error[E0308]: mismatched types
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-
0.2.3\src\lib.rs:431:59
|
431 | if write(fd, transmute(pid_c.as_ptr()), pid_length) < pid_length as is
ize {
| ^^^^^^^^^^^^^^^^
^^^ expected i32, found isize
error[E0599]: no method named `into_vec` found for type `std::ffi::OsString` in
the current scope
--> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-
0.2.3\src\lib.rs:439:40
|
439 | CString::new(path.into_os_string().into_vec())
| ^^^^^^^^
error: aborting due to 27 previous errors
error: Could not compile `daemonize`.
warning: build failed, waiting for other jobs to finish...
error: build failed
C:\Users\owner\Documents\Code\grin\grin>