You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@teaclave.apache.org by LookForAdmin <no...@github.com> on 2020/05/27 17:58:03 UTC
[apache/incubator-teaclave-sgx-sdk] duplicate lang item in crate
`sgx_tstd` (#242)
```shell
error: duplicate lang item in crate `sgx_tstd` (which `testenclave` depends on): `f32_runtime`.
|
= note: the lang item is first defined in crate `sgx_tstd` (which `serde` depends on)
error: duplicate lang item in crate `sgx_tstd` (which `testenclave`` depends on): `f64_runtime`.
|
= note: the lang item is first defined in crate `sgx_tstd` (which `serde` depends on)
error: duplicate lang item in crate `sgx_tstd` (which `testenclave`` depends on): `panic_impl`.
|
= note: the lang item is first defined in crate `sgx_tstd` (which `serde` depends on)
error: duplicate lang item in crate `sgx_tstd` (which `testenclave`` depends on): `begin_panic`.
|
= note: the lang item is first defined in crate `sgx_tstd` (which `serde` depends on)
error: duplicate lang item in crate `sgx_tstd` (which `testenclave`` depends on): `oom`.
|
= note: the lang item is first defined in crate `sgx_tstd` (which `serde` depends on)
```
Cargo.toml中使用的是:
serde = { git = "https://github.com/mesalock-linux/serde-sgx" }
serde_derive = { git = "https://github.com/mesalock-linux/serde-sgx" }
--
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/242
Re: [apache/incubator-teaclave-sgx-sdk] duplicate lang item in crate
`sgx_tstd` (#242)
Posted by LookForAdmin <no...@github.com>.
I change `sgx_tstd = { git = "https://github.com/baidu/rust-sgx-sdk.git" }` to `sgx_tstd = { rev = "v1.1.2", git = "https://github.com/apache/teaclave-sgx-sdk.git" }` .
Problem solved.
Uh, I thought `https://github.com/baidu/rust-sgx-sdk.git` was ok. But i'm wrong.
--
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/242#issuecomment-635401837
Re: [apache/incubator-teaclave-sgx-sdk] duplicate lang item in crate
`sgx_tstd` (#242)
Posted by Fuga Kato <no...@github.com>.
Recently, I had the same problem.
In my case, I set `sgx_tstd = { rev = "v1.1.2", git = "https://github.com/apache/incubator-teaclave-sgx-sdk.git" }` and it failed.
So, should I keep using the URI `https://github.com/apache/teaclave-sgx-sdk.git` even though it's old?
That's okay, but not straightforward I feel.
--
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/242#issuecomment-685947864
Re: [apache/incubator-teaclave-sgx-sdk] duplicate lang item in crate
`sgx_tstd` (#242)
Posted by LookForAdmin <no...@github.com>.
Closed #242.
--
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/242#event-3383196297
Re: [apache/incubator-teaclave-sgx-sdk] duplicate lang item in crate
`sgx_tstd` (#242)
Posted by Mingshen Sun <no...@github.com>.
You have mixed different std (Rust's std or different version of `sgx_tstd`). Make sure to check your dependencies, all `sgx_std` depdencies should be from same source+tag.
--
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/242#issuecomment-634844769
Re: [apache/incubator-teaclave-sgx-sdk] duplicate lang item in crate
`sgx_tstd` (#242)
Posted by Zha0Chan <no...@github.com>.
whether to contain depend on other third-party libraries without ported?
--
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/242#issuecomment-635055953