tikv / tikv

Distributed transactional key-value database, originally created to complement TiDB
https://tikv.org
Apache License 2.0
15.2k stars 2.14k forks source link

Building master branch failed, error [E0425] #8548

Open Tjianke opened 4 years ago

Tjianke commented 4 years ago

Bug Report

What version of TiKV are you using?

master branch : a757f69

What operating system and CPU are you using?

ProductName: Mac OS X ProductVersion: 10.14.5 BuildVersion: 18F2059

Darwin 18.6.0 Darwin Kernel Version 18.6.0: Sun Apr 28 18:06:45 PDT 2019; root:xnu-4903.261.4~6/RELEASE_X86_64 x86_64

Steps to reproduce

git clone https://github.com/tikv/tikv.git cd tikv make

What did you expect?

Successfully build tikv

What did happened?

Compiling pd_client v0.1.0 (/Users/damn/go/src/github.com/pingcap/tikv/components/pd_client)
warning: the feature `ptr_offset_from` has been stable since 1.47.0 and no longer requires an attribute to enable
  --> components/tidb_query_datatype/src/lib.rs:10:12
   |
10 | #![feature(ptr_offset_from)]
   |            ^^^^^^^^^^^^^^^
   |
   = note: `#[warn(stable_features)]` on by default

   Compiling tidb_query_shared_expr v0.0.1 (/Users/damn/go/src/github.com/pingcap/tikv/components/tidb_query_shared_expr)
   Compiling tidb_query_vec_expr v0.0.1 (/Users/damn/go/src/github.com/pingcap/tikv/components/tidb_query_vec_expr)
error[E0425]: cannot find value `val` in this scope
   --> components/tidb_query_vec_expr/src/impl_cast.rs:979:5
    |
979 |     val.into_inner().to_string().as_bytes()
    |     ^^^ not found in this scope

error[E0425]: cannot find value `val` in this scope
   --> components/tidb_query_vec_expr/src/impl_cast.rs:981:53
    |
981 | cast_as_duration!(BytesRef, cast_bytes_as_duration, val);
    |                                                     ^^^ not found in this scope

error[E0425]: cannot find value `val` in this scope
   --> components/tidb_query_vec_expr/src/impl_cast.rs:985:5
    |
985 |     val.to_string().as_bytes()
    |     ^^^ not found in this scope

error[E0425]: cannot find value `val` in this scope
   --> components/tidb_query_vec_expr/src/impl_cast.rs:987:51
    |
987 | cast_as_duration!(JsonRef, cast_json_as_duration, val.unquote()?.as_bytes());
    |                                                   ^^^ not found in this scope

   Compiling tidb_query_normal_expr v0.0.1 (/Users/damn/go/src/github.com/pingcap/tikv/components/tidb_query_normal_expr)
error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0425`.
error: could not compile `tidb_query_vec_expr`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
warning: 1 warning emitted

    Building [====================================================>  ] 575/587
time-and-fate commented 4 years ago

/label component/build

ZenoTan commented 4 years ago

/label status/waiting

ZenoTan commented 4 years ago

/label sig/tools

5kbpers commented 3 years ago

Sorry for so late reply, does this issue still exist?

Tjianke commented 3 years ago

Sorry for so late reply, does this issue still exist?

after pulling newest master(commit 3a02e7) and make release, following error raised:

make release
cargo build --release --no-default-features --features " jemalloc sse protobuf-codec test-engines-rocksdb"
   Compiling grpcio-sys v0.7.2
   Compiling librocksdb_sys v0.1.0 (https://github.com/tikv/rust-rocksdb.git#954c2a47)
   Compiling file_system v0.1.0 (/Users/damn/go/src/github.com/pingcap/tikv/components/file_system)
error[E0658]: use of unstable library feature 'future_readiness_fns'
  --> components/file_system/src/rate_limiter.rs:35:9
   |
35 |         future::ready(self.request(io_type, io_op, bytes))
   |         ^^^^^^^^^^^^^
   |
   = note: see issue #70921 <https://github.com/rust-lang/rust/issues/70921> for more information
   = help: add `#![feature(future_readiness_fns)]` to the crate attributes to enable

   Compiling rocksdb v0.3.0 (https://github.com/tikv/rust-rocksdb.git#954c2a47)
error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.
error: could not compile `file_system`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
make: *** [release] Error 101