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

link error #34

Open
yueyedeai opened this issue Nov 22, 2021 · 2 comments
Open

link error #34

yueyedeai opened this issue Nov 22, 2021 · 2 comments

Comments

@yueyedeai
Copy link

= note: ld: error: unable to find library -lgcc
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)

error: could not compile adder-ffi due to previous error
[2021-11-22T07:50:36Z INFO cargo_ndk::cli] If the build failed due to a missing target, you can run this command:
[2021-11-22T07:50:36Z INFO cargo_ndk::cli]
[2021-11-22T07:50:36Z INFO cargo_ndk::cli] rustup target install aarch64-linux-android
[cargo-make][1] ERROR - Error while executing command, exit code: 101
[cargo-make][1] WARN - Build Failed.
[cargo-make] ERROR - Error while running duckscript: Source: Unknown Line: 4 - Error while executing command, exit code: 1
[cargo-make] WARN - Build Failed.

@shekohex
Copy link
Owner

what is your platform? also do you have LLVM installed? besides, you should also make sure that you have NDK installed for android.

@antony-jr
Copy link

@yueyedeai This is a bug in cargo-ndk. Downgrade to Android NDK to Version 22.x to fix this. The bug comes in Version 23.

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

3 participants