FillZpp / sys-info-rs

Get system information in Rust.
MIT License
168 stars 56 forks source link

x86_64-pc-windows-gnu build fails on Ubuntu 20 #724 #104

Open lcmgh opened 2 years ago

lcmgh commented 2 years ago

Target: x86_64-pc-windows-gnu

error: failed to run custom build command for `sys-info v0.8.0`

Caused by:
  process didn't exit successfully: `/github/workspace/./target/release/build/sys-info-215e09fdcb498047/build-script-build` (exit status: 1)
  --- stdout
  cargo:rustc-flags=-l psapi
  cargo:rustc-flags=-l powrprof
  TARGET = Some("x86_64-pc-windows-gnu")
  OPT_LEVEL = Some("3")
  HOST = Some("x86_64-unknown-linux-musl")
  CC_x86_64-pc-windows-gnu = None
  CC_x86_64_pc_windows_gnu = None
  TARGET_CC = None
  CC = None
  CROSS_COMPILE = None
  CFLAGS_x86_64-pc-windows-gnu = None
  CFLAGS_x86_64_pc_windows_gnu = None
  TARGET_CFLAGS = None
  CFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("false")
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  running: "x86_64-w64-mingw32-gcc" "-O3" "-ffunction-sections" "-fdata-sections" "-m64" "-Wall" "-Wextra" "-o" "/github/workspace/./target/x86_64-pc-windows-gnu/release/build/sys-info-644b5c109f2cf0ca/out/c/windows.o" "-c" "c/windows.c"
  cargo:warning=c/windows.c:6:10: fatal error: powerbase.h: No such file or directory
  cargo:warning=    6 | #include <powerbase.h>
  cargo:warning=      |          ^~~~~~~~~~~~~
  cargo:warning=compilation terminated.
  exit status: 1