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/02/01 08:43:17 UTC

[GitHub] [incubator-teaclave-sgx-sdk] brenzi opened a new issue #203: error building sgx_ucrypto

brenzi opened a new issue #203: error building sgx_ucrypto
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/203
 
 
   I'm trying to use `sgx_ucrypto::SgxEccHandle` to verify a signature
   
   [reproduce with this code](https://github.com/scs/substraTEE-node/tree/ra_improvements)
   
   When I do 
   ```
   cargo +nightly-2019-11-25 build
   ```
   I get the following errors:
   ```
   error[E0432]: unresolved imports `libc::size_t`, `libc::c_int`, `libc::c_void`
    --> /home/abrenzikofer/.cargo/git/checkouts/teaclave-sgx-sdk-be25c2ad2f03718d/93c76de/sgx_ucrypto/src/util.rs:1:12
     |
   1 | use libc::{size_t, c_int, c_void};
     |            ^^^^^^  ^^^^^  ^^^^^^ no `c_void` in the root
     |            |       |
     |            |       no `c_int` in the root
     |            no `size_t` in the root
   
   error[E0432]: unresolved imports `libc::EINVAL`, `libc::E2BIG`, `libc::EOVERFLOW`
    --> /home/abrenzikofer/.cargo/git/checkouts/teaclave-sgx-sdk-be25c2ad2f03718d/93c76de/sgx_ucrypto/src/util.rs:2:12
     |
   2 | use libc::{EINVAL, E2BIG, EOVERFLOW};
     |            ^^^^^^  ^^^^^  ^^^^^^^^^ no `EOVERFLOW` in the root
     |            |       |
     |            |       no `E2BIG` in the root
     |            no `EINVAL` in the root
   
   error[E0432]: unresolved import `libc::memset`
    --> /home/abrenzikofer/.cargo/git/checkouts/teaclave-sgx-sdk-be25c2ad2f03718d/93c76de/sgx_ucrypto/src/util.rs:3:5
     |
   3 | use libc::memset;
     |     ^^^^^^^^^^^^ no `memset` in the root
   
   error[E0599]: no function or associated item named `new` found for type `rdrand::RdRand` in the current scope
     --> /home/abrenzikofer/.cargo/git/checkouts/teaclave-sgx-sdk-be25c2ad2f03718d/93c76de/sgx_ucrypto/src/util.rs:54:35
      |
   54 |     let mut rnd = rdrand::RdRand::new().unwrap();
      |                                   ^^^ function or associated item not found in `rdrand::RdRand`
   
   error: aborting due to 4 previous errors
   ```

----------------------------------------------------------------
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] brenzi commented on issue #203: error building sgx_ucrypto

Posted by GitBox <gi...@apache.org>.
brenzi commented on issue #203: error building sgx_ucrypto
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/203#issuecomment-581011893
 
 
   the problem occurred because I was accidentalley building sgx_ucrypto for the target wasm32-unknown-unkown too. Had to fix the toml to make this dependency optional for `std` use case

----------------------------------------------------------------
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] brenzi closed issue #203: error building sgx_ucrypto

Posted by GitBox <gi...@apache.org>.
brenzi closed issue #203: error building sgx_ucrypto
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/203
 
 
   

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