【发布时间】:2016-01-02 18:49:01
【问题描述】:
现在我的 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’
那么如何解决这个问题呢?谢谢。
【问题讨论】:
-
您解决了吗?由于您已经有一个多月没有得到答案了,我猜答案是“是的——我已经充分解决了这个问题,或者通过下载预编译版本绕过了这个问题”。
-
我刚刚在虚拟机上安装了一个旧版本的ubuntu