kafka-delta-ingest icon indicating copy to clipboard operation
kafka-delta-ingest copied to clipboard

Issue compiling with dynamic-linking feature enabled

Open 0x91 opened this issue 9 months ago • 2 comments

When trying to compile with the dynamic-linking feature, I get the following error:

Compiling deltalake-core v0.23.1 (https://github.com/buoyant-data/delta-rs?branch=default-engine-rustls#4a0fdea8)
error[E0308]: mismatched types
   --> /Users/charlie.stocker/.cargo/git/checkouts/delta-rs-1e6751910be7a795/4a0fdea/crates/core/src/kernel/models/actions.rs:488:9
    |
487 |     fn try_from(value: &TableFeatures) -> Result<Self, Self::Error> {
    |                                           ------------------------- expected `Result<ReaderFeatures, strum::ParseError>` because of return type
488 |         ReaderFeatures::try_from(value.as_ref())
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `strum::ParseError`, found a different `strum::ParseError`
    |
    = note: `strum::ParseError` and `strum::ParseError` have similar names, but are actually distinct types
note: `strum::ParseError` is defined in crate `strum`
   --> /Users/charlie.stocker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/strum-0.26.3/src/lib.rs:42:1
    |
42  | pub enum ParseError {
    | ^^^^^^^^^^^^^^^^^^^
note: `strum::ParseError` is defined in crate `strum`
   --> /Users/charlie.stocker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/strum-0.20.0/src/lib.rs:35:1
    |
35  | pub enum ParseError {
    | ^^^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `strum` are being used?

error[E0308]: mismatched types
   --> /Users/charlie.stocker/.cargo/git/checkouts/delta-rs-1e6751910be7a795/4a0fdea/crates/core/src/kernel/models/actions.rs:496:9
    |
495 |     fn try_from(value: &TableFeatures) -> Result<Self, Self::Error> {
    |                                           ------------------------- expected `Result<WriterFeatures, strum::ParseError>` because of return type
496 |         WriterFeatures::try_from(value.as_ref())
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `strum::ParseError`, found a different `strum::ParseError`
    |
    = note: `strum::ParseError` and `strum::ParseError` have similar names, but are actually distinct types
note: `strum::ParseError` is defined in crate `strum`
   --> /Users/charlie.stocker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/strum-0.26.3/src/lib.rs:42:1
    |
42  | pub enum ParseError {
    | ^^^^^^^^^^^^^^^^^^^
note: `strum::ParseError` is defined in crate `strum`
   --> /Users/charlie.stocker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/strum-0.20.0/src/lib.rs:35:1
    |
35  | pub enum ParseError {
    | ^^^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `strum` are being used?

For more information about this error, try `rustc --explain E0308`.
error: could not compile `deltalake-core` (lib) due to 2 previous errors

I have no trouble compiling without this feature. The README states that this is required for macOS but I was able to successfully run the project without it.

0x91 avatar Feb 03 '25 18:02 0x91