I also faced this issue. On my beaglebone with Ubuntu, the crosscompiled 
binary file can't run. It shows: No such file or directory.
Finally I found a way to solve this issue. The cause is some runtime 
library can't be found in beaglebone.
Check which library lack: Use ldd command

ubuntu@arm:~$ ldd S1
    libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 
(0xb6e8d000)
    libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb6e6a000)
    libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6d86000)
    libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6d1b000)
    /lib/ld-linux-armhf.so.3 (0xb6f44000)

I check the library, libc.so.6 not found. After search it in ubuntu 
package, the package name is: 
 libc6-armhf-cross 
<http://packages.ubuntu.com/zh-tw/raring/libc6-armhf-cross><http://packages.ubuntu.com/zh-tw/raring/libc6-armel-cross>

Install the package, the issue is solved.


> 2013/10/1 Jesper We <[email protected] <javascript:>>
>
>> OK, I researched this a bit more... It seems the eabihf ABI is newer, and 
>> incompatible with eabi.
>> There has been some recent work in making busybox recognize this and give 
>> better error messages: 
>> http://buildroot-busybox.2317881.n4.nabble.com/PATCH-toolchain-check-ARM-EABI-vs-EABIhf-for-external-toolchains-td48596.html
>>
>> Couldn't find any pre-built gcc 4.8 toolchains :-(
>>
>> On the other hand, it turns out my code which caused gcc 4.7 to chrash 
>> was bad, and with 4.8 I got a decent error message instead of a crash. 
>> Which made it possible to fix the code, so now I don't need 4.8 anymore :-D
>>  
>> -- 
>> For more options, visit http://beagleboard.org/discuss
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "BeagleBoard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to