I am getting some Rust error attempting to compile...
# development
f
I am getting some Rust error attempting to compile Pants on main ๐Ÿงต
Copy code
...
    Checking time v0.3.30
    Checking zerocopy v0.6.5
    Checking notify v5.0.0-pre.15 (<https://github.com/pantsbuild/notify?rev=276af0f3c5f300bfd534941386ba2f3b3a022df7#276af0f3>)
    Checking prodash v16.0.0 (<https://github.com/stuhood/prodash?rev=stuhood/raw-messages-draft#e8855948>)
    Checking docker_credential v1.2.0
error: failed to run custom build command for `fuser v0.11.1`

Caused by:
  process didn't exit successfully: `/home/username/code/pants/src/rust/engine/target/debug/build/fuser-4f51f9c80588498e/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=FUSE3_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=FUSE3_STATIC
  cargo:rerun-if-env-changed=FUSE3_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_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_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_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_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_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_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=FUSE_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=FUSE_STATIC
  cargo:rerun-if-env-changed=FUSE_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_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_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_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_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_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

  --- stderr
  `PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" PKG_CONFIG_ALLOW_SYSTEM_LIBS="1" "pkg-config" "--libs" "--cflags" "fuse3" "fuse3 >= 3.0.0"` did not exit successfully: exit status: 1
  --- stderr
  Package fuse3 was not found in the pkg-config search path.
  Perhaps you should add the directory containing `fuse3.pc'
  to the PKG_CONFIG_PATH environment variable
  Package 'fuse3', required by 'virtual:world', not found
  Package 'fuse3', required by 'virtual:world', not found

  `PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" PKG_CONFIG_ALLOW_SYSTEM_LIBS="1" "pkg-config" "--libs" "--cflags" "fuse" "fuse >= 2.6.0"` did not exit successfully: exit status: 1
  --- stderr
  Package fuse was not found in the pkg-config search path.
  Perhaps you should add the directory containing `fuse.pc'
  to the PKG_CONFIG_PATH environment variable
  Package 'fuse', required by 'virtual:world', not found
  Package 'fuse', required by 'virtual:world', not found

  thread 'main' panicked at /home/username/.cargo/registry/src/index.crates.io-6f17d22bba15001f/fuser-0.11.1/build.rs:41:22:
  called `Result::unwrap()` on an `Err` value: ()
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
Cleaning the
src/rust/engine/target
didn't help. I remember I saw this a few times before over the past year, but it did go away without me doing anything special about it (I think after a rebase). Does anyone understand what's wrong?
@broad-processor-92400 ๐Ÿ™‚
s
I'm pretty sure the error says that it depends on libfuse c library and you need to install it to make it work
apt install libfuse-dev
or smth