Cross-compiled binary for SAM9X60 run problem

Trying cross compile simple application, when runnig it on devboard, getting
wrong response

-ash: ./dr_daemon: not found`

System information:
Latest OpenWrt branch.
Build with toolchain and SDK. Run from SD card OK system boot up, network working.

SAM9X60 board:

uname -a
Linux DanridaTest 5.15.108 #0 Thu Apr 27 20:26:58 2023 armv5tejl GNU/Linux

then cross compile simple application binary using toolchain and SDK on Ubuntu PC
binary file created, then run file dr_daemon returns
dr_daemon: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/, with debug_info, not stripped
when run from SM9X60 cd /tmp; ./dr_daemon getting

-ash: ./dr_daemon: not found`

ldd ./dr_daemon returns

        /lib/ (0xb6f49000) => /lib/ (0xb6f3a000) => /lib/ (0xb6f49000)

Please can some one point me to the correct solution?
Thank you

That is usually indicative of your binary being built against the wrong libc (as it's the libc not being found).

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.