On Mon, Feb 5, 2024 at 11:29 AM She Bu <
guzheny...@gmail.com> wrote:
>
> Thanks for getting back to me,
>
> I know what is linker/linker64 runs on Android device.
>
> I can point directly to this problem occurring in building Node.js for the Android platform (especially for the ARM architecture).
>
> Using arm64 as the target architecture, for example, during some cross-compilation process the build produced a binary, icupkg: ELF 64-bit LSB pie executable ... interrupter /system/bin/linker64 ....
>
> And qemu-aarch64 needs to execute this binary, so it needs linker64.
>
> We tried to copy linker64 from the Android device to the appropriate path, and the project compiled.
yes, but it probably got the wrong results --- typically when a
generated binary is run during a build, it's for a configure-style
test. if you're running the wrong architecture/OS binary, you'll get a
"fail" that doesn't actually represent what's available on the device.
this is a classic mistake when people haven't taken cross-compilation
into account. you'll want to check the resulting configuration and/or
talk to the maintainer of the build about fixing it for
cross-compilation.
>> You received this message because you are subscribed to a topic in the Google Groups "android-ndk" group.
>> To unsubscribe from this topic, visit
https://groups.google.com/d/topic/android-ndk/3Ep6zD3xxSY/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
android-ndk...@googlegroups.com.
>> To view this discussion on the web visit
https://groups.google.com/d/msgid/android-ndk/CAH1xqgmeVuFn%3Dpg5XGpYYmomVCKs%3DqUDR0hrigdqd-6qPkAo2w%40mail.gmail.com.
>
> --
> You received this message because you are subscribed to the Google Groups "android-ndk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
android-ndk...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/android-ndk/CAN_N8jYNEs_AvmPcqyj6pUoDb9fh8Yur9XVtD67YfHSE%2BXeryA%40mail.gmail.com.