apache / incubator-teaclave

Apache Teaclave (incubating) is an open source universal secure computing platform, making computation on privacy-sensitive data safe and simple.
https://teaclave.apache.org
Apache License 2.0
757 stars 159 forks source link

Make doc failure #682

Closed henrysun007 closed 1 year ago

henrysun007 commented 1 year ago

I tried to build, execute, deploy, and use Teaclave like this:

make doc

I expected to see this happen: build successfully

Instead, this happened: lots of errors

A snapshot of the logs is:

   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-1.3.0/src/bytes.rs:255:9                                                                                                         [129/1967]
    |
255 |         assert!(
    |         ^^^^^^

error: cannot find macro `is_x86_feature_detected` in this scope
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/memchr-2.5.0/src/memchr/x86/mod.rs:45:48
    |
45  |                   if cfg!(memchr_runtime_avx) && is_x86_feature_detected!("avx2") {
    |                                                  ^^^^^^^^^^^^^^^^^^^^^^^
...
129 | /     unsafe_ifunc!(
130 | |         fn(u8, u8, &[u8]) -> Option<usize>,
131 | |         memrchr2,
132 | |         haystack,
133 | |         n1,
134 | |         n2
135 | |     )
    | |_____- in this macro invocation
    |
    = note: this error originates in the macro `unsafe_ifunc` (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find macro `assert_eq` in this scope
    --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/byteorder-1.4.3/src/lib.rs:1947:9
     |
1947 |         assert_eq!(size * $src.len(), $dst.len());
     |         ^^^^^^^^^
...
2110 |             unsafe_write_slice_native!(src, dst, u64);
     |             ----------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `unsafe_write_slice_native` (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `derive` in this scope
  --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-1.3.0/src/buf/writer.rs:10:3
   |
10 | #[derive(Debug)]
   |   ^^^^^^

error: cannot find macro `cfg` in this scope
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/memchr-2.5.0/src/memchr/x86/mod.rs:47:27
    |
47  |                   } else if cfg!(memchr_runtime_sse2) {
    |                             ^^^