Linker error (Linux Mint 22.2)

⚓ Rust    📅 2026-01-02    👤 surdeus    👁️ 1      

surdeus

I am running Linux Mint 22.2 (x86_64), rustup 1.26.0, cargo 1.92.0.

I decided to play around with this project (GitHub - PerroEngine/Perro: 🐕 Perro — A game engine written in Rust that utilizes a unique transpilation system that allows developers to write in high level languages for quick iteration and ease of use, while achieving native performance.) and when I try to build the tool I get the following:

$ cargo run -p perro_dev
warning: unused config key build.RUSTFLAGS in /home/eda/build/Perro/.cargo/config.toml
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /home/eda/build/Perro/perro_core/Cargo.toml
workspace: /home/eda/build/Perro/Cargo.toml
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /home/eda/build/Perro/perro_dev/Cargo.toml
workspace: /home/eda/build/Perro/Cargo.toml
warning: /home/eda/build/Perro/perro_dev/Cargo.toml: unused manifest key: target.cfg(windows).rustflags
Compiling libc v0.2.178
Compiling proc-macro2 v1.0.103
Compiling quote v1.0.42
Compiling smallvec v1.15.1
error: linking with rust-lld failed: exit status: 1
|
= note: "rust-lld" "-flavor" "gnu" "/tmp/rustclcaqxV/symbols.o" "<2 object files omitted>" "--as-needed" "-Bstatic" "/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-,libpanic_unwind-,libobject-,libmemchr-,libaddr2line-,libgimli-,libcfg_if-,librustc_demangle-,libstd_detect-,libhashbrown-,librustc_std_workspace_alloc-,libminiz_oxide-,libadler2-,libunwind-,liblibc-,librustc_std_workspace_core-,liballoc-,libcore-,libcompiler_builtins-*}.rlib" "-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustclcaqxV/raw-dylibs" "--eh-frame-hdr" "-z" "noexecstack" "-L" "/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/eda/build/Perro/target/debug/build/quote-03d3df1af8178ab4/build_script_build-03d3df1af8178ab4" "--gc-sections" "-pie" "-z" "relro" "-z" "now"
= note: some arguments are omitted. use --verbose to show all linker arguments
= note: rust-lld: error: unable to find library -lgcc_s
rust-lld: error: unable to find library -lutil
rust-lld: error: unable to find library -lrt
rust-lld: error: unable to find library -lpthread
rust-lld: error: unable to find library -lm
rust-lld: error: unable to find library -ldl
rust-lld: error: unable to find library -lc

Any idea how to resolve this?

Thanks,
/Ed

5 posts - 3 participants

Read full topic

🏷️ Rust_feed