You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@teaclave.apache.org by ieigen-max <no...@github.com.INVALID> on 2021/04/20 00:08:01 UTC

[apache/incubator-teaclave] Build with DCAP on error (#497)

ENV:  
```
ENV DCAP_VERSION 1.9.100.3-bionic1
ENV VERSION 2.12.100.3-bionic1
ENV SGX_DOWNLOAD_URL_BASE "https://download.01.org/intel-sgx/sgx-dcap/1.9/linux/distro/ubuntu18.04-server/"
ENV SGX_LINUX_X64_SDK sgx_linux_x64_sdk_2.12.100.3.bin
```

Platform:  Intel(R) Core(TM) i9-10900K CPU @ 3.70GHz,  FLC enabled

COMMAND:  `cmake ../ -DDCAP=ON && make`


Error:
```
error[E0433]: failed to resolve: could not find `Connection` in `header`
   --> dcap/src/main.rs:138:50
    |
138 |                     .header(http::hyper::header::Connection::close())
    |                                                  ^^^^^^^^^^ not found in `http::hyper::header`
    |
help: consider importing one of these items
    |
34  | use crate::http::private::Connection;
    |
34  | use rocket::http::private::Connection;
    |

error[E0107]: wrong number of lifetime arguments: expected 2, found 1
   --> dcap/src/main.rs:119:10
    |
119 | impl<'r> response::Responder<'r> for QuoteVerificationResponse {
    |          ^^^^^^^^^^^^^^^^^^^^^^^ expected 2 lifetime arguments

error[E0308]: method not compatible with trait
   --> dcap/src/main.rs:120:5
    |
120 |     fn respond_to(self, _: &rocket::Request) -> response::Result<'r> {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
    |
    = note: expected fn pointer `fn(QuoteVerificationResponse, &'r rocket::Request<'_>) -> std::result::Result<rocket::Response<'static>, _>`
               found fn pointer `fn(QuoteVerificationResponse, &rocket::Request<'_>) -> std::result::Result<rocket::Response<'r>, _>`
note: the lifetime `'r` as defined on the impl at 119:6...
   --> dcap/src/main.rs:119:6
    |
119 | impl<'r> response::Responder<'r> for QuoteVerificationResponse {
    |      ^^
    = note: ...does not necessarily outlive the static lifetime

error[E0061]: this function takes 2 arguments but 1 argument was supplied
   --> dcap/src/main.rs:147:22
    |
147 |                     .sized_body(std::io::Cursor::new(payload))
    |                      ^^^^^^^^^^ ----------------------------- supplied 1 argument
    |                      |
    |                      expected 2 arguments







error: aborting due to 4 previous errors

Some errors have detailed explanations: E0061, E0107, E0308, E0433.
For more information about an error, try `rustc --explain E0061`.
error: could not compile `teaclave_dcap_ref_as`

To learn more, run the command again with --verbose.
cp: cannot stat '/app/build2/target/unix/debug/teaclave_dcap_ref_as': No such file or directory
CMakeFiles/unixapp-teaclave_dcap_ref_as.dir/build.make:57: recipe for target 'CMakeFiles/unixapp-teaclave_dcap_ref_as' failed
make[2]: *** [CMakeFiles/unixapp-teaclave_dcap_ref_as] Error 1
CMakeFiles/Makefile2:1317: recipe for target 'CMakeFiles/unixapp-teaclave_dcap_ref_as.dir/all' failed
make[1]: *** [CMakeFiles/unixapp-teaclave_dcap_ref_as.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
```

Do you have any idea about how to fix this ?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/issues/497

Re: [apache/incubator-teaclave] Build with DCAP on error (#497)

Posted by ieigen-max <no...@github.com.INVALID>.
Closed #497.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/issues/497#event-4615952121