yjshen opened a new issue #731:
URL: https://github.com/apache/arrow-datafusion/issues/731


   **Describe the bug**
   The master branch cannot compile with `--features simd` because of 
arrow-4.4.0 crate.
   
   **To Reproduce**
   ```shell
   rustup default nightly
   rustup update
   cargo build --features=simd
   ```
   
   *output*
   
   ```
   error[E0425]: cannot find function `bitwise_bin_op_simd_helper` in this scope
      --> 
/Users/shenyijie/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-4.4.0/src/buffer/ops.rs:258:9
       |
   125 | / pub fn bitwise_bin_op_helper<F>(
   126 | |     left: &Buffer,
   127 | |     left_offset_in_bits: usize,
   128 | |     right: &Buffer,
   ...   |
   152 | |     buffer.into()
   153 | | }
       | |_- similarly named function `bitwise_bin_op_helper` defined here
   ...
   258 |           bitwise_bin_op_simd_helper(
       |           ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar 
name exists: `bitwise_bin_op_helper`
   
   error[E0425]: cannot find function `bitwise_bin_op_simd_helper` in this scope
      --> 
/Users/shenyijie/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-4.4.0/src/buffer/ops.rs:369:9
       |
   125 | / pub fn bitwise_bin_op_helper<F>(
   126 | |     left: &Buffer,
   127 | |     left_offset_in_bits: usize,
   128 | |     right: &Buffer,
   ...   |
   152 | |     buffer.into()
   153 | | }
       | |_- similarly named function `bitwise_bin_op_helper` defined here
   ...
   369 |           bitwise_bin_op_simd_helper(
       |           ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar 
name exists: `bitwise_bin_op_helper`
   
   error[E0412]: cannot find type `ChunksExact` in this scope
      --> 
/Users/shenyijie/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-4.4.0/src/compute/kernels/arithmetic.rs:521:18
       |
   521 |     left_chunks: ChunksExact<T::Native>,
       |                  ^^^^^^^^^^^ not found in this scope
       |
   help: consider importing one of these items
       |
   25  | use core::slice::ChunksExact;
       |
   25  | use std::slice::ChunksExact;
       |
   
   error[E0412]: cannot find type `ChunksExact` in this scope
      --> 
/Users/shenyijie/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-4.4.0/src/compute/kernels/arithmetic.rs:522:19
       |
   522 |     right_chunks: ChunksExact<T::Native>,
       |                   ^^^^^^^^^^^ not found in this scope
       |
   help: consider importing one of these items
       |
   25  | use core::slice::ChunksExact;
       |
   25  | use std::slice::ChunksExact;
       |
   
   error[E0412]: cannot find type `ChunksExactMut` in this scope
      --> 
/Users/shenyijie/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-4.4.0/src/compute/kernels/arithmetic.rs:523:20
       |
   523 |     result_chunks: ChunksExactMut<T::Native>,
       |                    ^^^^^^^^^^^^^^ not found in this scope
       |
   help: consider importing one of these items
       |
   25  | use core::slice::ChunksExactMut;
       |
   25  | use std::slice::ChunksExactMut;
       |
   
   error[E0412]: cannot find type `ChunksExact` in this scope
      --> 
/Users/shenyijie/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-4.4.0/src/compute/kernels/arithmetic.rs:587:19
       |
   587 |     array_chunks: ChunksExact<T::Native>,
       |                   ^^^^^^^^^^^ not found in this scope
       |
   help: consider importing one of these items
       |
   25  | use core::slice::ChunksExact;
       |
   25  | use std::slice::ChunksExact;
       |
   
   error[E0412]: cannot find type `ChunksExactMut` in this scope
      --> 
/Users/shenyijie/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-4.4.0/src/compute/kernels/arithmetic.rs:589:20
       |
   589 |     result_chunks: ChunksExactMut<T::Native>,
       |                    ^^^^^^^^^^^^^^ not found in this scope
       |
   help: consider importing one of these items
       |
   25  | use core::slice::ChunksExactMut;
       |
   25  | use std::slice::ChunksExactMut;
       |
   
   error[E0433]: failed to resolve: use of undeclared type `MutableBuffer`
      --> 
/Users/shenyijie/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-4.4.0/src/compute/kernels/arithmetic.rs:664:22
       |
   664 |     let mut result = 
MutableBuffer::new(buffer_size).with_bitset(buffer_size, false);
       |                      ^^^^^^^^^^^^^ not found in this scope
       |
   help: consider importing this struct
       |
   25  | use crate::buffer::MutableBuffer;
       |
   
   error[E0433]: failed to resolve: use of undeclared type `MutableBuffer`
      --> 
/Users/shenyijie/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-4.4.0/src/compute/kernels/arithmetic.rs:895:22
       |
   895 |     let mut result = 
MutableBuffer::new(buffer_size).with_bitset(buffer_size, false);
       |                      ^^^^^^^^^^^^^ not found in this scope
       |
   help: consider importing this struct
       |
   25  | use crate::buffer::MutableBuffer;
       |
   
   error[E0220]: associated type `Simd` not found for `T`
      --> 
/Users/shenyijie/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-4.4.0/src/compute/kernels/arithmetic.rs:456:16
       |
   456 | ) -> Result<T::Simd>
       |                ^^^^ associated type `Simd` not found
   
   error[E0220]: associated type `Simd` not found for `T`
      --> 
/Users/shenyijie/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-4.4.0/src/compute/kernels/arithmetic.rs:454:14
       |
   454 |     left: T::Simd,
       |              ^^^^ associated type `Simd` not found
   
   error[E0220]: associated type `Simd` not found for `T`
      --> 
/Users/shenyijie/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-4.4.0/src/compute/kernels/arithmetic.rs:455:15
       |
   455 |     right: T::Simd,
       |               ^^^^ associated type `Simd` not found
   
   Some errors have detailed explanations: E0220, E0412, E0425, E0433.
   For more information about an error, try `rustc --explain E0220`.
   error: could not compile `arrow` due to 12 previous errors
   ```
   
   **Expected behavior**
   No compilation error.
   
   **Additional context**
   I also install the specific nightly version 2021-07-04 as suggested in 
https://github.com/apache/arrow-rs/issues/458 but fails either.


-- 
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