rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
95.25k stars 12.28k forks source link

rust-lld.exe unable to find its libraries #105833

Open VioPaige opened 1 year ago

VioPaige commented 1 year ago

I have looked around a bit, but I can't seem to find (almost?) any solution for solving missing libraries for android compilation. The only solution I was actually able to find was to downgrade to android NDK 22/23, but a framework I'm using requires me to use NDK 25.0.8775105, how should I go about this?

Compilation output:

= note: rust-lld: error: unable to find library -llog
          rust-lld: error: unable to find library -landroid
          rust-lld: error: unable to find library -ldl
          rust-lld: error: unable to find library -llog
          rust-lld: error: unable to find library -lgcc
          rust-lld: error: unable to find library -ldl
          rust-lld: error: unable to find library -lc
          rust-lld: error: unable to find library -lm
jyn514 commented 1 year ago

@VioPaige is this a recent regression? I think we increased the minimum version of the NDK recently, but I'm not sure why that would cause the errors you're seeing here. Firefox compiles to android so this is possible, I'm not sure what they're doing differently though.

Does https://doc.rust-lang.org/stable/rustc/platform-support/android.html#building-the-target help at all?

Kyant0 commented 8 months ago

The same problem for r26