bug-binutils
[Top][All Lists]
Advanced

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

Re: Installation problems binutils-2.18 (part 2)


From: Brian Dessent
Subject: Re: Installation problems binutils-2.18 (part 2)
Date: Tue, 08 Jul 2008 13:08:30 -0700

wim wrote:

> About the output of the following command:
> gcc -print-prog-name=as
> 
> The output is simply:
> 
> as

That was meant to be one single command:

`gcc -print-prog-name=as` --version

But anyway, that doesn't really matter.

> address@hidden:/bin> as --version
> GNU assembler 2.9
> Copyright 1997 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.
> This assembler was configured for a target of `i686-pc-linux-gnu'.

So you somehow have a modern gcc 4.2.4 and this ancient 11 year old
assembler?  That's the cause of your problem:

configure:4657: gcc -o conftest -O2   conftest.c  >&5
/tmp/ccBCyz5e.s: Assembler messages:
/tmp/ccBCyz5e.s:23: Warning: Bad .section directive: want a,w,x in
string
/tmp/ccBCyz5e.s:23: Error: Rest of line ignored. First ignored character
is `M'.

gcc is outputting directives that the assembler doesn't understand
because it's much older.  You can't really expect tools with this large
of a version dicrepancy to work together.  I don't even understand how
you managed to compile this version of gcc because it's supposed to do
configure checks of the assembler in order to enable functionality, but
that's neither here nor there.

I suggest that you ditch this self-compiled gcc and use whatever
compiler came with your distro, as it will at least work harmoniously
with this ancient binutils.  Use that combination to build a modern
binutils, then rebuild a modern gcc and make sure it uses the updated
binutils (e.g. by putting the new binutils first in PATH before the old
one or by specifying --with-as and --with-ld.)

Brian




reply via email to

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