Martin Sebor wrote:
Andrew Pinski wrote:
On Mar 1, 2006, at 7:48 PM, Martin Sebor wrote:
Is there a recommended version of GNU binutils for 4.1? I have been
using 2.13 but the latest compiler doesn't seem to be happy with it.
I tried the latest, 2.16.1, but I get the same error with it as well.
I don't see anything about this in INSTALL/specific.html.
You did not follow directions.
Guilty as charged. I guess I never have and I've just been getting
away with it (that is, until now).
From http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13486:
- You must tell the configure script that you use GNU binutils and not
the Sun
tools. See http://gcc.gnu.org/install/configure.html
Thank you. Using the options --with-gnu-as --with-gnu-ld fixed the
error.
But only to build the compiler, not when running the installed gcc.
I see I still missed something: the rules for finding the assembler
and linker used by the installed compiler.
It seems that the rules to find these utilities are different when
building than when using the compiler. When building gcc, it looks
for them in PATH. When using gcc, it considers system directories
first.
Btw., is there a way to switch between the native and GNU assembler
and linker without rebuilding the compiler? It seems that 4.1 with
the GNU utilities is a lot slower than 4.0.2 was when using the
native ones (I wasn't actually using the GNU utilities with 4.0.2
despite what I said before).
Martin