rust-lang / rust-lang/backtrace-rs

Musl CI started spontaneously not working?

Open
#565 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug help wanted OS-linux
Dominant language
Rust
Stars
628
Forks
291
PR merge metrics
No merged PRs in 30d

Description

Been getting issues like this:

   = note: /usr/bin/ld: /checkout/target/x86_64-unknown-linux-musl/debug/deps/accuracy-55902b35759f3f28.1uouxsj60aaj9p4p.rcgu.o: in function `libloading::os::unix::Library::open::{{closure}}':
          /cargo/registry/src/index.crates.io-6f17d22bba15001f/libloading-0.7.4/src/os/unix/mod.rs:173: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
          /usr/bin/ld: /rust/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/libc.a(dlerror.lo): in function `__get_tp':
          /build/musl-cross-make/build/local/x86_64-linux-musl/obj_musl/../src_musl/arch/x86_64/pthread_arch.h:4: multiple definition of `dlerror'; /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libdl.a(dlerror.o):(.text+0x0): first defined here
          /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libdl.a(dlopen.o): in function `dlopen':
          (.text+0x9): undefined reference to `__dlopen'
          /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libdl.a(dlclose.o): in function `dlclose':
          (.text+0x5): undefined reference to `__dlclose'
          /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libdl.a(dlerror.o): in function `dlerror':
          (.text+0x5): undefined reference to `__dlerror'
          collect2: error: ld returned 1 exit status

Contributor guide

No contributing guide indexed for this repository

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

The issue names no repository file or test, but includes a musl linker failure involving libloading and libdl. Start by reproducing the affected musl CI job and tracing its linker inputs; done means the CI build completes without the duplicate-definition and undefined-reference errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, ci-cd
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.