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

android build bug(after commit 0d0a6dd88047337a9b33292c24addfabac5352d5) #253

Closed
caoruijuan13 opened this issue Apr 22, 2022 · 8 comments
Closed

Comments

@caoruijuan13
Copy link

caoruijuan13 commented Apr 22, 2022

Hi, after commit 0d0a6dd, there are some build errors on android platform. errors:

   Compiling palaver v0.2.8
error[E0432]: unresolved import `nix::sys::memfd`
   --> /root/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/palaver-0.2.8/src/file.rs:185:8
    |
185 |             use nix::sys::memfd;
    |                 ^^^^^^^^^^^^^^^ no `memfd` in `sys`

error[E0425]: cannot find function `shm_open` in module `mman`
   --> /root/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/palaver-0.2.8/src/file.rs:213:9
    |
213 |         mman::shm_open(
    |               ^^^^^^^^ not found in `mman`

error[E0425]: cannot find function `shm_unlink` in module `mman`
   --> /root/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/palaver-0.2.8/src/file.rs:226:10
    |
226 |             mman::shm_unlink(name).unwrap();
    |                   ^^^^^^^^^^ not found in `mman`

Some errors have detailed explanations: E0425, E0432.
For more information about an error, try `rustc --explain E0425`.
error: could not compile `palaver` due to 3 previous errors

and

   Compiling procinfo v0.4.2
error[E0308]: mismatched types
   --> /root/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/procinfo-0.4.2/src/pid/status.rs:189:1
    |
189 | named!(parse_umask<mode_t>,     delimited!(tag!("Umask:\t"),     parse_u32_octal,    line_ending));
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u16`, found `u32`
    |
    = note: this error originates in the macro `delimited` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0308`.
error: could not compile `procinfo` due to previous error
@estk
Copy link
Owner

estk commented Apr 22, 2022

Seems related to alecmocatta/palaver#49

@estk
Copy link
Owner

estk commented Apr 22, 2022

@caoruijuan13 can you attach your cargo.lock or the output of cargo tree -p log4rs?

@estk
Copy link
Owner

estk commented Apr 22, 2022

I think this is actually a problem with #232

@estk
Copy link
Owner

estk commented Apr 22, 2022

@caoruijuan13 I think 1.1.1 should work for you, please reopen if the issue is not fixed.

@estk estk closed this as completed Apr 22, 2022
@caoruijuan13
Copy link
Author

cargo tree -p log4rs

log4rs v1.1.0
├── anyhow v1.0.57
├── arc-swap v1.5.0
├── chrono v0.4.19
│ ├── libc v0.2.124
│ ├── num-integer v0.1.44
│ │ └── num-traits v0.2.14
│ │ [build-dependencies]
│ │ └── autocfg v1.1.0
│ │ [build-dependencies]
│ │ └── autocfg v1.1.0
│ ├── num-traits v0.2.14 ()
│ └── time v0.1.44
│ └── libc v0.2.124
├── derivative v2.2.0 (proc-macro)
│ ├── proc-macro2 v1.0.37
│ │ └── unicode-xid v0.2.2
│ ├── quote v1.0.18
│ │ └── proc-macro2 v1.0.37 (
)
│ └── syn v1.0.91
│ ├── proc-macro2 v1.0.37 ()
│ ├── quote v1.0.18 (
)
│ └── unicode-xid v0.2.2
├── fnv v1.0.7
├── humantime v2.1.0
├── libc v0.2.124
├── log v0.4.16
│ ├── cfg-if v1.0.0
│ └── serde v1.0.136
│ └── serde_derive v1.0.136 (proc-macro)
│ ├── proc-macro2 v1.0.37 ()
│ ├── quote v1.0.18 (
)
│ └── syn v1.0.91 ()
├── log-mdc v0.1.0
├── palaver v0.2.8
│ ├── bitflags v1.3.2
│ ├── heapless v0.5.6
│ │ ├── as-slice v0.1.5
│ │ │ ├── generic-array v0.12.4
│ │ │ │ └── typenum v1.15.0
│ │ │ ├── generic-array v0.13.3
│ │ │ │ └── typenum v1.15.0
│ │ │ ├── generic-array v0.14.5
│ │ │ │ └── typenum v1.15.0
│ │ │ │ [build-dependencies]
│ │ │ │ └── version_check v0.9.4
│ │ │ └── stable_deref_trait v1.2.0
│ │ ├── generic-array v0.13.3 (
)
│ │ ├── hash32 v0.1.1
│ │ │ └── byteorder v1.4.3
│ │ └── stable_deref_trait v1.2.0
│ ├── lazy_static v1.4.0
│ ├── libc v0.2.124
│ ├── nix v0.15.0
│ │ ├── bitflags v1.3.2
│ │ ├── cfg-if v0.1.10
│ │ ├── libc v0.2.124
│ │ └── void v1.0.2
│ ├── procinfo v0.4.2
│ │ ├── byteorder v1.4.3
│ │ ├── libc v0.2.124
│ │ └── nom v2.2.1
│ │ [build-dependencies]
│ │ └── rustc_version v0.2.3
│ │ └── semver v0.9.0
│ │ └── semver-parser v0.7.0
│ └── typenum v1.15.0
├── parking_lot v0.11.2
│ ├── instant v0.1.12
│ │ └── cfg-if v1.0.0
│ ├── lock_api v0.4.7
│ │ └── scopeguard v1.1.0
│ │ [build-dependencies]
│ │ └── autocfg v1.1.0
│ └── parking_lot_core v0.8.5
│ ├── cfg-if v1.0.0
│ ├── instant v0.1.12 ()
│ ├── libc v0.2.124
│ └── smallvec v1.8.0
├── serde v1.0.136 (
)
├── serde-value v0.7.0
│ ├── ordered-float v2.10.0
│ │ └── num-traits v0.2.14 ()
│ └── serde v1.0.136 (
)
├── serde_json v1.0.79
│ ├── itoa v1.0.1
│ ├── ryu v1.0.9
│ └── serde v1.0.136 ()
├── serde_yaml v0.8.23
│ ├── indexmap v1.8.1
│ │ └── hashbrown v0.11.2
│ │ └── ahash v0.7.6
│ │ ├── getrandom v0.2.6
│ │ │ ├── cfg-if v1.0.0
│ │ │ └── libc v0.2.124
│ │ └── once_cell v1.10.0
│ │ [build-dependencies]
│ │ └── version_check v0.9.4
│ │ [build-dependencies]
│ │ └── autocfg v1.1.0
│ ├── ryu v1.0.9
│ ├── serde v1.0.136 (
)
│ └── yaml-rust v0.4.5
│ └── linked-hash-map v0.5.4
├── thiserror v1.0.30
│ └── thiserror-impl v1.0.30 (proc-macro)
│ ├── proc-macro2 v1.0.37 ()
│ ├── quote v1.0.18 (
)
│ └── syn v1.0.91 (*)
├── thread-id v4.0.0
│ └── libc v0.2.124
└── typemap v0.3.3
└── unsafe-any v0.4.2
└── traitobject v0.1.0

@estk
Copy link
Owner

estk commented Apr 23, 2022

Did you try updating to 1.1.1?

@caoruijuan13
Copy link
Author

It is ok now, thanks a lot. (and there is no 'palaver' in Cargo.lock.)

cargo tree -p log4rs

log4rs v1.1.1
├── anyhow v1.0.57
├── arc-swap v1.5.0
├── chrono v0.4.19
│ ├── libc v0.2.124
│ ├── num-integer v0.1.44
│ │ └── num-traits v0.2.14
│ │ [build-dependencies]
│ │ └── autocfg v1.1.0
│ │ [build-dependencies]
│ │ └── autocfg v1.1.0
│ ├── num-traits v0.2.14 ()
│ └── time v0.1.44
│ └── libc v0.2.124
├── derivative v2.2.0 (proc-macro)
│ ├── proc-macro2 v1.0.37
│ │ └── unicode-xid v0.2.2
│ ├── quote v1.0.18
│ │ └── proc-macro2 v1.0.37 (
)
│ └── syn v1.0.91
│ ├── proc-macro2 v1.0.37 ()
│ ├── quote v1.0.18 (
)
│ └── unicode-xid v0.2.2
├── fnv v1.0.7
├── humantime v2.1.0
├── libc v0.2.124
├── log v0.4.16
│ ├── cfg-if v1.0.0
│ └── serde v1.0.136
│ └── serde_derive v1.0.136 (proc-macro)
│ ├── proc-macro2 v1.0.37 ()
│ ├── quote v1.0.18 (
)
│ └── syn v1.0.91 ()
├── log-mdc v0.1.0
├── parking_lot v0.12.0
│ ├── lock_api v0.4.7
│ │ └── scopeguard v1.1.0
│ │ [build-dependencies]
│ │ └── autocfg v1.1.0
│ └── parking_lot_core v0.9.2
│ ├── cfg-if v1.0.0
│ ├── libc v0.2.124
│ └── smallvec v1.8.0
├── serde v1.0.136 (
)
├── serde-value v0.7.0
│ ├── ordered-float v2.10.0
│ │ └── num-traits v0.2.14 ()
│ └── serde v1.0.136 (
)
├── serde_json v1.0.79
│ ├── itoa v1.0.1
│ ├── ryu v1.0.9
│ └── serde v1.0.136 ()
├── serde_yaml v0.8.23
│ ├── indexmap v1.8.1
│ │ └── hashbrown v0.11.2
│ │ └── ahash v0.7.6
│ │ ├── getrandom v0.2.6
│ │ │ ├── cfg-if v1.0.0
│ │ │ └── libc v0.2.124
│ │ └── once_cell v1.10.0
│ │ [build-dependencies]
│ │ └── version_check v0.9.4
│ │ [build-dependencies]
│ │ └── autocfg v1.1.0
│ ├── ryu v1.0.9
│ ├── serde v1.0.136 (
)
│ └── yaml-rust v0.4.5
│ └── linked-hash-map v0.5.4
├── thiserror v1.0.30
│ └── thiserror-impl v1.0.30 (proc-macro)
│ ├── proc-macro2 v1.0.37 ()
│ ├── quote v1.0.18 (
)
│ └── syn v1.0.91 (*)
├── thread-id v4.0.0
│ └── libc v0.2.124
└── typemap v0.3.3
└── unsafe-any v0.4.2
└── traitobject v0.1.0

@estk
Copy link
Owner

estk commented Apr 23, 2022

Awesome

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

2 participants