Skip to content

Main builds fail with error: symbol init___rust_ctor___ctor is already defined #6495

@alamb

Description

@alamb

Describe the bug

https://github.com/apache/arrow-datafusion/actions/runs/5125505760/jobs/9218772590

Fails with


error: symbol `init___rust_ctor___ctor` is already defined
   --> datafusion/optimizer/src/scalar_subquery_to_join.rs:311:5
    |
311 |     #[ctor::ctor]
    |     ^^^^^^^^^^^^^
    |
    = note: this error originates in the attribute macro `ctor::ctor` (in Nightly builds, run with -Z macro-backtrace for more info)

error: could not compile `datafusion-optimizer` due to previous error

To Reproduce

If you run cargo update

    Updating ctor v0.2.0 -> v0.2.1

Then the link error will happen

It appears this crate was released about the same time as our CI started failing: https://crates.io/crates/ctor/0.2.1

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions