我现在的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’
那么如何解决这个问题呢?谢谢。