bkmgit commented on PR #13493:
URL: https://github.com/apache/tvm/pull/13493#issuecomment-1328077937

   Several tests fail:
   ```
   TVM/rust/compiler-ext$ cargo test
      Compiling tracing-subscriber v0.2.25
      Compiling bindgen v0.57.0
      Compiling tvm-build v0.2.4
      Compiling tvm-sys v0.1.1-alpha (/home/ubuntu/check_TVM/TVM/rust/tvm-sys)
   error: could not find native static library `tvm`, perhaps an -L flag is 
missing?
   
   error: could not compile `tvm-sys` due to previous error
   ```
   and
   ```
   TVM/rust/tvm-sys$ cargo test
      Compiling tvm-sys v0.1.1-alpha (/home/ubuntu/check_TVM/TVM/rust/tvm-sys)
       Finished test [unoptimized + debuginfo] target(s) in 7.11s
        Running unittests src/lib.rs 
(/home/ubuntu/check_TVM/TVM/rust/target/debug/deps/tvm_sys-c2bb8251f7ebf414)
   
   running 2 tests
   test byte_array::tests::convert ... ok
   test device::tests::device ... ok
   
   test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; 
finished in 0.00s
   
      Doc-tests tvm-sys
   
   running 5 tests
   test src/byte_array.rs - byte_array::ByteArray (line 29) ... FAILED
   test src/device.rs - device (line 26) ... ok
   test src/device.rs - device (line 36) ... ok
   test src/device.rs - device::DeviceType (line 58) ... ok
   test src/packed_func.rs - packed_func::RetValue (line 176) ... ok
   
   failures:
   
   ---- src/byte_array.rs - byte_array::ByteArray (line 29) stdout ----
   error[E0277]: the trait bound `Vec<u8>: From<&&[u8; 5]>` is not satisfied
    --> src/byte_array.rs:31:37
     |
   5 | let barr = tvm_sys::ByteArray::from(&v);
     |            ------------------------ ^^ the trait `From<&&[u8; 5]>` is 
not implemented for `Vec<u8>`
     |            |
     |            required by a bound introduced by this call
     |
     = help: the following other types implement trait `From<T>`:
               <Vec<T, A> as From<Box<[T], A>>>
               <Vec<T, A> as From<VecDeque<T, A>>>
               <Vec<T> as From<&[T]>>
               <Vec<T> as From<&mut [T]>>
               <Vec<T> as From<BinaryHeap<T>>>
               <Vec<T> as From<Cow<'a, [T]>>>
               <Vec<T> as From<[T; N]>>
               <Vec<u8> as From<&str>>
             and 2 others
     = note: required for `&&[u8; 5]` to implement `Into<Vec<u8>>`
     = note: required for `ByteArray` to implement `From<&&[u8; 5]>`
   
   error: aborting due to previous error
   
   For more information about this error, try `rustc --explain E0277`.
   Couldn't compile the test.
   
   failures:
       src/byte_array.rs - byte_array::ByteArray (line 29)
   
   test result: FAILED. 4 passed; 1 failed; 0 ignored; 0 measured; 0 filtered 
out; finished in 3.85s
   
   error: doctest failed, to rerun pass `--doc`
   ```
   These seem to be in other parts of the Rust code. All other Rust tests pass.


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