I am very new to coding with Rust, so I might not understand many things yet. Among other crates, I have been trying to install the Symbolica crate to use in my project. Up to this point, there has not been any problem at all when installing all other crates. The way I have been doing so is by inputting name_of_crate = "version"
. When saving the file, the rust analyzer has been building automatically. But when I attempt to install Symbolica, it has been different. It gives me the following error:
2024-05-22T17:27:16.887381Z ERROR rust_analyzer::main_loop: FetchBuildDataError:
error: failed to run custom build command for `gmp-mpfr-sys v1.6.2`
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_DEV_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.
Caused by:
process didn't exit successfully: `C:UsersarkiDesktopRUST-MyRustApptargetdebugbuildgmp-mpfr-sys-208c89227956b5a0build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-env-changed=GMP_MPFR_SYS_CACHE
$ mkdir -p "C:\Users\arki\Desktop\RUST-\MyRustApp\target\debug\build\gmp-mpfr-sys-6cd0651d19e463cc\out\lib"
$ mkdir -p "C:\Users\arki\Desktop\RUST-\MyRustApp\target\debug\build\gmp-mpfr-sys-6cd0651d19e463cc\out\include"
$ rm -r "C:\Users\arki\Desktop\RUST-\MyRustApp\target\debug\build\gmp-mpfr-sys-6cd0651d19e463cc\out\build"
$ mkdir -p "C:\Users\arki\Desktop\RUST-\MyRustApp\target\debug\build\gmp-mpfr-sys-6cd0651d19e463cc\out\build"
$ ln -s "C:\Users\arki\.cargo\registry\src\index.crates.io-6f17d22bba15001f\gmp-mpfr-sys-1.6.2\gmp-6.3.0-c" "C:\Users\arki\Desktop\RUST-\MyRustApp\target\debug\build\gmp-mpfr-sys-6cd0651d19e463cc\out\build\gmp-src"
$ mkdir -p "C:\Users\arki\Desktop\RUST-\MyRustApp\target\debug\build\gmp-mpfr-sys-6cd0651d19e463cc\out\build\gmp-build"
$ cd "C:\Users\arki\Desktop\RUST-\MyRustApp\target\debug\build\gmp-mpfr-sys-6cd0651d19e463cc\out\build\gmp-build"
$ "sh" "-c" "../gmp-src/configure --enable-fat --disable-shared --with-pic"
--- stderr
thread 'main' panicked at C:Usersarki.cargoregistrysrcindex.crates.io-6f17d22bba15001fgmp-mpfr-sys-1.6.2build.rs:1207:29:
Unable to execute: "sh" "-c" "../gmp-src/configure --enable-fat --disable-shared --with-pic"
stack backtrace:
0: rust_begin_unwind
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/librarystdsrc/panicking.rs:645:5
1: core::panicking::panic_fmt
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/librarycoresrc/panicking.rs:72:14
2: build_script_build::execute::{{closure}}
3: core::result::Result<T,E>::unwrap_or_else
4: build_script_build::execute
5: build_script_build::configure
6: build_script_build::build_gmp
7: build_script_build::compile_libs
8: build_script_build::main
9: core::ops::function::FnOnce::call_once
I have MSYS64 installed. I am using GCC.
If it helps, have previously stumbled upon an error when insalling Symbolica of not bing able to do symbolic link in a similar way, but I solved it by running Visual Studio Code as administrator.
I have searched everywhere but I don’t seem to find anything specific to my error. Or if there is, I wouldn’t know how to find it.
Alotropicus Bread is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.