Skip to content

Editing proc-macro crate = undefined symbol #47936

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

Open
sgrif opened this issue Feb 1, 2018 · 5 comments
Open

Editing proc-macro crate = undefined symbol #47936

sgrif opened this issue Feb 1, 2018 · 5 comments
Labels
A-decl-macros-2-0 Area: Declarative macros 2.0 (#39412) C-bug Category: This is a bug.

Comments

@sgrif
Copy link
Contributor

sgrif commented Feb 1, 2018

Note: This is with incremental-comp turned off, and a compiler built yesterday.

Occasionally when working on Diesel's codegen crates, I'll get an error like this:

error: dlsym(0x113560e00, __rustc_derive_registrar__55df2b44c5129c66de0914ff53563457_89): symbol not found
   --> diesel/src/lib.rs:121:1
    |
121 | extern crate diesel_derives2;
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The only fix when this happens is to cargo clean. It randomly happens when I change some code, but not 100% of the time.

@nox
Copy link
Contributor

nox commented Feb 4, 2018

I can confirm this happens.

@sgrif As a workaround to not clean everything, I do:

find target -name \*culprit-crate-name\* | xargs rm -rf

@pietroalbini pietroalbini added A-decl-macros-2-0 Area: Declarative macros 2.0 (#39412) C-bug Category: This is a bug. labels Feb 6, 2018
@alexcrichton
Copy link
Member

I think this was fixed by #47494, so closing.

@dtolnay dtolnay reopened this Mar 6, 2018
@dtolnay
Copy link
Member

dtolnay commented Mar 6, 2018

Reopening because #47494 merged on Jan 18 and this was reported on a compiler built Jan 31.

@alexcrichton
Copy link
Member

Oh oops, indeed!

@Enselic
Copy link
Member

Enselic commented Oct 4, 2023

Triage: Is this still a problem? Wanted to ask since 5 years have passed and circumstances might have changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-decl-macros-2-0 Area: Declarative macros 2.0 (#39412) C-bug Category: This is a bug.
Projects
None yet
Development

No branches or pull requests

6 participants