'Error in thread 'main' panicked at 'Building libffi',
System: Ubuntu 22.04 LTS (Wayland). I am trying to build a simple rsmpi code (Rust+MPI), but I am unable to build it because of the error : thread 'main' panicked at 'Building libffi'.
My Carg.toml file is:
[package]
name = "heat_equation_mpi"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
#mpi = { git = "https://github.com/bsteinb/rsmpi", rev = "f9aec8b8d82" }
mpi = "0.5.4"
The error shown is:
error: failed to run custom build command for `libffi-sys v0.6.0`
Caused by:process didn't exit successfully:
..... some lines here ....
thread 'main' panicked at 'Building libffi', /home/my_name/.cargo/registry/src/github.com-1ecc6299db9ec823/libffi-sys-0.6.0/build.rs:27:9
Can someone please help?
Note: You can find the entire error log here: https://pastebin.com/8pZPJSvi
Solution 1:[1]
Libffi author here. Sven is right -- your system is missing makeinfo. On my fedora box, this is provided by the texinfo package.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Anthony Green |