You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@teaclave.apache.org by GitBox <gi...@apache.org> on 2019/12/22 18:39:54 UTC
[GitHub] [incubator-teaclave-sgx-sdk] brenzi opened a new issue #185: cannot
transmute between types of different sizes, or dependently-sized types
brenzi opened a new issue #185: cannot transmute between types of different sizes, or dependently-sized types
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/185
I'm trying to build the `sgx-types` dependency for [my project](https://github.com/encointer/encointer-app). I get the following error:
```
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
--> /home/abrenzikofer/.cargo/git/checkouts/rust-sgx-sdk-fc8771c5c45bde9a/4508450/sgx_types/src/macros.rs:115:24
|
115 | unsafe{macros::transmute([0u8; $size])}
| ^^^^^^^^^^^^^^^^^
|
::: /home/abrenzikofer/.cargo/git/checkouts/rust-sgx-sdk-fc8771c5c45bde9a/4508450/sgx_types/src/types.rs:1413:1
|
1413 | / impl_struct_default! {
1414 | | sgx_ql_qv_supplemental_t, 120;
1415 | | }
| |_- in this macro invocation
|
= note: source type: `[u8; 120]` (960 bits)
= note: target type: `types::sgx_ql_qv_supplemental_t` (928 bits)
```
I'm building with
```
export CC=i686-linux-android16-clang
cargo +nightly-2019-10-04-x86_64-unknown-linux-gnu build --target i686-linux-android --release
```
The same thing worked with v1.0.9 but it fails with v1.1.0
Also, it works with other targets (armv7-linux-androideabi and aarch64-linux-android)
----------------------------------------------------------------
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: dev-unsubscribe@teaclave.apache.org
For additional commands, e-mail: dev-help@teaclave.apache.org
[GitHub] [incubator-teaclave-sgx-sdk] brenzi commented on issue #185: cannot
transmute between types of different sizes, or dependently-sized types
Posted by GitBox <gi...@apache.org>.
brenzi commented on issue #185: cannot transmute between types of different sizes, or dependently-sized types
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/185#issuecomment-568297149
don't know. anyway, I found a workaround. The sgx-types dependency can be avoided for my android crate, so that's what I did.
----------------------------------------------------------------
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: dev-unsubscribe@teaclave.apache.org
For additional commands, e-mail: dev-help@teaclave.apache.org
[GitHub] [incubator-teaclave-sgx-sdk] dingelish commented on issue #185:
cannot transmute between types of different sizes, or dependently-sized types
Posted by GitBox <gi...@apache.org>.
dingelish commented on issue #185: cannot transmute between types of different sizes, or dependently-sized types
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/185#issuecomment-568291829
Is this [rust isssue #61956](https://github.com/rust-lang/rust/issues/61956#issuecomment-503626904)?
----------------------------------------------------------------
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: dev-unsubscribe@teaclave.apache.org
For additional commands, e-mail: dev-help@teaclave.apache.org