Skip to content

Instantly share code, notes, and snippets.

@syohex
Created May 26, 2012 13:38
Show Gist options
  • Save syohex/2793981 to your computer and use it in GitHub Desktop.
Save syohex/2793981 to your computer and use it in GitHub Desktop.
how to build GCC 4.7 on i386 Ubuntu 10.04
Platform i386 Ubuntu 10.04
[GMP 5.0.5]
% CPPFLAGS=-fexceptions ../configure \
--prefix=/home/syohei/local --enable-cxx
% make
% make check
% make install
[MPFR 3.1.0]
% ../configure --prefix=/home/syohei/local \
--with-gmp-build=/home/syohei/src/gmp-5.0.5/build
% make
% make check
% make install
[MPC 0.9]
% ../configure --prefix=/home/syohei/local \
--with-gmp=/home/syohei/local --with-mpfr=/home/syohei/local
% make
% make check
% make install
[PPL 0.12.1]
% ../configure --prefix=/home/syohei/local --with-gmp=/home/syohei/local
% make
% make check # too long time
% make install
[cloog 0.16.2]
% ../configure --prefix=/home/syohei/local --with-gmp=/home/syohei/local
% make
% make check
% make install
[gcc 4.7.0]
% export LD_LIBRARY_PATH=/home/syohei/local
% export LIBRARY_PATH=/home/syohei/local
% ../configure --prefix=/home/syohei/local \
--with-gmp=/home/syohei/local \
--with-mpfr=/home/syohei/local \
--with-mpc=/home/syohei/local \
--with-ppl=/home/syohei/local \
--with-cloog=/home/syohei/local \
--disable-nls --enable-lto --enable-cloog-backend=isl \
--enable-languages='c,c++'
% make
% make check
% make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment