tikv项目windows10 cargo build报错

  • 【TiDB 版本】:tikv v4.0.0.-rc
  • 【问题描述】: windows10 环境,git clone 下载tikv源码,然后通过crago build进行构建报错 Compiling h2 v0.2.4 error[E0432]: unresolved import nix::sys –> C:\Users\songlinhai.cargo\registry\src\github.com-1ecc6299db9ec823\pprof-0.3.16\src\profiler.rs:7:10 | 7 | use nix::sys::signal; | ^^^ could not find sys in nix

error[E0412]: cannot find type Error in crate nix –> C:\Users\songlinhai.cargo\registry\src\github.com-1ecc6299db9ec823\pprof-0.3.16\src\error.rs:6:27 | 6 | NixError(#[from] nix::Error), | ^^^^^ not found in nix | help: possible candidates are found in other modules, you can import them into scope | 4 | use core::fmt::Error; | 4 | use crate::error::Error; | 4 | use std::error::Error; | 4 | use std::fmt::Error; | and 1 other candidate

error[E0412]: cannot find type pthread_t in crate libc –> C:\Users\songlinhai.cargo\registry\src\github.com-1ecc6299db9ec823\pprof-0.3.16\src\profiler.rs:78:53 | 78 | fn write_thread_name_fallback(current_thread: libc::pthread_t, name: &mut [libc::c_char]) { | ^^^^^^^^^ not found in libc

error[E0412]: cannot find type pthread_t in crate libc –> C:\Users\songlinhai.cargo\registry\src\github.com-1ecc6299db9ec823\pprof-0.3.16\src\profiler.rs:104:44 | 104 | fn write_thread_name(current_thread: libc::pthread_t, name: &mut [libc::c_char]) { | ^^^^^^^^^ not found in libc

error[E0425]: cannot find function pthread_self in crate libc –> C:\Users\songlinhai.cargo\registry\src\github.com-1ecc6299db9ec823\pprof-0.3.16\src\profiler.rs:138:49 | 138 | let current_thread = unsafe { libc::pthread_self() }; | ^^^^^^^^^^^^ not found in libc

error: aborting due to 5 previous errors

Some errors have detailed explanations: E0412, E0425, E0432. For more information about an error, try rustc --explain E0412. error: could not compile pprof. warning: build failed, waiting for other jobs to finish… error: build failed

非常抱歉,,TiKV 现在在 windows10 上暂时还没有成功的案例,能否先使用其他环境跑一跑?

好的,谢谢!

:ok_hand: