libtool problems while building gcc

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

 



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
Symlink gcc-4.5.4-src/gmp to gmp-4.3.2, gcc-4.5.4-src/mpfr to
mpfr-2.4.2, and gcc-4.5.4-src/mpc to mpc-0.8.1
cd gcc-4.5.4-obj
../gcc-4.5.4-src/configure --prefix=... --disable-multilib
make

This fails as described. I did try later versions of binutils, but
they produced other compiler errors so I assumed they were too recent.
gcc 4.6.4 has similar issues.

This is on a Centos 6.5 machine which has gcc 4.4.7 installed locally.
I am confused about this. I have libtool 2.2.6 installed:
> libtool --version
ltmain.sh (GNU libtool) 2.2.6b

However inside the obj folder of my build, I see a different version:
> gcc-4.5.4-obj/binutils/libtool --version
libtool (GNU libtool 1.3134 2009-11-29) 2.2.7a

Is this libtool version being built during the gcc build? It looks
like it is - but it does not seem to get installed in the --prefix
location... at least, the installed folders from my successful 4.4.0
and 4.4.7 builds do not contain any file called libtool.

Anyway is this the problem - a first stage generates files using my
local libtool 2.2.6, then it builds libtool 2.2.7, then uses the new
libtool which is not compatible with the earlier files...? Should I
install libtool 2.2.7 locally?

D




[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