LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-15-2013, 07:13 AM   #1
RutujaY
LQ Newbie
 
Registered: Sep 2013
Posts: 1

Rep: Reputation: Disabled
i386:86 architecture of input file incompatible with i386 output


I am trying to assemble a program using nasm on fedora 18.
When I first used the command
nasm -f elf64 program.asm
it worked correctly but when i uased the command
ld -s -o program program.o
it gave me an error
i386:86 architecture of input file incompatible with i386 output

Please help me with this...!!!!
 
Old 09-15-2013, 10:29 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,678

Rep: Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258
It sounds like your system as installed is a 686 (ie a 32 bit system).

You can't link a 64 bit object file with 32 bit libraries.

Try dropping the -f elf64 option and see what happens.
 
1 members found this post helpful.
  


Reply


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
assembly error: i386 architecture incompatible with i386:x86-64 output rohedin Programming 11 08-11-2015 08:13 AM
Help ! Package Architecture (uclibc-linux-i386) does not match system (i386) blink182 Debian 1 04-17-2011 09:05 AM
/usr/bin/ld: warning: i386 architecture of input file nasridine Linux - Software 2 07-23-2010 11:14 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


All times are GMT -5. The time now is 01:16 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration