Error message when running "make" command: /usr/bin/ld: i386 architecture of input file is incompatible with i386:x86-64 output
Posted
by
user784637
on Ask Ubuntu
See other posts from Ask Ubuntu
or by user784637
Published on 2011-09-07T21:05:16Z
Indexed on
2013/07/02
5:14 UTC
Read the original article
Hit count: 271
I am unable to create a working executable file by running the make command in a tree previously built on an i386 machine. I'm getting an error message in the form of
me@me-desktop:~$ make
/usr/bin/ld: i386 architecture of input file `../.. /Lib/libProgram.a(something.o)' is incompatible with i386:x86-64 output
I've been told and reassured that this program has been tested and successfully compiled on 64-bit Fedora.
I'm running a 64-bit machine
me@me-desktop:~$ uname -m
x86_64
I'm running Ubuntu 10.04
me@me-desktop:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.3 LTS
Release: 10.04
Codename: lucid
I'm using g++
# me@me-desktop:~$ g++ --version
g++ (Ubuntu 4.4.3-4ubuntu5) 4.4.3
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I'm also using libtool
# me@me-desktop:~$ libtool --version
ltmain.sh (GNU libtool) 2.2.6b
Written by Gordon Matzigkeit <[email protected]>, 1996
Any clues as to what is going wrong?
© Ask Ubuntu or respective owner