Skip to content

Editing proc-macro crate = undefined symbol #47936

@sgrif

Description

@sgrif
Contributor

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.

Activity

nox

nox commented on Feb 4, 2018

@nox
Contributor

I can confirm this happens.

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

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

alexcrichton commented on Mar 6, 2018

@alexcrichton
Member

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

reopened this on Mar 6, 2018
dtolnay

dtolnay commented on Mar 6, 2018

@dtolnay
Member

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

alexcrichton

alexcrichton commented on Mar 6, 2018

@alexcrichton
Member

Oh oops, indeed!

Enselic

Enselic commented on Oct 4, 2023

@Enselic
Member

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-decl-macros-2-0Area: Declarative macros 2.0 (#39412)C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @alexcrichton@Enselic@nox@sgrif@dtolnay

        Issue actions

          Editing proc-macro crate = undefined symbol · Issue #47936 · rust-lang/rust