After upgrading our chain and its relevant dependencies to polkadot-v0.9.22 I am getting the following build error for 'tikv-jemalloc-sys v0.4.3+5.2.1-patched.2'
I have also tried to add parity-util-mem = { version = "0.11", default-features = false, features = ["jemalloc-global"] }
as a dependency to our node's Cargo.toml file and it does not seem to solve the problem.
Here is my current rust configuration I have tried applying the solutions suggested in Problem compiling substrate node in WSL ( windows ) and Error: failed to run custom build command for `tikv-jemalloc-sys v0.4.3+5.2.1-patched.2` but still seems to get the same error. Furthermore, the problem does not seem to occur on non-WSL machines
sudo apt update
,sudo apt install --assume-yes git clang curl libssl-dev llvm libudev-dev make protobuf-compiler
,cargo clean
,cargo build
. Also, worth noting that there is a newer version oftikv-jemalloc-sys
. You could try manually updating and see if that works.