crepererum opened a new issue, #3066:
URL: https://github.com/apache/arrow-rs/issues/3066

   **Describe the bug**
   It seems that some crates don't build w/ default features or certain feature 
sets enabled.
   
   **To Reproduce**
   ```console
   $ cargo build -p parquet
   ...
      Compiling arrow-array v26.0.0 (/home/mneumann/src/arrow-rs/arrow-array)
   error[E0432]: unresolved import `num::complex::ComplexFloat`
     --> arrow-array/src/arithmetic.rs:21:5
      |
   21 | use num::complex::ComplexFloat;
      |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `ComplexFloat` in `complex`
   
   error[E0599]: no method named `powi` found for struct `f16` in the current 
scope
      --> arrow-array/src/arithmetic.rs:297:25
       |
   297 |                 Ok(self.powi(exp as i32))
       |                         ^^^^ method not found in `f16`
   ...
   338 | native_type_float_op!(f16, f16::ONE, f16::ZERO);
       | ----------------------------------------------- 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;
       |
   
   error[E0599]: no method named `powi` found for struct `f16` in the current 
scope
      --> arrow-array/src/arithmetic.rs:301:22
       |
   301 |                 self.powi(exp as i32)
       |                      ^^^^ method not found in `f16`
   ...
   338 | native_type_float_op!(f16, f16::ONE, f16::ZERO);
       | ----------------------------------------------- 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;
       |
   
   Some errors have detailed explanations: E0432, E0599.
   For more information about an error, try `rustc --explain E0432`.
   error: could not compile `arrow-array` due to 3 previous errors
   warning: build failed, waiting for other jobs to finish...
   ```
   
   **Expected behavior**
   It builds w/ all feature sets.
   
   **Additional context**
   This was while I tried to run the tests for datafusion, which ended with:
   
   ```console
   $ cargo test --workspace
   ...
      Compiling parquet v26.0.0
   error[E0425]: cannot find function `decompress_to_buffer` in module 
`lz4::block`
      --> 
/home/mneumann/.cargo/registry/src/github.com-1ecc6299db9ec823/parquet-26.0.0/src/compression.rs:361:31
       |
   361 |             match lz4::block::decompress_to_buffer(input_buf, 
Some(required_len), &mut output_buf[offset..]) {
       |                               ^^^^^^^^^^^^^^^^^^^^ not found in 
`lz4::block`
       |
   help: consider importing this function
       |
   332 |     use zstd::bulk::decompress_to_buffer;
       |
   help: if you import `decompress_to_buffer`, refer to it directly
       |
   361 -             match lz4::block::decompress_to_buffer(input_buf, 
Some(required_len), &mut output_buf[offset..]) {
   361 +             match decompress_to_buffer(input_buf, Some(required_len), 
&mut output_buf[offset..]) {
       |
   
   error[E0425]: cannot find function `compress_bound` in module `lz4::block`
      --> 
/home/mneumann/.cargo/registry/src/github.com-1ecc6299db9ec823/parquet-26.0.0/src/compression.rs:372:44
       |
   372 |             let required_len = 
lz4::block::compress_bound(input_buf.len())?;
       |                                            ^^^^^^^^^^^^^^ not found in 
`lz4::block`
   
   error[E0425]: cannot find function `compress_to_buffer` in module 
`lz4::block`
      --> 
/home/mneumann/.cargo/registry/src/github.com-1ecc6299db9ec823/parquet-26.0.0/src/compression.rs:374:31
       |
   374 |             match lz4::block::compress_to_buffer(input_buf, None, 
false, &mut output_buf[offset..]) {
       |                               ^^^^^^^^^^^^^^^^^^ not found in 
`lz4::block`
       |
   help: consider importing this function
       |
   332 |     use zstd::bulk::compress_to_buffer;
       |
   help: if you import `compress_to_buffer`, refer to it directly
       |
   374 -             match lz4::block::compress_to_buffer(input_buf, None, 
false, &mut output_buf[offset..]) {
   374 +             match compress_to_buffer(input_buf, None, false, &mut 
output_buf[offset..]) {
       |
   
      Compiling arrow-flight v26.0.0
   For more information about this error, try `rustc --explain E0425`.
   error: could not compile `parquet` due to 3 previous errors
   warning: build failed, waiting for other jobs to finish...
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to