Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <dan@debian.org>
To: Thiemo Seufer <ths@networkno.de>
Cc: Alex Gonzalez <alex.gonzalez@packetvision.com>,
	debian-mips@lists.debian.org, linux-mips@linux-mips.org
Subject: Re: ABI incompatibility when building util-linux
Date: Thu, 24 Mar 2005 09:52:01 -0500	[thread overview]
Message-ID: <20050324145201.GA25778@nevyn.them.org> (raw)
In-Reply-To: <20050324120109.GI8876@hattusa.textio>

On Thu, Mar 24, 2005 at 01:01:09PM +0100, Thiemo Seufer wrote:
> Alex Gonzalez wrote:
> > Hi,
> > 
> > When compiling the util-linux-2.12q sources, I get the following linker
> > ABI incompatibility error:
> [snip]
> > mips64-linux-gnu-gcc -c -O2 -pipe -march=rm9000 -mabi=32 -static -mips4 -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED -Wl,-t -Wl,-EB -O2 -fomit-frame-pointer -I../lib -Wall -Wmissing-prototypes -Wstrict-prototypes    -D_FILE_OFFSET_BITS=64 -DSBINDIR=\"/sbin\" -DUSRSBINDIR=\"/usr/sbin\" -DLOGDIR=\"/var/log\" -DVARPATH=\"/var\" -DLOCALEDIR=\"/usr/share/locale\"  getopt.c -o getopt.o
> > mips64-linux-gnu-gcc: -t: linker input file unused because linking not done
> > mips64-linux-gnu-gcc: -EB: linker input file unused because linking not done
> 
> The compiler is broken and fails to recognize -Wl,-t -Wl,-EB as linker
> options.

Actually, the compiler's fine.  It's always issued this warning for
linker options, whether or not they are input files.

> > mips64-linux-gnu-ld -V -static -t -EB getopt.o -o getopt
> > GNU ld version 2.13-mips64linux-031001 20020920
> 
> This toolchain is very old, and unlikely to work correctly for mips64.

It should be binary compatible with current toolchains, more or less;
I've used it before.

The problem is in Alex's environment.  Alex, whatever you're setting to
force use of the cross compilers, it's wrong.  You should _never_ link
directly with ld.  That's the error here.

-- 
Daniel Jacobowitz
CodeSourcery, LLC

      parent reply	other threads:[~2005-03-24 14:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-24 11:25 ABI incompatibility when building util-linux Alex Gonzalez
2005-03-24 12:01 ` Thiemo Seufer
2005-03-24 13:48   ` Kumba
2005-03-24 14:52   ` Daniel Jacobowitz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050324145201.GA25778@nevyn.them.org \
    --to=dan@debian.org \
    --cc=alex.gonzalez@packetvision.com \
    --cc=debian-mips@lists.debian.org \
    --cc=linux-mips@linux-mips.org \
    --cc=ths@networkno.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox