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 2020/01/28 23:22:52 UTC

[GitHub] [incubator-teaclave-sgx-sdk] shixiongjing opened a new issue #202: Some questions about sample code

shixiongjing opened a new issue #202: Some questions about sample code
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/202
 
 
   Hi, I am new to the project, and have never used Rust before. I am sorry that this question might be naive. 
   
   I just tried to cloned the repo and followed the guide "Use simulation mode for non SGX-enabled machine (includes macOS)" in the readme to run the helloworld example in software mode. But I got several errors during 'make'. The exact errors actually seem straight forward, but I am worried that I got something wrong in the environment, because that was the example from the tutorial and it was expected to run without problems if I did everything right. 
   
   I am running docker on ubuntu 18.04 (tried both docker image 'latest' and 1804:1.0.7), and I have changed the sgx_mode in Makefile to SW. The errors are attached. Any idea on what I did wrong? Please help. Any suggestion is appreciated! 
   
   `error[E0432]: unresolved import `alloc_crate::collections::TryReserveError`
     --> /root/.cargo/git/checkouts/rust-sgx-sdk-fc8771c5c45bde9a/8d9f05a/sgx_tstd/src/collections/mod.rs:35:9
      |
   35 | pub use alloc_crate::collections::TryReserveError;
      |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `TryReserveError` in `collections`
   
   error[E0658]: The `!` type is experimental
      --> /root/.cargo/git/checkouts/rust-sgx-sdk-fc8771c5c45bde9a/8d9f05a/sgx_tstd/src/error.rs:185:16
       |
   185 | impl Error for ! {
       |                ^
       |
       = note: for more information, see https://github.com/rust-lang/rust/issues/35121
       = help: add `#![feature(never_type)]` to the crate attributes to enable
   
   error[E0658]: non exhaustive is an experimental feature
     --> /root/.cargo/git/checkouts/rust-sgx-sdk-fc8771c5c45bde9a/8d9f05a/sgx_tstd/src/io/error.rs:86:1
      |
   86 | #[non_exhaustive]
      | ^^^^^^^^^^^^^^^^^
      |
      = note: for more information, see https://github.com/rust-lang/rust/issues/44109
      = help: add `#![feature(non_exhaustive)]` to the crate attributes to enable
   
   error[E0658]: use of unstable library feature 'todo_macro'
      --> /root/.cargo/git/checkouts/rust-sgx-sdk-fc8771c5c45bde9a/8d9f05a/sgx_tstd/src/lib.rs:109:67
       |
   109 | pub use core::{unreachable, unimplemented, write, writeln, r#try, todo};
       |                                                                   ^^^^
       |
       = note: for more information, see https://github.com/rust-lang/rust/issues/59277
       = help: add `#![feature(todo_macro)]` to the crate attributes to enable
   
   error[E0658]: use of unstable library feature 'mem_take'
      --> /root/.cargo/git/checkouts/rust-sgx-sdk-fc8771c5c45bde9a/8d9f05a/sgx_tstd/src/panicking.rs:266:28
       |
   266 |             let contents = mem::take(self.fill());
       |                            ^^^^^^^^^
       |
       = note: for more information, see https://github.com/rust-lang/rust/issues/61129
       = help: add `#![feature(mem_take)]` to the crate attributes to enable
   
   error[E0308]: mismatched types
      --> /root/.cargo/git/checkouts/rust-sgx-sdk-fc8771c5c45bde9a/8d9f05a/sgx_tstd/src/panicking.rs:236:9
       |
   236 |         &location
       |         ^^^^^^^^^
       |         |
       |         expected struct `core::panic::Location`, found reference
       |         help: consider removing the borrow: `location`
       |
       = note: expected type `core::panic::Location<'_>`
                  found type `&core::panic::Location<'_>`
   
   error[E0308]: mismatched types
      --> /root/.cargo/git/checkouts/rust-sgx-sdk-fc8771c5c45bde9a/8d9f05a/sgx_tstd/src/panicking.rs:357:13
       |
   357 |             &location
       |             ^^^^^^^^^
       |             |
       |             expected struct `core::panic::Location`, found reference
       |             help: consider removing the borrow: `location`
       |
       = note: expected type `core::panic::Location<'_>`
                  found type `&core::panic::Location<'_>`
   
   error: aborting due to 7 previous errors
   
   Some errors have detailed explanations: E0308, E0432, E0658.
   For more information about an error, try `rustc --explain E0308`.
   error: Could not compile `sgx_tstd`.`
   
   =============================
   

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org


[GitHub] [incubator-teaclave-sgx-sdk] shixiongjing opened a new issue #202: Some questions about sample code

Posted by GitBox <gi...@apache.org>.
shixiongjing opened a new issue #202: Some questions about sample code
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/202
 
 
   Hi, I am new to the project, and have never used Rust before. I am sorry that this question might be naive. 
   
   I just tried to cloned the repo and followed the guide "Use simulation mode for non SGX-enabled machine (includes macOS)" in the readme to run the helloworld example in software mode. But I got several errors during 'make'. The exact errors actually seem straight forward, but I am worried that I got something wrong in the environment, because that was the example from the tutorial and it was expected to run without problems if I did everything right. 
   
   I am running docker on ubuntu 18.04 (tried both docker image 'latest' and 1804:1.0.7), and I have changed the sgx_mode in Makefile to SW. The errors are attached. Any idea on what I did wrong? Please help. Any suggestion is appreciated! 
   
   `error[E0432]: unresolved import `alloc_crate::collections::TryReserveError`
     --> /root/.cargo/git/checkouts/rust-sgx-sdk-fc8771c5c45bde9a/8d9f05a/sgx_tstd/src/collections/mod.rs:35:9
      |
   35 | pub use alloc_crate::collections::TryReserveError;
      |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `TryReserveError` in `collections`
   
   error[E0658]: The `!` type is experimental
      --> /root/.cargo/git/checkouts/rust-sgx-sdk-fc8771c5c45bde9a/8d9f05a/sgx_tstd/src/error.rs:185:16
       |
   185 | impl Error for ! {
       |                ^
       |
       = note: for more information, see https://github.com/rust-lang/rust/issues/35121
       = help: add `#![feature(never_type)]` to the crate attributes to enable
   
   error[E0658]: non exhaustive is an experimental feature
     --> /root/.cargo/git/checkouts/rust-sgx-sdk-fc8771c5c45bde9a/8d9f05a/sgx_tstd/src/io/error.rs:86:1
      |
   86 | #[non_exhaustive]
      | ^^^^^^^^^^^^^^^^^
      |
      = note: for more information, see https://github.com/rust-lang/rust/issues/44109
      = help: add `#![feature(non_exhaustive)]` to the crate attributes to enable
   
   error[E0658]: use of unstable library feature 'todo_macro'
      --> /root/.cargo/git/checkouts/rust-sgx-sdk-fc8771c5c45bde9a/8d9f05a/sgx_tstd/src/lib.rs:109:67
       |
   109 | pub use core::{unreachable, unimplemented, write, writeln, r#try, todo};
       |                                                                   ^^^^
       |
       = note: for more information, see https://github.com/rust-lang/rust/issues/59277
       = help: add `#![feature(todo_macro)]` to the crate attributes to enable
   
   error[E0658]: use of unstable library feature 'mem_take'
      --> /root/.cargo/git/checkouts/rust-sgx-sdk-fc8771c5c45bde9a/8d9f05a/sgx_tstd/src/panicking.rs:266:28
       |
   266 |             let contents = mem::take(self.fill());
       |                            ^^^^^^^^^
       |
       = note: for more information, see https://github.com/rust-lang/rust/issues/61129
       = help: add `#![feature(mem_take)]` to the crate attributes to enable
   
   error[E0308]: mismatched types
      --> /root/.cargo/git/checkouts/rust-sgx-sdk-fc8771c5c45bde9a/8d9f05a/sgx_tstd/src/panicking.rs:236:9
       |
   236 |         &location
       |         ^^^^^^^^^
       |         |
       |         expected struct `core::panic::Location`, found reference
       |         help: consider removing the borrow: `location`
       |
       = note: expected type `core::panic::Location<'_>`
                  found type `&core::panic::Location<'_>`
   
   error[E0308]: mismatched types
      --> /root/.cargo/git/checkouts/rust-sgx-sdk-fc8771c5c45bde9a/8d9f05a/sgx_tstd/src/panicking.rs:357:13
       |
   357 |             &location
       |             ^^^^^^^^^
       |             |
       |             expected struct `core::panic::Location`, found reference
       |             help: consider removing the borrow: `location`
       |
       = note: expected type `core::panic::Location<'_>`
                  found type `&core::panic::Location<'_>`
   
   error: aborting due to 7 previous errors
   
   Some errors have detailed explanations: E0308, E0432, E0658.
   For more information about an error, try `rustc --explain E0308`.
   error: Could not compile `sgx_tstd`.`
   
   =============================
   

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org


[GitHub] [incubator-teaclave-sgx-sdk] uraj closed issue #202: Some questions about sample code

Posted by GitBox <gi...@apache.org>.
uraj closed issue #202: Some questions about sample code
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/202
 
 
   

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org


[GitHub] [incubator-teaclave-sgx-sdk] shixiongjing commented on issue #202: Some questions about sample code

Posted by GitBox <gi...@apache.org>.
shixiongjing commented on issue #202: Some questions about sample code
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/202#issuecomment-579544935
 
 
   You are right. I tried nightly when I tried running outside docker earlier and I forgot to switch to nightly in docker...Thanks a lot.

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org


[GitHub] [incubator-teaclave-sgx-sdk] uraj commented on issue #202: Some questions about sample code

Posted by GitBox <gi...@apache.org>.
uraj commented on issue #202: Some questions about sample code
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/202#issuecomment-579521643
 
 
   try `rustup default nightly-2019-11-25` before building the code
   

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org


[GitHub] [incubator-teaclave-sgx-sdk] shixiongjing closed issue #202: Some questions about sample code

Posted by GitBox <gi...@apache.org>.
shixiongjing closed issue #202: Some questions about sample code
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/202
 
 
   

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org