You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@teaclave.apache.org by GitBox <gi...@apache.org> on 2021/04/20 00:09:46 UTC
[GitHub] [incubator-teaclave] duanbing opened a new issue #498: Build with DCAP=on error
duanbing opened a new issue #498:
URL: https://github.com/apache/incubator-teaclave/issues/498
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 ?
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org
[GitHub] [incubator-teaclave] mssun commented on issue #498: Build with DCAP=on error
Posted by GitBox <gi...@apache.org>.
mssun commented on issue #498:
URL: https://github.com/apache/incubator-teaclave/issues/498#issuecomment-876751701
Hi, this bug should be fixed by pining `rocket` to a specific version. https://github.com/apache/incubator-teaclave/blob/314aae5d614703543e748882cebf6b5675f0b2f7/dcap/Cargo.toml#L14
Also, if using our build system, the vendored `rocket` should be used.
I'm closing this issue, please provide more information if still exists. Thanks!
--
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: notifications-unsubscribe@teaclave.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org
[GitHub] [incubator-teaclave] mssun closed issue #498: Build with DCAP=on error
Posted by GitBox <gi...@apache.org>.
mssun closed issue #498:
URL: https://github.com/apache/incubator-teaclave/issues/498
--
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: notifications-unsubscribe@teaclave.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org