Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-17-2013, 05:16 AM   #1
Registered: Sep 2005
Posts: 850

Rep: Reputation: 30
running a x86 binary on ARM RPI hardware

I have one binary that works fine on x86 CentOS machine but to cut down costs and power, I just had myself a Raspberry PI which is based on ARM and Fedora Remix 17 installed. However, there is one binary that I really need to run. I am not sure if it was compiled in whatever language but it throws an error on me.

-bash: ./goipcron: cannot execute binary file

[root@raspi goip]# file goipcron
goipcron: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped

I also tried installing gcc but it never really worked. Was wondering if there is a translator of some sort without installing any emulator of the whole OS (like qemu).

Any thoughts on this?
Old 01-17-2013, 08:43 AM   #2
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,254

Rep: Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827
The problem is this: A binary coded instruction is assembler. Different instruction sets means that any code is likely to preform one instruction in one system, and a totally different one in the other system. Further, if the x86 instruction takes operands (e.g. mov this, somewhere and the arm one doesn't, (e.g. nop) you will next execute the operands as instructions. That makes for magnificent crashes.
You need the emulator. If you get the source, however, you have a chance because you can compile for arm and have your own smelly rPi exe. You can even compile on the raspberry pi - at least with the debian image.
Old 01-17-2013, 09:16 AM   #3
Registered: Aug 2002
Posts: 16,017

Rep: Reputation: 1849Reputation: 1849Reputation: 1849Reputation: 1849Reputation: 1849Reputation: 1849Reputation: 1849Reputation: 1849Reputation: 1849Reputation: 1849Reputation: 1849
As stated a compiled x86 executable will not run on an ARM processor. Other then compiling it on the PI itself you could setup a cross compiler development system on the x86 CentOS machine assuming you have all the source code etc.
Old 01-18-2013, 10:04 PM   #4
Registered: Sep 2005
Posts: 850

Original Poster
Rep: Reputation: 30
Thanks a lot for the response..


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Network Appliance. ARM vs x86 erhardm Linux - Networking 1 04-13-2011 08:55 PM
[SOLVED] bin file on x86 can be run on ARM? lesca Linux - Hardware 3 09-24-2010 08:00 PM
ARM or x86 fro embedded?? raedbenz Linux - Embedded & Single-board computer 3 12-20-2008 07:26 AM
unified bootloader for x86 and arm Grawp Linux - Hardware 3 09-27-2008 08:34 AM
Cross compiling utftpd on x86 for arm SachinTCS Linux - Software 1 04-13-2007 09:50 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration