rust-lang / rust-lang/rust

Bootstrap should allow overriding a dynamic library

Open
#148,150 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-bug needs-triage T-bootstrap
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

Hi.

I tried setting LD_LIBRARY_PATH to use a different libgccjit, but it doesn't seem to work anymore.

I expected that bootstrap would pick the libgccjit.so file from LD_LIBRARY_PATH.

Instead, bootstrap kept its version from build/x86_64-unknown-linux-gnu/stage2/lib.

Meta

I tried on commit 8aab621cd56bdc704f73c9d9aaa9f35ab5ee55b0.

Some more details.

I expect that some people would want to do something similar with LLVM.
What do people do to test a different LLVM version when hacking on rustc? Does it work by just setting LD_LIBRARY_PATH?

cc @Kobzol

Thanks.

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

Reproduce the issue on commit 8aab621cd56bdc704f73c9d9aaa9f35ab5ee55b0 by setting LD_LIBRARY_PATH and checking build/x86_64-unknown-linux-gnu/stage2/lib. Start by tracing bootstrap's dynamic-library selection and compare the linked discussion for context. Done means bootstrap can use an overridden libgccjit.so, with the analogous LLVM behavior clarified.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.