Skip to content

enum already has 96 #19

@Sparika

Description

@Sparika

I'm having the following issue compiling for android arm64-v8a with the following line:

CC_aarch64_linux_android=/home/kcorre/Android/Sdk/ndk/21.0.6113669/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang \
AR_aarch64_linux_android=/home/kcorre/Android/Sdk/ndk/21.0.6113669/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-ar \
cargo build --target aarch64-linux-android
Compiling sysconf v0.3.4
error[E0081]: discriminant value `96` already exists
  --> /home/kcorre/.cargo/registry/src/gitlite.zycloud.tk-1ecc6299db9ec823/sysconf-0.3.4/src/raw.rs:83:19
   |
20 | macro_rules! sc { ($var:ident) => (libc::$var as isize) }
   |                                    ------------------- first use of `96`
...
83 |     Sc2CVersion = 96, // TODO(joshlf): Switch to a libc constant once it's added
   |                   ^^ enum already has `96`

error: aborting due to previous error

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

Sc2CVersion = 96, // TODO(joshlf): Switch to a libc constant once it's added

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