You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@teaclave.apache.org by brenzi <no...@github.com> on 2020/02/01 08:43:20 UTC
[apache/incubator-teaclave-sgx-sdk] error building sgx_ucrypto (#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
```
--
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-sgx-sdk/issues/203
Re: [apache/incubator-teaclave-sgx-sdk] error building sgx_ucrypto
(#203)
Posted by brenzi <no...@github.com>.
Closed #203.
--
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-sgx-sdk/issues/203#event-2999230492
Re: [apache/incubator-teaclave-sgx-sdk] error building sgx_ucrypto
(#203)
Posted by brenzi <no...@github.com>.
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
--
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-sgx-sdk/issues/203#issuecomment-581011893