[4105] in RedHat Linux List
Problem with gcc/binutils installation on RedHat 4.0
daemon@ATHENA.MIT.EDU (Shankar Unni)
Tue Nov 12 17:42:08 1996
Date: Tue, 12 Nov 1996 14:37:13 -0800
From: Shankar Unni <shankar@chromatic.com>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
Not knowing the existence of this list, I had mailed the following
message to tech-sup, but here goes again:
Gcc is broken on the 4.0 Redhat distribution for Intel: if you have an
executable called "as" in your path (it can happen if you have "." in
your path, for instance, but also in other cases), it interferes with
the execution of gcc (gcc calls the "as" on the path, instead of the
real native (intended) "as" (see below).
The obvious case where this happens is when building a cross-gcc (for
any other architecture) using the RedHat-built gcc. gcc's configure
creates symlinks called 'as' and 'ld' in the gcc build directory that
point to the cross-assembler. The problem is that when we then proceed
to compile the gcc sources (which should be compiled using the usual
I386 Elf assembler), gcc instead invokes the cross-assembler, with
disastrous consequences. That cross-assembler is supposed to be invoked
only during the libgcc-build phase, when we run "./xgcc -B./".
The underlying problem is that "gcc" has been configured to look for its
binaries in the following places:
/usr/lib/gcc-lib/i486-linux/2.7.2/
/usr/lib/gcc-lib/i486-linux/
/usr/lib/gcc/i486-linux/2.7.2/
/usr/lib/gcc/i486-linux/
/usr/i486-linux/bin/i486-linux/2.7.2/
/usr/i486-linux/bin/
Unfortunately, the binutils package does not install any links in
/usr/i486-linux/bin, but instead puts its binaries only in /usr/bin.
Thus, gcc is forced to fall back to look at $PATH, which is not nice at
all.
The fix is to add symlinks to the binutils package to install links to
all the /usr/bin binaries in /usr/i486-linux/bin.
--
Shankar Unni shankar@chromatic.com
Chromatic Research (408) 752-9488
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null