Skip to content

MacOS(10.15.7) build failed #10248

@xiezg

Description

@xiezg

Bug Report

What version of TiKV are you using?

commit: 6c676b0

What operating system and CPU are you using?

Steps to reproduce

What did you expect?

What did happened?

Compiling error_code v0.0.1 (/Users/xiezhenguo/tikv/components/error_code)
Compiling codec v0.0.1 (/Users/xiezhenguo/tikv/components/codec)
Compiling tikv_util v0.1.0 (/Users/xiezhenguo/tikv/components/tikv_util)
error[E0433]: failed to resolve: use of undeclared crate or module cgroup
--> components/tikv_util/src/sys/mod.rs:22:29
|
22 | static ref SELF_CGROUP: cgroup::CGroupSys = cgroup::CGroupSys::default();
| ^^^^^^ use of undeclared crate or module cgroup

error[E0433]: failed to resolve: use of undeclared crate or module cgroup
--> components/tikv_util/src/sys/mod.rs:22:49
|
22 | static ref SELF_CGROUP: cgroup::CGroupSys = cgroup::CGroupSys::default();
| ^^^^^^ use of undeclared crate or module cgroup

error[E0573]: expected type, found static SELF_CGROUP
--> components/tikv_util/src/sys/mod.rs:20:1
|
20 | / lazy_static! {
21 | | #[cfg(target_os = "linux")]
22 | | static ref SELF_CGROUP: cgroup::CGroupSys = cgroup::CGroupSys::default();
23 | | }
| |_^ not a type
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0574]: expected struct, variant or union type, found static SELF_CGROUP
--> components/tikv_util/src/sys/mod.rs:20:1
|
20 | / lazy_static! {
21 | | #[cfg(target_os = "linux")]
22 | | static ref SELF_CGROUP: cgroup::CGroupSys = cgroup::CGroupSys::default();
23 | | }
| |_^ not a struct, variant or union type
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0573]: expected type, found static SELF_CGROUP
--> components/tikv_util/src/sys/mod.rs:20:1
|
20 | / lazy_static! {
21 | | #[cfg(target_os = "linux")]
22 | | static ref SELF_CGROUP: cgroup::CGroupSys = cgroup::CGroupSys::default();
23 | | }
| |_^ not a type
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0573]: expected type, found static SELF_CGROUP
--> components/tikv_util/src/sys/mod.rs:20:1
|
20 | / lazy_static! {
21 | | #[cfg(target_os = "linux")]
22 | | static ref SELF_CGROUP: cgroup::CGroupSys = cgroup::CGroupSys::default();
23 | | }
| |_^ not a type
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 6 previous errors

Some errors have detailed explanations: E0433, E0573, E0574.
For more information about an error, try rustc --explain E0433.
error: could not compile tikv_util

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions