Skip to content

Build error #187

Closed
Closed
@max-sixty

Description

@max-sixty

I'm trying to look at #178, but I get a basic compile error:

cargo build
   Compiling rustversion v1.0.0
   Compiling serde_json v1.0.0
   Compiling arrow-array v43.0.0
   Compiling regex v1.7.3
   Compiling regex-syntax v0.7.3
   Compiling arrayvec v0.5.0
   Compiling serde v1.0.85
   Compiling hashbrown v0.12.0
   Compiling fallible-streaming-iterator v0.1.0
   Compiling fallible-iterator v0.3.0
   Compiling smallvec v1.6.1
error[E0432]: unresolved import `num::complex::ComplexFloat`
  --> /Users/maximilian/.cargo/registry/src/index.crates.io-6f17d22bba15001f/arrow-array-43.0.0/src/arithmetic.rs:21:5
   |
21 | use num::complex::ComplexFloat;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `ComplexFloat` in `complex`

   Compiling cast v0.3.0
   Compiling hashlink v0.8.0
error[E0599]: no method named `powi` found for struct `f16` in the current scope
   --> /Users/maximilian/.cargo/registry/src/index.crates.io-6f17d22bba15001f/arrow-array-43.0.0/src/arithmetic.rs:351:25
    |
351 |                 Ok(self.powi(exp as i32))
    |                         ^^^^ method not found in `f16`
...
380 | native_type_float_op!(f16, f16::ZERO, f16::ONE);
    | ----------------------------------------------- in this macro invocation
    |
    = help: items from traits can only be used if the trait is in scope
    = note: this error originates in the macro `native_type_float_op` (in Nightly builds, run with -Z macro-backtrace for more info)
help: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
    |
18  + use num::Float;
    |
18  + use num::traits::float::FloatCore;
    |
18  + use num::traits::real::Real;
    |

I'm on Rust 1.70.0, on MacOS.

Am I making a basic error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions