現在我的ubuntu 15.10機器上的gcc和g ++是版本5.2.1。出於某種原因,我需要安裝它們的v4.4。我下載gcc4.4.7的源代碼,並與此配置:從源代碼編譯gcc時出錯
../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,並嘗試做,但我收到這兩個錯誤:
../../gcc/toplev.c:536:1: error: redefinition of ‘floor_log2’
../../gcc/toplev.c:571:1: error: redefinition of ‘exact_log2’
那麼如何解決這個問題呢?謝謝。
你解決了嗎?由於您在一個月內沒有得到答案,因此我猜測答案是'是的 - 我已經充分解決了這個問題,或者通過下載預編譯版本來解決問題。 –
我剛剛在虛擬機上安裝了舊版本的ubuntu – darklord