bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ld generates bogus warning messages about incompatible architectures


From: Andreas Franz Borchert
Subject: ld generates bogus warning messages about incompatible architectures
Date: Thu, 20 Jan 2005 15:07:21 +0100
User-agent: Mutt/1.5.4i

Problem:

ld 2.15.91.0.2 complains about an incompatible architecture when
I try to build a 32-bit elf binary using an ld with 64-bit default
configuration. I get warnings like the following

   ld: warning: i386 architecture of input file 
`/tmp/oberon/ulm-oberon-i386-0.7.9/build/libo.a(UnixWaitConditions.o)' is 
incompatible with i386:x86-64 output

I tried to use the option ``--oformat elf32-i386'', to set the environment
variable GNUTARGET, or to provide an ld script that uses OUTPUT_FORMAT
without success. I always get this message except when I shut ld
silent using the ``--no-warn-mismatch'' option.  In case of the option
``--oformat elf32-i386'', I get working 32-bit binaries despite all these
warnings. (I get, however, non-working 64-bit elf binaries if I just
use the GNUTARGET environment variable or if in case of an ld script).

Any ideas?

Background:

The machine on which I encountered this problem has following
configuration:

adisgast:/tmp/oberon/ulm-oberon-i386-0.7.9 # uname -a
Linux adisgast 2.6.8-24-default #1 Wed Oct 6 09:16:23 UTC 2004 x86_64 x86_64 
x86_64 GNU/Linux
adisgast:/tmp/oberon/ulm-oberon-i386-0.7.9 # cat /etc/SuSE-release
SuSE Linux 9.2 (x86-64)
VERSION = 9.2
adisgast:/tmp/oberon/ulm-oberon-i386-0.7.9 # ld --version
GNU ld version 2.15.91.0.2 20040727 (SuSE Linux)
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
adisgast:/tmp/oberon/ulm-oberon-i386-0.7.9 #

Andreas.

-- 
Dr. Andreas F. Borchert, SAI, Universitaet Ulm | Habe Mut, dich deines
Helmholtzstrasse 18, E02, Tel +49 731 50-23572 | eigenen Verstandes zu
http://www.mathematik.uni-ulm.de/sai/borchert/ | bedienen! -- I. Kant

Attachment: pgpD2KrQ5VHs5.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]