Zoxc / crusader

A network throughput and latency tester.
Apache License 2.0
116 stars 8 forks source link

Compile error on Rasp. Pi with 47ee225 #35

Closed richb-hanover closed 3 months ago

richb-hanover commented 3 months ago

This error happened two times with 47ee225. Earlier builds worked fine on this computer. What other info could I provide?

deploy@rpi4:~/src/crusader/src$ git rev-parse --short master
47ee225
deploy@rpi4:~/src/crusader/src$ cargo build --release
   Compiling smallvec v1.13.2
   Compiling libc v0.2.155
   Compiling bitflags v2.6.0
   Compiling getrandom v0.2.15
   Compiling rustix v0.38.34
   Compiling linux-raw-sys v0.4.14
   Compiling wayland-sys v0.31.4
   Compiling parking_lot_core v0.9.10
   Compiling parking_lot v0.12.3
   Compiling rand_core v0.6.4
   Compiling quick-xml v0.34.0
   Compiling jobserver v0.1.32
   Compiling wayland-client v0.31.5
   Compiling rand_chacha v0.3.1
   Compiling cc v1.1.7
   Compiling wayland-scanner v0.31.4
   Compiling rand v0.8.5
   Compiling wayland-backend v0.3.6
   Compiling event-listener v5.3.1
   Compiling memoffset v0.7.1
   Compiling atomic-waker v1.1.2
   Compiling cfg_aliases v0.1.1
   Compiling piper v0.2.3
   Compiling event-listener-strategy v0.5.2
   Compiling ahash v0.8.11
   Compiling async-channel v2.3.1
   Compiling async-fs v1.6.0
   Compiling blocking v1.6.1
   Compiling cursor-icon v1.1.0
   Compiling xkeysym v0.2.1
   Compiling nix v0.26.4
   Compiling zbus_macros v3.15.2
   Compiling async-broadcast v0.5.1
   Compiling ordered-stream v0.2.0
   Compiling async-recursion v1.1.1
   Compiling polling v3.7.2
   Compiling xdg-home v1.2.0
   Compiling memmap2 v0.9.4
   Compiling tokio v1.39.2
   Compiling wayland-cursor v0.31.5
   Compiling wayland-protocols v0.31.2
   Compiling wayland-csd-frame v0.3.0
   Compiling zbus v3.15.2
   Compiling calloop v0.12.4
   Compiling smithay-client-toolkit v0.18.1
   Compiling accesskit v0.12.3
   Compiling tiny-skia-path v0.11.4
   Compiling atspi-common v0.3.0
   Compiling wayland-protocols-wlr v0.2.0
   Compiling calloop-wayland-source v0.2.0
   Compiling emath v0.28.1
   Compiling x11rb-protocol v0.13.1
   Compiling semver v1.0.23
   Compiling raw-window-handle v0.5.2
   Compiling as-raw-xcb-connection v1.0.1
   Compiling tiny-skia v0.11.4
   Compiling ecolor v0.28.1
   Compiling atspi-proxies v0.3.0
   Compiling winit v0.29.15
   Compiling exr v1.72.0
   Compiling x11rb v0.13.1
   Compiling atspi-connection v0.3.0
   Compiling epaint v0.28.1
   Compiling sctk-adwaita v0.8.3
   Compiling wayland-protocols-plasma v0.2.0
   Compiling wayland-protocols v0.32.3
   Compiling calloop v0.13.0
   Compiling xkbcommon-dl v0.4.2
   Compiling glutin_glx_sys v0.5.0
   Compiling glutin_egl_sys v0.6.0
   Compiling raw-window-handle v0.6.2
   Compiling smol_str v0.2.2
   Compiling smithay-client-toolkit v0.19.2
   Compiling tungstenite v0.21.0
   Compiling hyper v1.4.1
   Compiling image v0.24.9
   Compiling calloop-wayland-source v0.3.0
   Compiling wayland-protocols-wlr v0.3.3
   Compiling rustc_version v0.4.0
   Compiling egui v0.28.1
   Compiling atspi v0.19.0
   Compiling accesskit_consumer v0.16.1
   Compiling glutin v0.31.3
   Compiling memoffset v0.9.1
   Compiling async-once-cell v0.5.3
   Compiling plotters-bitmap v0.3.6
   Compiling accesskit_unix v0.6.2
   Compiling pathfinder_simd v0.5.4
   Compiling tower v0.4.13
   Compiling hyper-util v0.1.6
   Compiling tokio-tungstenite v0.21.0
   Compiling glutin-winit v0.4.2
   Compiling freetype-sys v0.20.1
   Compiling async-broadcast v0.4.1
   Compiling yeslogic-fontconfig-sys v6.0.0
   Compiling home v0.5.9
   Compiling axum v0.7.5
   Compiling webbrowser v1.0.1
   Compiling zbus v2.3.2
error: failed to run custom build command for `yeslogic-fontconfig-sys v6.0.0`

Caused by:
  process didn't exit successfully: `/home/deploy/src/crusader/src/target/release/build/yeslogic-fontconfig-sys-1632e19815df8c88/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=RUST_FONTCONFIG_DLOPEN
  cargo:rerun-if-env-changed=FONTCONFIG_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_aarch64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_aarch64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=FONTCONFIG_STATIC
  cargo:rerun-if-env-changed=FONTCONFIG_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_aarch64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_aarch64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_aarch64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_aarch64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_aarch64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_aarch64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=FONTCONFIG_STATIC
  cargo:rerun-if-env-changed=FONTCONFIG_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_aarch64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_aarch64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_aarch64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_aarch64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_aarch64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_aarch64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

  --- stderr
  thread 'main' panicked at /home/deploy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/yeslogic-fontconfig-sys-6.0.0/build.rs:8:48:
  called `Result::unwrap()` on an `Err` value: "Could not run `PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags fontconfig`\nThe pkg-config command could not be found.\n\nMost likely, you need to install a pkg-config package for your OS.\nTry `apt install pkg-config`, or `yum install pkg-config`,\nor `pkg install pkg-config`, or `apk add pkgconfig` depending on your distribution.\n\nIf you've already installed it, ensure the pkg-config command is one of the\ndirectories in the PATH environment variable.\n\nIf you did not expect this build to link to a pre-installed system library,\nthen check documentation of the yeslogic-fontconfig-sys crate for an option to\nbuild the library from source, or disable features or dependencies\nthat require pkg-config."
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
    Building [====================>    ] 371/441: zbus
Zoxc commented 3 months ago

Try just cargo build -p crusader --release if you don't need the GUI.

Zoxc commented 3 months ago

I added a note about this dependency to the readme.

richb-hanover commented 3 months ago

Yes - #36 fixes this