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

enum already has 96 #19

Open
Sparika opened this issue Mar 13, 2020 · 0 comments
Open

enum already has 96 #19

Sparika opened this issue Mar 13, 2020 · 0 comments

Comments

@Sparika
Copy link

Sparika commented Mar 13, 2020

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/github.com-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

@Sparika Sparika changed the title enum already as 96 enum already has 96 Mar 13, 2020
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

1 participant