Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Remove DKG, update to polkadot v1.1.0 #86

Merged
merged 11 commits into from
Dec 12, 2023
Merged

Remove DKG, update to polkadot v1.1.0 #86

merged 11 commits into from
Dec 12, 2023

Conversation

drewstone
Copy link
Contributor

Summary of changes

  • Remove dkg substrate from runtime and as much of it as needed for now. (we need just base light client and verifier pallet, not anchor submitter, which we can build as a precompile)
  • Update to polkadot-v1.1.0

Issues

no_std leak somewhere, sys errors

  error[E0583]: file not found for module `sys`
    --> /Users/drew/.cargo/registry/src/index.crates.io-6f17d22bba15001f/errno-0.3.8/src/lib.rs:26:1
     |
  26 | mod sys;
     | ^^^^^^^^
     |
     = help: to create the module `sys`, create file "/Users/drew/.cargo/registry/src/index.crates.io-6f17d22bba15001f/errno-0.3.8/src/sys.rs" or "/Users/drew/.cargo/registry/src/index.crates.io-6f17d22bba15001f/errno-0.3.8/src/sys/mod.rs"

  error[E0425]: cannot find function `with_description` in module `sys`
    --> /Users/drew/.cargo/registry/src/index.crates.io-6f17d22bba15001f/errno-0.3.8/src/lib.rs:47:14
     |
  47 |         sys::with_description(*self, |desc| {
     |              ^^^^^^^^^^^^^^^^ not found in `sys`

  error[E0425]: cannot find function `with_description` in module `sys`
    --> /Users/drew/.cargo/registry/src/index.crates.io-6f17d22bba15001f/errno-0.3.8/src/lib.rs:58:14
     |
  58 |         sys::with_description(*self, |desc| match desc {
     |              ^^^^^^^^^^^^^^^^ not found in `sys`

  error[E0425]: cannot find value `STRERROR_NAME` in module `sys`
    --> /Users/drew/.cargo/registry/src/index.crates.io-6f17d22bba15001f/errno-0.3.8/src/lib.rs:64:22
     |
  64 |                 sys::STRERROR_NAME,
     |                      ^^^^^^^^^^^^^ not found in `sys`

  error[E0425]: cannot find function `errno` in module `sys`
    --> /Users/drew/.cargo/registry/src/index.crates.io-6f17d22bba15001f/errno-0.3.8/src/lib.rs:95:10
     |
  95 |     sys::errno()
     |          ^^^^^ not found in `sys`

  error[E0425]: cannot find function `set_errno` in module `sys`
     --> /Users/drew/.cargo/registry/src/index.crates.io-6f17d22bba15001f/errno-0.3.8/src/lib.rs:100:10
      |
  100 |     sys::set_errno(err)
      |          ^^^^^^^^^ not found in `sys`

  Some errors have detailed explanations: E0425, E0583.
  For more information about an error, try `rustc --explain E0425`.
  error: could not compile `errno` (lib) due to 6 previous errors
  warning: build failed, waiting for other jobs to finish...
  The following warnings were emitted during compilation:

  warning: src/helpers.c:1:10: fatal error: 'setjmp.h' file not found
  warning: #include <setjmp.h>
  warning:          ^~~~~~~~~~
  warning: 1 error generated.

  error: failed to run custom build command for `wasmtime-runtime v8.0.1`

  Caused by:
    process didn't exit successfully: `/Users/drew/webb/pallet-eth2-light-client/target/debug/wbuild/node-template-runtime/target/release/build/wasmtime-runtime-18480c83287cb3a1/build-script-build` (exit status: 1)
    --- stdout
    cargo:rerun-if-changed=src/helpers.c
    TARGET = Some("wasm32-unknown-unknown")
    OPT_LEVEL = Some("3")
    HOST = Some("aarch64-apple-darwin")
    cargo:rerun-if-env-changed=CC_wasm32-unknown-unknown
    CC_wasm32-unknown-unknown = None
    cargo:rerun-if-env-changed=CC_wasm32_unknown_unknown
    CC_wasm32_unknown_unknown = None
    cargo:rerun-if-env-changed=TARGET_CC
    TARGET_CC = None
    cargo:rerun-if-env-changed=CC
    CC = None
    cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
    CRATE_CC_NO_DEFAULTS = None
    DEBUG = Some("false")
    cargo:rerun-if-env-changed=CFLAGS_wasm32-unknown-unknown
    CFLAGS_wasm32-unknown-unknown = None
    cargo:rerun-if-env-changed=CFLAGS_wasm32_unknown_unknown
    CFLAGS_wasm32_unknown_unknown = None
    cargo:rerun-if-env-changed=TARGET_CFLAGS
    TARGET_CFLAGS = None
    cargo:rerun-if-env-changed=CFLAGS
    CFLAGS = None
    running: "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=wasm32-unknown-unknown" "-Wall" "-Wextra" "-DCFG_TARGET_OS_unknown" "-DCFG_TARGET_ARCH_wasm32" "-o" "/Users/drew/webb/pallet-eth2-light-client/target/debug/wbuild/node-template-runtime/target/wasm32-unknown-unknown/release/build/wasmtime-runtime-5c9d82fa6476ee21/out/src/helpers.o" "-c" "src/helpers.c"
    cargo:warning=src/helpers.c:1:10: fatal error: 'setjmp.h' file not found

    cargo:warning=#include <setjmp.h>

    cargo:warning=         ^~~~~~~~~~

    cargo:warning=1 error generated.

    exit status: 1

    --- stderr


    error occurred: Command "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=wasm32-unknown-unknown" "-Wall" "-Wextra" "-DCFG_TARGET_OS_unknown" "-DCFG_TARGET_ARCH_wasm32" "-o" "/Users/drew/webb/pallet-eth2-light-client/target/debug/wbuild/node-template-runtime/target/wasm32-unknown-unknown/release/build/wasmtime-runtime-5c9d82fa6476ee21/out/src/helpers.o" "-c" "src/helpers.c" with args "clang" did not execute successfully (status code exit status: 1).

Reference issue to close (if applicable)

  • Closes

Code Checklist

  • Tested
  • Documented

@drewstone drewstone merged commit 0ac9979 into main Dec 12, 2023
1 check passed
@drewstone drewstone deleted the drew/update-v1.1.0 branch December 12, 2023 02:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants