Skip to content

Compilation for mips : #1385

@apmanol

Description

@apmanol

Compilation for mips :
nix-0.14 for broke too.

info: component 'rust-std' for target 'mips-unknown-linux-gnu' is up to date
   Compiling nix v0.14.0
error[E0425]: cannot find value `MADV_SOFT_OFFLINE` in module `libc`
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.14.0/src/sys/mman.rs:143:9
    |
143 |         MADV_SOFT_OFFLINE,
    |         ^^^^^^^^^^^^^^^^^ not found in `libc`
help: possible candidate is found in another module, you can import it into scope
    |
1   | use sys::mman::MmapAdvise::MADV_SOFT_OFFLINE;
    |

error[E0081]: discriminant value `14` already exists
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.14.0/src/macros.rs:197:26
    |
197 |                   $entry = libc::$entry,
    |                            ^^^^
    |                            |
    |                            first use of `14`
    |                            enum already has `14`
    |
   ::: /.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.14.0/src/sys/mman.rs:105:1
    |
105 | / libc_enum!{
106 | |     /// Usage information for a range of memory to allow for performance optimizations by the kernel.
107 | |     ///
108 | |     /// Used by [`madvise`](./fn.madvise.html).
...   |
187 | |     }
188 | | }
    | |_- in this macro invocation

error: aborting due to 2 previous errors


Originally posted by @apmanol in #1365 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions