Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ld.lld: error: undefined symbol: hashbrown::raw::Bucket... #72471

Open
jyn514 opened this issue May 22, 2020 · 3 comments
Open

ld.lld: error: undefined symbol: hashbrown::raw::Bucket... #72471

jyn514 opened this issue May 22, 2020 · 3 comments
Labels
A-incr-comp Area: Incremental compilation A-linkage Area: linking into static, shared libraries and binaries C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@jyn514
Copy link
Member

jyn514 commented May 22, 2020

Problem

          ld.lld: error: undefined symbol: hashbrown::raw::Bucket$LT$T$GT$::as_mut::h17a5616906d4548a
          >>> referenced by map.rs:852 (/cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/map.rs:852)
          >>>               rcc-51c66ac989f8d3c5.4ecfujcnmkq7jcjv.rcgu.o:(hashbrown::map::HashMap$LT$K$C$V$C$S$GT$::insert::ha9fbaa5b9f695ac0) in archive /home/joshua/.local/lib/cargo/target/debug/deps/librcc-51c66ac989f8d3c5.rlib
          
          ld.lld: error: undefined symbol: hashbrown::raw::RawTable$LT$T$GT$::reserve::h5da6b3a04cbac1f7
          >>> referenced by map.rs:583 (/cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/map.rs:583)
          >>>               rcc-51c66ac989f8d3c5.4ecfujcnmkq7jcjv.rcgu.o:(hashbrown::map::HashMap$LT$K$C$V$C$S$GT$::reserve::h6e6157315bd86437) in archive /home/joshua/.local/lib/cargo/target/debug/deps/librcc-51c66ac989f8d3c5.rlib
          
          ld.lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
          collect2: error: ld returned 1 exit status

Steps

I am not sure how to replicate this bug. I found it while compiling jyn514/saltwater@efc37d2 with --all-features. I think it might be related to incremental compilation? I have $CARGO_TARGET_DIR set to a global directory and it has a lot of junk in it, in case that matters. I tried rm -rf /home/joshua/.local/lib/cargo/target/debug/deps/*rcc* without success.

Output of cargo version:

cargo 1.43.0 (3532cf738 2020-03-17) (stable)

@jyn514
Copy link
Member Author

jyn514 commented May 22, 2020

I rebuilt with a clean cache and it fixed the issue 🤷

@alexcrichton alexcrichton transferred this issue from rust-lang/cargo May 22, 2020
@alexcrichton
Copy link
Member

I've transferred this issue to rust-lang/rust since this is unlikely to be a Cargo-specific issue, but thanks for the report!

@jonas-schievink jonas-schievink added A-incr-comp Area: Incremental compilation A-linkage Area: linking into static, shared libraries and binaries C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels May 22, 2020
@jyn514
Copy link
Member Author

jyn514 commented Dec 21, 2020

I have not run into this in a very long time, I'd be ok with closing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-incr-comp Area: Incremental compilation A-linkage Area: linking into static, shared libraries and binaries C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants