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

staking-pool-factory tests depend on dynasm which throws error[E0658]: use of unstable library feature 'proc_macro_diagnostic' #226

Open
eliotstock opened this issue May 10, 2023 · 0 comments

Comments

@eliotstock
Copy link

Steps to repro:

  • git clone [email protected]:near/core-contracts.git
  • cd staking-pool-factory
  • ./build.sh
  • ./test.sh

My dev env:

$rustup show
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/e/.rustup

installed toolchains
--------------------

stable-x86_64-unknown-linux-gnu (default)
nightly-x86_64-unknown-linux-gnu
1.68.2-x86_64-unknown-linux-gnu

installed targets for active toolchain
--------------------------------------

wasm32-unknown-unknown
x86_64-unknown-linux-gnu

active toolchain
----------------

stable-x86_64-unknown-linux-gnu (default)
rustc 1.69.0 (84c898d65 2023-04-16)

Test errors:

$./test.sh 
    Finished release [optimized] target(s) in 0.05s
   Compiling libc v0.2.76
   Compiling proc-macro2 v1.0.19
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.39
   Compiling autocfg v1.0.1
   Compiling cfg-if v0.1.10
   Compiling serde_derive v1.0.115
   Compiling serde v1.0.115
   Compiling typenum v1.12.0
   Compiling byteorder v1.3.4
   Compiling hashbrown v0.8.2
   Compiling indexmap v1.5.1
   Compiling lazy_static v1.4.0
   Compiling version_check v0.9.2
   Compiling ryu v1.0.5
   Compiling serde_json v1.0.57
   Compiling quote v1.0.7
   Compiling memchr v2.3.3
   Compiling itoa v0.4.6
   Compiling num-traits v0.2.12
   Compiling num-integer v0.1.43
   Compiling byte-tools v0.3.1
   Compiling bitflags v1.2.1
   Compiling subtle v2.2.3
   Compiling generic-array v0.12.3
   Compiling aho-corasick v0.7.13
   Compiling jobserver v0.1.21
   Compiling cc v1.0.59
   Compiling digest v0.8.1
   Compiling block-padding v0.1.5
   Compiling thread_local v1.0.1
   Compiling num-bigint v0.2.6
   Compiling opaque-debug v0.2.3
   Compiling regex-syntax v0.6.18
   Compiling getrandom v0.1.14
   Compiling block-buffer v0.7.3
   Compiling num-rational v0.2.4
   Compiling arrayvec v0.5.1
   Compiling log v0.4.11
   Compiling arrayref v0.3.6
   Compiling fake-simd v0.1.2
   Compiling sha2 v0.8.2
   Compiling rand_core v0.5.1
   Compiling generic-array v0.14.4
   Compiling smallvec v1.4.2
   Compiling ppv-lite86 v0.2.9
   Compiling glob v0.3.0
   Compiling bs58 v0.3.1
   Compiling libloading v0.5.2
   Compiling rand_chacha v0.2.2
   Compiling atty v0.2.14
   Compiling nom v5.1.2
   Compiling regex v1.3.9
   Compiling base64 v0.11.0
   Compiling clang-sys v0.29.3
   Compiling matches v0.1.8
   Compiling quick-error v1.2.3
   Compiling tinyvec v0.3.4
   Compiling humantime v1.3.0
   Compiling unicode-bidi v0.3.4
   Compiling rand v0.7.3
   Compiling unicode-normalization v0.1.13
   Compiling blake3 v0.3.6
   Compiling clear_on_drop v0.2.4
   Compiling crunchy v0.2.2
   Compiling fs_extra v1.2.0
   Compiling termcolor v1.1.0
   Compiling semver-parser v0.7.0
   Compiling unicode-width v0.1.8
   Compiling hex v0.4.2
   Compiling textwrap v0.11.0
   Compiling borsh-derive-internal v0.7.1
   Compiling borsh-schema-derive-internal v0.7.1
   Compiling semver v0.9.0
   Compiling jemalloc-sys v0.3.2
   Compiling env_logger v0.7.1
   Compiling idna v0.2.0
   Compiling digest v0.9.0
   Compiling crypto-mac v0.8.0
   Compiling parity-secp256k1 v0.7.0
   Compiling keccak v0.1.0
   Compiling vec_map v0.8.2
   Compiling zeroize v1.1.0
   Compiling static_assertions v1.1.0
   Compiling strsim v0.8.0
   Compiling subtle v1.0.0
   Compiling percent-encoding v2.1.0
   Compiling ansi_term v0.11.0
   Compiling bindgen v0.54.0
   Compiling constant_time_eq v0.1.5
   Compiling clap v2.33.3
   Compiling url v2.1.1
   Compiling crypto-mac v0.7.0
   Compiling curve25519-dalek v2.1.0
   Compiling sha3 v0.8.2
   Compiling rustc_version v0.2.3
   Compiling cexpr v0.4.0
   Compiling borsh-derive v0.7.1
   Compiling stream-cipher v0.3.2
   Compiling which v3.1.1
   Compiling nix v0.15.0
   Compiling lazycell v1.3.0
   Compiling rustc-hex v2.1.0
   Compiling shlex v0.1.1
   Compiling reed-solomon-erasure v4.0.2
   Compiling scopeguard v1.1.0
   Compiling rustc-hash v1.1.0
   Compiling borsh v0.7.1
   Compiling target-lexicon v0.10.0
   Compiling peeking_take_while v0.1.2
   Compiling lock_api v0.3.4
   Compiling uint v0.8.5
   Compiling c2-chacha v0.2.4
   Compiling ed25519-dalek v1.0.0-pre.3
   Compiling blake2 v0.8.1
   Compiling fixed-hash v0.6.1
   Compiling parking_lot_core v0.7.2
   Compiling time v0.1.44
   Compiling stable_deref_trait v1.2.0
   Compiling if_chain v1.0.0
   Compiling void v1.0.2
   Compiling owning_ref v0.4.1
   Compiling parking_lot v0.10.2
   Compiling primitive-types v0.7.2
   Compiling easy-ext v0.2.3
   Compiling smart-default v0.6.0
   Compiling derive_more v0.99.9
   Compiling memmap v0.7.0
   Compiling errno v0.2.6
   Compiling page_size v0.4.2
   Compiling heapsize v0.4.2
   Compiling protobuf v2.17.0
   Compiling wasmparser v0.51.4
   Compiling dynasmrt v0.5.2
   Compiling dynasm v0.5.2
   Compiling thiserror-impl v1.0.20
   Compiling once_cell v1.4.1
   Compiling unicode-segmentation v1.6.0
   Compiling librocksdb-sys v6.10.2 (https://github.com/nearprotocol/rust-rocksdb?branch=disable-thread#44592812)
   Compiling prometheus v0.8.0
   Compiling heck v0.3.1
error[E0658]: use of unstable library feature 'proc_macro_diagnostic'
   --> /home/e/.cargo/registry/src/github.com-1ecc6299db9ec823/dynasm-0.5.2/src/common.rs:247:10
    |
247 |     span.error(msg).emit();
    |          ^^^^^
    |
    = note: see issue #54140 <https://github.com/rust-lang/rust/issues/54140> for more information

error[E0658]: use of unstable library feature 'proc_macro_diagnostic'
   --> /home/e/.cargo/registry/src/github.com-1ecc6299db9ec823/dynasm-0.5.2/src/common.rs:247:21
    |
247 |     span.error(msg).emit();
    |                     ^^^^
    |
    = note: see issue #54140 <https://github.com/rust-lang/rust/issues/54140> for more information

   Compiling cached v0.12.0
   Compiling thiserror v1.0.20
   Compiling wee_alloc v0.4.5
   Compiling parity-wasm v0.41.0
error[E0658]: use of unstable library feature 'proc_macro_span'
   --> /home/e/.cargo/registry/src/github.com-1ecc6299db9ec823/dynasm-0.5.2/src/lib.rs:252:19
    |
252 |     let id = span.source_file().path();
    |                   ^^^^^^^^^^^
    |
    = note: see issue #54725 <https://github.com/rust-lang/rust/issues/54725> for more information

error[E0658]: use of unstable library feature 'proc_macro_span'
   --> /home/e/.cargo/registry/src/github.com-1ecc6299db9ec823/dynasm-0.5.2/src/lib.rs:252:33
    |
252 |     let id = span.source_file().path();
    |                                 ^^^^
    |
    = note: see issue #54725 <https://github.com/rust-lang/rust/issues/54725> for more information

For more information about this error, try `rustc --explain E0658`.
error: could not compile `dynasm` due to 4 previous errors
warning: build failed, waiting for other jobs to finish...
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

1 participant