LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-06-2016, 11:37 AM   #1
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Rep: Reputation: 169Reputation: 169
ld: i386 architecture of input file `editbin.o' is incompatible with i386:x86-64 output


Code example is from here.

https://forum.nasm.us/index.php?topic=2253.0

m
Code:
make
nasm -f elf editbin.asm
nasm -f elf cursor.asm
ld -s -o editbin editbin.o cursor.o
ld: i386 architecture of input file `editbin.o' is incompatible with i386:x86-64 output
ld: i386 architecture of input file `cursor.o' is incompatible with i386:x86-64 output
makefile:2: recipe for target 'editbin' failed
make: *** [editbin] Error 1
Am I getting this because I am using a 64 bit system ?
 
Old 08-06-2016, 12:38 PM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,856
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
Try ld option -m elf_i386
 
Old 08-06-2016, 01:42 PM   #3
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Thanks.
 
  


Reply



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
assembly error: i386 architecture incompatible with i386:x86-64 output rohedin Programming 11 08-11-2015 08:13 AM
i386:86 architecture of input file incompatible with i386 output RutujaY Linux - Newbie 1 09-15-2013 10:29 AM
[SOLVED] .libs/noncopyable.o' is incompatible with i386:x86-64 output Aquarius_Girl Linux - General 11 05-05-2010 09:15 AM
i386 :/x86-64 architecture of input file '*.o' is incompatible with i386 output Fiona Linux - Newbie 1 05-07-2008 07:23 AM
warning: unknown architecture of input file *** incompatible with i386 output johnpaulodonnell Linux - Newbie 5 02-14-2007 04:44 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:57 PM.

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