Re: libtool problems while building gcc

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

 



On 25 April 2014 04:33, Dave Gittins wrote:
> Hi,
>
> Recently I managed to build gcc 4.4.0 and 4.4.7 with binutils included
> (with some help here).
>
> Now I am trying to build gcc 4.5.4 and 4.6.4, with binutils. I keep
> getting an error:
> libtool: Version mismatch error.  This is libtool 2.2.7a, but the
> libtool: definition of this LT_INIT comes from libtool 2.2.6.
>
> Here is the process I am going through:
> Untar gcc-4.5.4 source to gcc-4.5.4-src
> Copy the binutils 2.20.1a source into the same src dir but don't
> replace existing files

I think doing combined tree builds (with binutils and GCC in the same
source tree) is only guaranteed to work with the top-of-tree versions
of each, otherwise various configury files don't match.

The simplest way I know to achieve what you seem to want is to install
binutils first, separately, to $PREFIX, then configure and install GCC
to the same $PREFIX. During its configuration GCC will notice that
binutils is installed in its final destination and will be configured
to automatically use $PREFIX/bin/as and $PREFIX/bin/ld rather than the
usual versions in your $PATH.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux