Closed hardcore-sushi closed 2 years ago
Hi, When building with cargo build --target armv7-linux-androideabi, I get the following error:
cargo build --target armv7-linux-androideabi
.... error: linking with `/home/user/AndroidSDK/ndk/22.0.7026061/toolchains/llvm/prebuilt/linux-x86_64/bin/arm-linux-androideabi-clang` failed: exit status: 1 .... = note: ld: error: undefined symbol: tcgetattr >>> referenced by lib.rs:59 (/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rpassword-5.0.1/src/lib.rs:59) >>> rpassword-f73091e60ac19b5c.rpassword.98878a33-cgu.14.rcgu.o:(rpassword::unix::safe_tcgetattr::h02ddea959d9696bf) in archive /home/user/doby/target/armv7-linux-androideabi/debug/deps/librpassword-f73091e60ac19b5c.rlib ld: error: undefined symbol: tcsetattr >>> referenced by lib.rs:97 (/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rpassword-5.0.1/src/lib.rs:97) >>> rpassword-f73091e60ac19b5c.rpassword.98878a33-cgu.14.rcgu.o:(rpassword::unix::read_password_from_stdin::hfec884aca9f9fc40) in archive /home/user/doby/target/armv7-linux-androideabi/debug/deps/librpassword-f73091e60ac19b5c.rlib >>> referenced by lib.rs:106 (/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rpassword-5.0.1/src/lib.rs:106) >>> rpassword-f73091e60ac19b5c.rpassword.98878a33-cgu.14.rcgu.o:(rpassword::unix::read_password_from_stdin::hfec884aca9f9fc40) in archive /home/user/doby/target/armv7-linux-androideabi/debug/deps/librpassword-f73091e60ac19b5c.rlib clang: error: linker command failed with exit code 1 (use -v to see invocation)
However it works fine when compiling for aarch64-linux-android.
aarch64-linux-android
rpassword: v5.0.1 rustc: v1.56.1 OS: Linux 5.14.0-4-amd64 #1 SMP Debian 5.14.16-1 (2021-11-03) x86_64 GNU/Linux
Thanks!
Looks like no one has had time to work on this issue, I'll go ahead and close it. If you want to work on a fix, let me know and I can re-open it.
Hi, When building with
cargo build --target armv7-linux-androideabi
, I get the following error:However it works fine when compiling for
aarch64-linux-android
.Thanks!