rust-lang / rust-lang/rust

Regression: "rust-lld: error: undefined symbol: Rlog1p"

Open
#150,663 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-linkers C-bug E-needs-investigation P-low regression-from-stable-to-stable S-needs-repro T-infra
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

[INFO] [stdout] error: linking with `cc` failed: exit status: 1
[INFO] [stdout]   |
[INFO] [stdout]   = note:  "cc" "-m64" "/tmp/rustcIawPNl/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/{liblibr-fb1f28c02835dd25,liblibc-21c65d3cecbb2f0e}.rlib" "<sysroot>/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" "-Wl,-Bdynamic" "-lR" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcIawPNl/raw-dylibs" "-B<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/usr/lib/R/lib" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/examples/01_embedded_print-fd7c93e7d624e282" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "-Wl,--export-dynamic" "-Wl,-Bsymbolic-functions" "-Wl,-z,relro"
[INFO] [stdout]   = note: some arguments are omitted. use `--verbose` to show all linker arguments
[INFO] [stdout]   = note: rust-lld: error: undefined symbol: Rlog1p
[INFO] [stdout]           >>> referenced by math.rs:56 (src/math.rs:56)
[INFO] [stdout]           >>>               libr-fb1f28c02835dd25.libr.afc42f30ce0bac2d-cgu.0.rcgu.o:(libr::math::log1p::hf26b7710c6b32ad0) in archive /opt/rustwide/target/debug/deps/liblibr-fb1f28c02835dd25.rlib
[INFO] [stdout]           collect2: error: ld returned 1 exit status

https://crater-reports.s3.amazonaws.com/beta-1.93-4/beta-2025-12-22/reg/libr-0.1.0/log.txt

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked crater log and the reference to src/math.rs:56 in the libr crate, where log1p triggers the undefined Rlog1p symbol. Inspect the displayed linker arguments, including -lR and rust-lld, to determine the regression scope. Done means reproducing the failure and identifying a verified correction for the affected Rust linking behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
r, rust
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.