GCC 4.7.1を構築するための手順を示します。
今回は準備編です。次回以降特定のアーキテクチャ向けの手順を示します。
各ソフトウェアのバージョン
今回は用いたのは以下のとおりです
GMPの構築
移行の prefixは各自修正してください
% CPPFLAGS=-fexceptions ../configure \
--prefix=/home/syohei/local --enable-cxx
% make
% make check
% make install
% export LD_LIBRARY_PATH=/home/syohei/local
% export LIBRARY_PATH=/home/syohei/local
MPFRの構築
% ../configure --prefix=/home/syohei/local \
--with-gmp-build=/home/syohei/src/gmp-5.0.5/build
% make
% make check
% make install
MPCの構築
% ../configure --prefix=/home/syohei/local \
--with-gmp=/home/syohei/local --with-mpfr=/home/syohei/local
% make
% make check
% make install
PPLの構築
make checkはとても時間がかかります
% ../configure --prefix=/home/syohei/local --with-gmp=/home/syohei/local % make % make check # too long time % make install
CLOOGの構築
[cloog 0.16.2] % ../configure --prefix=/home/syohei/local --with-gmp=/home/syohei/local % make % make check % make install