Unix/Linux Go Back    


Fedora Fedora linux server

Cannot execute binary file

Fedora


Tags
32bit, arm, binary, fedora, file

Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 09-23-2013
fedora18 fedora18 is offline
Registered User
 
Join Date: Sep 2013
Last Activity: 11 March 2015, 9:22 AM EDT
Posts: 59
Thanks: 3
Thanked 2 Times in 2 Posts
Cannot execute binary file

Hi all,

Probably somewhat of an obvous problem here but i'm no pro.

I just bought a PengPod1000 at pengpod.com
On it I have an image of Fedora 18.

I am trying to run an application I wrote for Fedora 14 32 bit desktop on this tablet. With all permissions setup using chmod but I get "cannot execute binary file".

On the PengPod "uname -a" returns:
Linux localhost.localdomain 3.0.57+ #5 PREEMPT Mon May 13 09:10:40 CEST 2013 armv71 armv71 GNU/Linux

On my development computer "uname -a" returns:
Linux sensorbox2 2.6.35.6-45.fc14.i686 #1 SMP Mon Oct 18 23:56:17 UTC 2010 i686 i686 i386 GNU/Linux

On both systems "file myapp" returns:
myapp: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[shal]=0xeda499c66fce7811472888d5004ec6d45f56712f, not stripped

Other than the two kernels being different versions here the main difference is that the PengPod using the ARM architecture which I am very unfamiliar with.

Any ideas?


Thanks in advance!

---------- Post updated at 02:53 PM ---------- Previous update was at 02:52 PM ----------

the fedora image is at:

barrydegraaff.tk/2013/05/pengpod1000-fedora-18-xfce-armhf.html

Thanks in advance!
Sponsored Links
    #2  
Old Unix and Linux 09-23-2013
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 17 April 2015, 5:55 PM EDT
Location: Saskatchewan
Posts: 20,487
Thanks: 875
Thanked 3,606 Times in 3,370 Posts

Code:
On the PengPod "uname -a" returns:
Linux localhost.localdomain 3.0.57+ #5 PREEMPT Mon May 13 09:10:40 CEST 2013 armv71 armv71 GNU/Linux

On my development computer "uname -a" returns:
Linux sensorbox2 2.6.35.6-45.fc14.i686 #1 SMP Mon Oct 18 23:56:17 UTC 2010 i686 i686 i386 GNU/Linux

You cannot run x86 code on an ARM system, they are totally different. It will have to be recompiled for ARM.
Sponsored Links
    #3  
Old Unix and Linux 09-23-2013
fedora18 fedora18 is offline
Registered User
 
Join Date: Sep 2013
Last Activity: 11 March 2015, 9:22 AM EDT
Posts: 59
Thanks: 3
Thanked 2 Times in 2 Posts
Thanks Corona for the quick reply.
Makes sense.

Is there a typical way to do this?
Or any known sources of information on your end?

At the moment I don't use any development software. Just sublime text and a terminal window.

Thanks
    #4  
Old Unix and Linux 09-23-2013
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 17 April 2015, 5:55 PM EDT
Location: Saskatchewan
Posts: 20,487
Thanks: 875
Thanked 3,606 Times in 3,370 Posts
Quote:
Originally Posted by fedora18 View Post
Thanks Corona for the quick reply.
Makes sense.

Is there a typical way to do this?
Two ways, either install a cross-compiler on the x86 system(probably one made specifically for pengpod) or a native compiler on the ARM machine. I tend to find it more straightforward to do the latter, on any system complete enough to support one.
Quote:
At the moment I don't use any development software. Just sublime text and a terminal window.
Presumably you also use a compiler of some sort, to turn this text into x86 executables.
Sponsored Links
    #5  
Old Unix and Linux 09-23-2013
fedora18 fedora18 is offline
Registered User
 
Join Date: Sep 2013
Last Activity: 11 March 2015, 9:22 AM EDT
Posts: 59
Thanks: 3
Thanked 2 Times in 2 Posts
Ya well i'm using GNU's GCC compiler.
Sponsored Links
    #6  
Old Unix and Linux 09-23-2013
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 17 April 2015, 5:55 PM EDT
Location: Saskatchewan
Posts: 20,487
Thanks: 875
Thanked 3,606 Times in 3,370 Posts
If you installed gcc on your pengpod and compiled the program on it, the result would be a native ARM program.

Cross-compiling is much harder. You have to get everything exactly right or it won't work. Sometimes you're lucky enough to find someone who's released a cross-compiler specific for your device and version.

Last edited by Corona688; 09-23-2013 at 04:01 PM..
Sponsored Links
    #7  
Old Unix and Linux 09-23-2013
fedora18 fedora18 is offline
Registered User
 
Join Date: Sep 2013
Last Activity: 11 March 2015, 9:22 AM EDT
Posts: 59
Thanks: 3
Thanked 2 Times in 2 Posts
Ya I found a compiler version from CodeBench for ARM.
Ill see what happens.
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Unix or Linux Image More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cannot execute binary file pots06 Linux 6 09-14-2011 09:24 AM
cannot execute binary file MarieM UNIX for Dummies Questions & Answers 3 06-14-2010 03:50 AM
can not execute binary file Anu10 SuSE 1 07-30-2009 02:36 AM
cannot execute binary file bhag281 Shell Programming and Scripting 4 03-23-2009 06:38 AM
cannot execute binary file durgaprasadr13 Linux 2 10-16-2008 10:29 AM



All times are GMT -4. The time now is 03:21 PM.