Hello, I am new to linux. I tried to built program on my host machine and cross compiled it for Beglebone Black. While execing it I got an error saying "-bash: file not find". On detail inspection using file command I got following message -
[list=]root@beaglebone:/tmp# file ./Output_Target
./Output_Target: ELF 32-bit LSB executable, ARM, version 1 (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=0x296bbb3230b99e1c1a67ccb35f5d0aa758c45fd7, not stripped[/list]
Now if I build the same program using vi or vim editor on Beaglebone Black itself using remote access, it work fine. And using file command gives following message -
[list=]root@beaglebone:/tmp# file ./a.out
./a.out: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1]=0x126f779ebfb880ced73f2b15926608c4b2ba5f26, not stripped[/list].
Please suggest me how to make the cross compilation work. As it can be seen the difference is between GNU/Linux version.