Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

confusing no_std issue: duplicate lang item ... #210

Closed
brenzi opened this issue Feb 29, 2020 · 3 comments
Closed

confusing no_std issue: duplicate lang item ... #210

brenzi opened this issue Feb 29, 2020 · 3 comments

Comments

@brenzi
Copy link

brenzi commented Feb 29, 2020

When building
encointer/encointer-worker@7252e20

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

@brenzi brenzi changed the title confuding no_std issue: duplicate lang item ... confusing no_std issue: duplicate lang item ... Feb 29, 2020
@brenzi
Copy link
Author

brenzi commented Feb 29, 2020

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 or one of the similar issues. I just removed all dev-dependencies in pallet-encointer-ceremonies. To no success

@brenzi
Copy link
Author

brenzi commented Feb 29, 2020

as this is probably not a bug of this sdk, I've filed an issue with cargo:
rust-lang/cargo#7951

@clangenb
Copy link

Turned out to be a false alarm, see: rust-lang/cargo#7951

This can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants