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/29 13:40:34 UTC
[apache/incubator-teaclave-sgx-sdk] confuding no_std issue: duplicate
lang item ... (#210)
When building
https://github.com/encointer/encointer-worker/commit/7252e20264e63c7dce11470922d7c2965378842e
with
```
cd enclave
make
```
I get an error:
```
error: duplicate lang item in crate `sgx_tstd` (which `palette_support` depends on): `f32_runtime`.
|
= note: first defined in crate `std` (which `pallet_encointer_ceremonies` depends on).
error: duplicate lang item in crate `sgx_tstd` (which `palette_support` depends on): `f64_runtime`.
|
= note: first defined in crate `std` (which `pallet_encointer_ceremonies` depends on).
error: duplicate lang item in crate `sgx_tstd` (which `palette_support` depends on): `panic_impl`.
|
= note: first defined in crate `std` (which `pallet_encointer_ceremonies` depends on).
error: duplicate lang item in crate `sgx_tstd` (which `palette_support` depends on): `begin_panic`.
|
= note: first defined in crate `std` (which `pallet_encointer_ceremonies` depends on).
error: duplicate lang item in crate `sgx_tstd` (which `palette_support` depends on): `oom`.
|
= note: first defined in crate `std` (which `pallet_encointer_ceremonies` depends on).
error: aborting due to 5 previous errors
```
The strange thing is that it is caused by the last commit, introducing the dependency on
https://github.com/encointer/pallet-encointer-ceremonies
but that crate has no dependencies (and no new features) that were not present in the previous commit.
Any help appreciated
--
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/210
Re: [apache/incubator-teaclave-sgx-sdk] confusing no_std issue:
duplicate lang item ... (#210)
Posted by clangenb <no...@github.com>.
Turned out to be a false alarm, see: rust-lang/cargo#7951
This can be closed.
--
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/210#issuecomment-657423987
Re: [apache/incubator-teaclave-sgx-sdk] confusing no_std issue:
duplicate lang item ... (#210)
Posted by Yu Ding <no...@github.com>.
Closed #210.
--
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/210#event-3540680187
Re: [apache/incubator-teaclave-sgx-sdk] confusing no_std issue:
duplicate lang item ... (#210)
Posted by brenzi <no...@github.com>.
`cargo nono check` warns about exactly the same crates in both commits
```
webpki: FAILURE
log: FAILURE
serde_json: FAILURE
sgx-externalities: FAILURE
env_logger: FAILURE
rustls: FAILURE
num-bigint: FAILURE
webpki-roots: FAILURE
substratee-stf: FAILURE
chrono: FAILURE
base64: FAILURE
yasna: FAILURE
serde: FAILURE
bit-vec: FAILURE
rust-base58: FAILURE
```
whereas none of them are dependencies of `pallet-encointer-ceremonies`.
However, `serde` is a `dev-dependency`, but I've already checked if I'm running into [this](https://github.com/rust-lang/cargo/issues/5730) or one of the similar issues. I just removed all dev-dependencies in `pallet-encointer-ceremonies`. To no success
```
serde: FAILURE
```
--
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/210#issuecomment-592948349
Re: [apache/incubator-teaclave-sgx-sdk] confusing no_std issue:
duplicate lang item ... (#210)
Posted by brenzi <no...@github.com>.
as this is probably not a bug of this sdk, I've filed an issue with cargo:
https://github.com/rust-lang/cargo/issues/7951
--
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/210#issuecomment-592950364