现在我的 ubuntu 15.10 机器上的 gcc 和 g++ 是 5.2.1 版。出于某种原因,我需要安装其中的 v4.4。我下载了gcc4.4.7的源代码并配置如下:
../configure \
--disable-checking \
--enable-languages=c,c++ \
--enable-multiarch \
--enable-shared \
--enable-threads=posix \
--program-suffix=4.4 \
--with-gmp=/usr/local/lib \
--with-mpc=/usr/local/lib \
--with-mpfr=/usr/local/lib \
--without-included-gettext \
--with-system-zlib \
--with-tune=generic \
--prefix=$HOME/bin/android_build
我有一个 makefile 并尝试 make 但我收到这两个错误:
../../gcc/toplev.c:536:1: error: redefinition of ‘floor_log2’
../../gcc/toplev.c:571:1: error: redefinition of ‘exact_log2’
那么如何解决这个问题呢?谢谢。