'Libtool Version mismatch error while building gcc

I am trying to add some files to GCC source code, but after running autoreconf --install --force i get that error

libtool: definition of this LT_INIT comes from libtool 2.2.7a.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4.6 Debian-2.4.6-14
libtool: and run autoconf again.

even without any source files added if i reconfigure i get the same error.

that's very important as i am adding new functionality to gcc



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source