Closed PaarthShah closed 2 years ago
Do you have make
installed? On Ubuntu you generally want to sudo apt install build-essential
to get things like make
and a C compiler.
Do you have
make
installed? On Ubuntu you generally want tosudo apt install build-essential
to get things likemake
and a C compiler.
Yep, build-essentials
, libssl-dev
, pkg-config
, and cargo
are all at the latest.
I was going to ask you to run with RUST_BACKTRACE=1
to get a backtrace, but I notice you're one step ahead and included one in the log file — thanks :).
It's genuinely failing when trying to run make
— if you run make
yourself do you see that the command actually exists?
As a workaround for now, I think you can use cargo build --no-default-features
and then it won't compile or use jemalloc.
The effect you might see (as far as I know) is slightly reduced memory allocation performance, but I don't think it would be too major.
I would still like to know why this happens so we can sort it out, but it's quite mysterious.
So, I don't know why this worked, but running
apt install --reinstall cargo
ended up fixing it, and it was able to build immediately with no other changes/reboots.
Very strange, especially considering I fresh-installed cargo
on this machine specifically to be able to build this :^)
Closing this now, hopefully it might be relevant for someone else. Thank you for your help!
Describe the bug
cargo build
forsynapse_auto_compressor
fails.To Reproduce Steps to reproduce the behavior:
git clone rust-synapse-compress-state
cd synapse_auto_compressor
cargo build
error: failed to run custom build command for
tikv-jemalloc-sys v0.4.2+5.2.1-patched.2``Surface-level cause:
thread 'main' panicked at 'failed to execute command: No such file or directory (os error 2)', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tikv-jemalloc-sys-0.4.2+5.2.1-patched.2/build.rs:329:19
Logs Attached error.log
Desktop (please complete the following information):